Skip to content

Commit

Permalink
fix: Retain Video Seek Time when Exiting Fullscreen in Native Videos
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaIsrar12 authored and dixidroid committed Oct 4, 2024
1 parent 6d4cb3a commit 4a7292a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class VideoUnitFragment : Fragment(R.layout.fragment_video_unit) {
viewModel.getActivePlayer()?.playWhenReady = viewModel.isPlaying && isResumed
viewModel.isPlayerSetUp = true
}
viewModel.getActivePlayer()?.seekTo(viewModel.getCurrentVideoTime())

viewModel.castPlayer?.setSessionAvailabilityListener(
object : SessionAvailabilityListener {
Expand Down

0 comments on commit 4a7292a

Please sign in to comment.