GSYVideoPlayer- Android video player, support basic drag, sound, brightness adjustment, support while playing while caching

The renderings are as follows:

IJKplayer has the following advantages:

  • HTTPS support
  • Support barrage
  • Support basic drag, sound and brightness adjustment
  • Support broadcast and cache
  • Support video rotation (90,270, etc.), gravity rotation and manual rotation synchronization
  • Support list play, directly add controls for the cover, list full screen animation, video loading speed, list small window support drag
  • 5.0 cutscene effects, scale adjustment, multi-resolution switching
  • Support switch player, progress bar small window preview
  • Other small animation effects, RTSP, CONCat, MPEG
state function
support Playing while caching, using AndroidVideoCache.
support List playing; The list plays continuously; Gravity rotation and manual rotation; The video itself rotation property.
support Full-screen switching animation effect; Small window to play, drag.
support Fast and slow broadcast; Network video loading speed.
support Adjust display ratio: default, 16:9, 4:3, Fill.
support Rotate the picture Angle when playing (0,90,180,270); Mirror rotation.
support Pause front and background switching without black screen; Adjust different definition support.
support Https. Switch between IJKPlayer and EXOPlayer.
support Lock/unlock full screen click function; Progress bar small window preview (test).
support Switch between full-screen and non-full-screen layouts; Barrage function.
support Other protocols and encodings concat, RTSP, Crypto, MPEG, etc.
support There is no pure play support for any manipulation controls.
To support Own advertising function (currently need to achieve their own).

1. JCenter introduction Method (recommended)

You can select one of the following three options and add them to build.gradle under Module.Copy the code
  • A. Direct introduction
/ / the full version to introduce the compile 'com. Shuyu: GSYVideoPlayer: at 2.0.5'Copy the code
  • B, add Java and the so support you want:
Compile 'com.shuyu:gsyVideoPlayer-armv5:2.0.5' compile 'com.shuyu: gsyVideoplayer-armv5 :2.0.5' compile 'com. Shuyu: gsyVideoPlayer - armv7a: at 2.0.5' compile 'com. Shuyu: gsyVideoPlayer - arm64: at 2.0.5' compile 'com. Shuyu: gsyVideoPlayer - x64: at 2.0.5' compile 'com. Shuyu: gsyVideoPlayer - x86: at 2.0.5'Copy the code
  • C, support other format protocols (MPEG, RTSP, CONCat, Crypto protocol)

    A, B common version support 263/264/265, for MPEG coding will have sound without pictures. So introduced by C supports MPEG encoding and other supplementary protocols, but the SO package is relatively larger.

    Compile 'com.shuyu:gsyVideoPlayer-java:2.0.5' compile 'com.shuyu:gsyVideoPlayer-ex_so:2.0.5' 'Copy the code
  • D. Support ijkPlayer so

    The compile 'TV. Danmaku. Ijk. Media: ijkplayer - armv7a: 0.8.2' compile 'TV. Danmaku. Ijk. Media: ijkplayer - armv5:0.8.2' compile 'TV. Danmaku. Ijk. Media: ijkplayer - arm64:0.8.2' compile 'TV. Danmaku. Ijk. Media: ijkplayer - x86:0.8.2' compile 'TV. Danmaku. Ijk. Media: ijkplayer - x86_64:0.8.2'Copy the code

2. JitPack introduction method

First, add build. Gradle under project

```
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
```
Copy the code

Sencond, build.gradle added under Module

You can select one of the following three options and add them to build.gradle under Module.Copy the code
  • A. Direct introduction

    / / the full version to introduce the compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer: v2.0.5'Copy the code
  • B, add Java and the so support you want:

    The compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - Java: v2.0.5' compile / / according to your demand 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - x64: v2.0.5' compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - x86: v2.0.5' compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - arm64: v2.0.5' compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - armv5: v2.0.5' compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - armv7a: v2.0.5'Copy the code
  • C, support other format protocols (MPEG, RTSP, CONCat, Crypto protocol)

    A, B common version support 263/264/265, for MPEG coding will have sound without pictures. The SO introduced by the C method supports MPEG encoding and other supplementary protocols, but the SO package is relatively large.

    The compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - Java: v2.0.5' compile 'com. Making. CarGuo. GSYVideoPlayer: GSYVideoPlayer - ex_so: v2.0.5'Copy the code

Project Address:

Github.com/CarGuo/GSYV…

Believe in yourself, there is nothing impossible, only unexpected

If you feel that this article is helpful to you, welcome to join the group QQ communication group: 644196190 wechat public number: Terminal R&D Department