kohii
kohii copied to clipboard
Recyclerview video is not resumed when re enter from full screen video player activity
Hello,
I have implemented as below
- add video player in recyclerview(only one video will play at a time)
- When video is selected new activity will be launched to play the video in full screen(passing rebinder instance and initdata)
- After sometime when video is in progress i selected Back to go back to recycerlview [Issue] Video is not resume, when i try to click the item to launch full screen activity. it throws exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appzien.tweettub/com.appzien.tweettub.framework.presentation.common.VideoPlayerActivity}: java.lang.IllegalArgumentException: Playable is null for tag androidx.constraintlayout.widget.ConstraintLayout::https://video.twimg.com/ext_tw_video/1373501896812498944/pu/vid/480x480/MpTK2an7zhydI00S.mp4?tag=12::0
Could you help to fix this? if possible please add a sample to lunch full screen activity(not fragment) when recyclerview video is selected.
You Can reproduce this in your sample application by modifying below Class name : kohii.v1.sample.ui.list Method name: onItemClick() Instead of Fragment launch, change to activity launch.
val rebinder = data.first val initData = data.second
fragment.requireContext().startActivity(
PlayerActivity.createIntent(
fragment.requireContext(),
initData,
rebinder
)
)
I'm also getting same issue. @appzien Did you find any way to fix it?