[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

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

Open
ghost opened this issue Mar 21, 2021 · 1 comment

Comments

@ghost
Copy link
ghost commented Mar 21, 2021

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 ghost changed the title Recyclerview video is not resume when reenter from full screen video player activity Recyclerview video is not resumed when re enter from full screen video player activity Mar 21, 2021
@47gurvinder
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant