Merge branch 'dev' of gitlab.ghzs.com:halo/assistant-android into dev
This commit is contained in:
@ -964,6 +964,9 @@ class DetailPlayerView @JvmOverloads constructor(context: Context, attrs: Attrib
|
||||
override fun onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow()
|
||||
mPlayRetryCount = 0
|
||||
unObserveVolume(context as AppCompatActivity)
|
||||
mScheduledHideDisposable?.dispose()
|
||||
mScheduledHideDisposable = null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -84,7 +84,6 @@ class VideoAdapter(val mContext: Context, val mRecyclerView: RecyclerView, val m
|
||||
videoView.updateViewDetail(videoList[position])
|
||||
videoView.updateThumb(videoList[position].getThumb())
|
||||
videoView.updateMuteStatus()
|
||||
videoView.observeVolume(mContext as AppCompatActivity)
|
||||
videoView.fullscreenButton.setOnClickListener {
|
||||
if (mOrientationUtils.isLand == 0) {
|
||||
videoView.recordMta("进入全屏")
|
||||
@ -94,7 +93,7 @@ class VideoAdapter(val mContext: Context, val mRecyclerView: RecyclerView, val m
|
||||
videoView.hideAllButton(true)
|
||||
mOrientationUtils.resolveByClick()
|
||||
val fullVideoPlayer = videoView.startWindowFullscreen(mContext, true, true) as DetailPlayerView
|
||||
fullVideoPlayer.observeVolume(mContext)
|
||||
fullVideoPlayer.observeVolume(mContext as AppCompatActivity)
|
||||
fullVideoPlayer.setViewModel(mViewModel)
|
||||
fullVideoPlayer.hideAllButton(true)
|
||||
fullVideoPlayer.updateViewDetail(videoList[position])
|
||||
@ -118,6 +117,7 @@ class VideoAdapter(val mContext: Context, val mRecyclerView: RecyclerView, val m
|
||||
ExoCacheManager.preload(videoList[position + 1].url)
|
||||
Picasso.with(mContext).load(videoList[position + 1].getThumb()).fetch()
|
||||
}
|
||||
videoView.observeVolume(mContext as AppCompatActivity)
|
||||
videoView.startButton.performClick()
|
||||
mViewModel.addHistoryRecord(videoList[position])
|
||||
VideoRecordUtils.log(videoList[position].id)
|
||||
|
||||
Reference in New Issue
Block a user