kohii icon indicating copy to clipboard operation
kohii copied to clipboard

Recyclerview video is not resumed when re enter from full screen video player activity

Open ghost opened this issue 3 years ago • 1 comments

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
      )
  )

ghost avatar Mar 21 '21 05:03 ghost

I'm also getting same issue. @appzien Did you find any way to fix it?

47gurvinder avatar May 22 '21 10:05 47gurvinder