You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
例如 最新的GSY版本,我导入是最新的源代码
Demo中的复现步骤
Exoplayer 内核顺序播放多个视频,200多个视频,播放到123个视频的时候,会黑屏,重播当前视频,只有声音,没有画面
问题代码:(如果有)
初始化播放器控件
binding!!.videoPlayer.shrinkImageRes = R.drawable.custom_shrink
binding!!.videoPlayer.enlargeImageRes = R.drawable.custom_enlarge
binding!!.videoPlayer.setSelectedSongViewModel(selectedSongViewModel, owner)
binding!!.videoPlayer.setVoiceListModel(voiceListModel, owner)
binding!!.videoPlayer.setmainViewModel(mainViewModel, owner)
//外部辅助的旋转,帮助全屏
mOrientationOption = OrientationOption()
orientationUtils =
OrientationUtils(outerContext as Activity?, binding!!.videoPlayer, mOrientationOption)
//初始化不打开外部的旋转
orientationUtils!!.isEnable = true
binding!!.videoPlayer.setIsTouchWiget(true)
//关闭自动旋转
binding!!.videoPlayer.isRotateViewAuto = false
binding!!.videoPlayer.isLockLand = false
//设置 seek 的临近帧。
binding!!.videoPlayer.isReleaseWhenLossAudio = false
if (binding!!.videoPlayer != null && binding!!.videoPlayer.isInPlayingState) {
if (binding!!.videoPlayer.gsyVideoManager.player != null) {
if (binding!!.videoPlayer.gsyVideoManager.player is Exo2PlayerManager) {
(binding!!.videoPlayer.gsyVideoManager.player as Exo2PlayerManager).setSeekParameter(
SeekParameters.NEXT_SYNC
我在歌曲自动播放完就自动播放下一首歌
override fun onAutoComplete(url: String?, vararg objects: Any?) {
super.onAutoComplete(url, objects)
getSwitchSong(type)