基于ijkplayer的GSYVideoPlayer
rtmp协议播放器的简单应用
添加依赖
implementation ‘com.shuyu:gsyVideoPlayer-java:6.0.1’
//是否需要ExoPlayer模式
implementation ‘com.shuyu:GSYVideoPlayer-exo2:6.0.1’
//更多ijk的编码支持
implementation ‘com.shuyu:gsyVideoPlayer-ex_so:6.0.1’
Manifest配置
<activity android:name=".StartActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Main2Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="sensor">
</activity>
<