kandi background
Explore Kits

GSYVideoPlayer | 视频播放器(IJKplayer、ExoPlayer、MediaPlayer),HTTPS,支持弹幕,外挂字幕,支持滤镜、水印、gif截图,片头广告、中间广告,多个同时播放,支持基本的拖动,声音、亮度调节,支持边播边缓存,支持视频自带rotation的旋转(90,270之类),重力旋转与手动旋转的同步 | Video Player library

 by   CarGuo Java Version: v8.2.0-release-jitpack License: Apache-2.0

 by   CarGuo Java Version: v8.2.0-release-jitpack License: Apache-2.0

Download this library from

kandi X-RAY | GSYVideoPlayer Summary

GSYVideoPlayer is a Java library typically used in Telecommunications, Media, Media, Entertainment, Video, Video Player applications. GSYVideoPlayer has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.
视频播放器(IJKplayer、ExoPlayer、MediaPlayer),HTTPS,支持弹幕,外挂字幕,支持滤镜、水印、gif截图,片头广告、中间广告,多个同时播放,支持基本的拖动,声音、亮度调节,支持边播边缓存,支持视频自带rotation的旋转(90,270之类),重力旋转与手动旋转的同步支持,支持列表播放 ,列表全屏动画,视频加载速度,列表小窗口支持拖动,动画效果,调整比例,多分辨率切换,支持切换播放器,进度条小窗口预览,列表切换详情页面无缝播放,rtsp、concat、mpeg。
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • GSYVideoPlayer has a medium active ecosystem.
  • It has 17347 star(s) with 3850 fork(s). There are 422 watchers for this library.
  • There were 1 major release(s) in the last 6 months.
  • There are 13 open issues and 3303 have been closed. On average issues are closed in 9 days. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of GSYVideoPlayer is v8.2.0-release-jitpack
GSYVideoPlayer Support
Best in #Video Player
Average in #Video Player
GSYVideoPlayer Support
Best in #Video Player
Average in #Video Player

quality kandi Quality

  • GSYVideoPlayer has 0 bugs and 0 code smells.
GSYVideoPlayer Quality
Best in #Video Player
Average in #Video Player
GSYVideoPlayer Quality
Best in #Video Player
Average in #Video Player

securitySecurity

  • GSYVideoPlayer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • GSYVideoPlayer code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
GSYVideoPlayer Security
Best in #Video Player
Average in #Video Player
GSYVideoPlayer Security
Best in #Video Player
Average in #Video Player

license License

  • GSYVideoPlayer is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
GSYVideoPlayer License
Best in #Video Player
Average in #Video Player
GSYVideoPlayer License
Best in #Video Player
Average in #Video Player

buildReuse

  • GSYVideoPlayer releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • GSYVideoPlayer saves you 18386 person hours of effort in developing the same functionality from scratch.
  • It has 36413 lines of code, 3111 functions and 378 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
GSYVideoPlayer Reuse
Best in #Video Player
Average in #Video Player
GSYVideoPlayer Reuse
Best in #Video Player
Average in #Video Player
Top functions reviewed by kandi - BETA

kandi has reviewed GSYVideoPlayer and discovered the below as its top functions. This is intended to give you an instant insight into GSYVideoPlayer implemented functionality, and help decide if they suit your requirements.

  • Performs the actual measure
  • Start fullscreen video .
  • Opens the connection to the specified data stream .
  • touch event
  • Initializes the detail player .
  • bind video .
  • This method initializes gSymbVideoPlayer with specified GSYNC VideoPlayer .
  • Initialize the OnTouchEvent listener
  • Called when track selection is changed .
  • set ui toggle state

GSYVideoPlayer Key Features

视频播放器(IJKplayer、ExoPlayer、MediaPlayer),HTTPS,支持弹幕,外挂字幕,支持滤镜、水印、gif截图,片头广告、中间广告,多个同时播放,支持基本的拖动,声音、亮度调节,支持边播边缓存,支持视频自带rotation的旋转(90,270之类),重力旋转与手动旋转的同步支持,支持列表播放 ,列表全屏动画,视频加载速度,列表小窗口支持拖动,动画效果,调整比例,多分辨率切换,支持切换播放器,进度条小窗口预览,列表切换详情页面无缝播放,rtsp、concat、mpeg。

1、Jitpack 引入方法(推荐, JCenter 即将关闭)

copy iconCopydownload iconDownload
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
        maven { url "https://maven.aliyun.com/repository/public" }
	}
}

六、关于Issues

copy iconCopydownload iconDownload
提问题前可先查阅上方文档和说明,请在Demo中复现问题。

问题说明:

1、说明那个Demo中哪个页面。
2、问题显现和重现步骤。
3、补充问题的视频流url,截图。
4、补充问题的机型,android版本。

七、混淆

copy iconCopydownload iconDownload
-keep class com.shuyu.gsyvideoplayer.video.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.**
-keep class com.shuyu.gsyvideoplayer.video.base.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.base.**
-keep class com.shuyu.gsyvideoplayer.utils.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.utils.**
-keep class tv.danmaku.ijk.** { *; }
-dontwarn tv.danmaku.ijk.**

-keep public class * extends android.view.View{
    *** get*();
    void set*(***);
    public <init>(android.content.Context);
    public <init>(android.content.Context, java.lang.Boolean);
    public <init>(android.content.Context, android.util.AttributeSet);
    public <init>(android.content.Context, android.util.AttributeSet, int);
}

温馨提示

copy iconCopydownload iconDownload
关于自定义和出现问题的请先看问题集锦、demo、issue。

多了解一些音视频的基础常识,对容器,音视频编码,ffmpeg先做一些了解,以及mediacodec等的不同。
尽量少出现为什么别的能播的问题哟。

播放器的可自定义还是挺高的,定制请参考demo,多看源码。现在的功能有些多,demo也在不断的更新。

一些新功能和项目结构也在不断的调整。

欢迎提出问题,谢谢。

License

copy iconCopydownload iconDownload
请参看IJKPlayer和AndroidVideoCache相关协议。
项目最开始是从jiecao过来的,改着改着直接重构了。
偶尔有一变量和方法名可能还有点jiaozi的影子,但是基本是一个新项目。

Community Discussions

Trending Discussions on Video Player
  • Flutter Video Player Automatically Pauses when overlay video appears on screen of other application
  • How do i open srt file on flutter?
  • Not getting the error in Video Player in flutter?
  • how to create video player in pyqt5 for windows to play mp4 using python code?
  • How to cache network videos in flutter application?
  • Get frame from Video using JS
  • Control the playback speed of a Video Player using Slider in Unity
  • How to seek to a video position before playing with JavaFx
  • Firebase Storage Pulling Video Flutter
  • How to auto pause video when scrolling / when the player is not visible on screen in flutter
Trending Discussions on Video Player

QUESTION

Flutter Video Player Automatically Pauses when overlay video appears on screen of other application

Asked 2022-Apr-07 at 10:07

I have a background in my application screen that plays in a loop. The video works fine when we change the screen and when we change the state of the application(pause/resume) but there is a huge problem. When I play video in some other application just like Netflix and close the Netflix app and open my application. The pop-up video appears on the phone screen and the video in my application automatically when the video is in the pop-up plays. I will show you an example of what actually happening. Please open this link I have added a screen recording of my application too. You can understand what is actually happening.

Screen Recording of the application

Here is the code I am using for my video player

late VideoPlayerController _controller;

In init state of the Widget

videoPlayerBloc = context.read<VideoPlayerBloc>();
_controller = VideoPlayerController.asset('assets/videos/intro.mp4')
  ..initialize().then((_) {
    videoPlayerBloc.add(PlayVideo());
    _controller.play();
    _controller.setLooping(true);
    setState(() {});
  });

WidgetsBinding.instance!.addObserver(
    LifecycleEventHandler(resumeCallBack: () async =>
        videoPlayerBloc.add(PlayVideo()), suspendingCallBack: () async {
    })
);

In the build method of Widget

BlocListener<VideoPlayerBloc, VideoPlayerState>(
        listener: (context, state) {
          _controller = VideoPlayerController.asset('assets/videos/intro.mp4')
            ..initialize().then((_) {
              _controller.play();
              _controller.setLooping(true);
              setState(() {});
            });
        },
        child: SizedBox.expand(
          child: FittedBox(
            fit: BoxFit.cover,
            child: SizedBox(
              width: _controller.value.size.width,
              height: _controller.value.size.height,
              child: Opacity(
                  opacity: 0.75,
                  child: VideoPlayer(_controller)),
            ),
          ),
        )
    )

Any kind of help would be much appreciated. This is my first experience with stack overflow. Hope to get some positive response from audience.

ANSWER

Answered 2022-Apr-07 at 10:07

https://pub.dev/documentation/video_player_platform_interface/latest/video_player_platform_interface/VideoPlayerOptions-class.html

You'll want to set your video player options https://pub.dev/documentation/video_player_platform_interface/latest/video_player_platform_interface/VideoPlayerOptions/mixWithOthers.html

mixWithOthers property to true to have your video continue being played :)

those options are part of the VideoPlayerController constructor

VideoPlayerController(videoPlayerOptions: VideoPlayerOptions(mixWithOthers: true),);

Source https://stackoverflow.com/questions/71779610

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install GSYVideoPlayer

You can download it from GitHub.
You can use GSYVideoPlayer like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the GSYVideoPlayer component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Compare Video Player Libraries with Highest Quality
Compare Video Player Libraries with Permissive License
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.