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

how to pause/play video when click the item of the recyclerview? #112

Open
trile-agilityio opened this issue Oct 28, 2016 · 3 comments
Open

Comments

@trile-agilityio
Copy link

trile-agilityio commented Oct 28, 2016

  • I am using toroVersion = '2.1.0'
  • I want to pause/resum play video when click the item of the recyclerview in FacebookTimelineActivity on feature facebook of sample. Thanks you!
@eneim
Copy link
Owner

eneim commented Oct 28, 2016

@trileduy The implementation might varies due to the use case. In FacebookTimelineActivity, after clicking to a Video item, it open the "Related Videos list" which is a DialogFragment. I setup the callback pattern so that after the DialogFragment is attached, I will unregister the RecyclerView in "FacebookTimelineActivity", and re-register the RecyclerView after the DialogFragment dismiss.

See this, this, this and this.

@trile-agilityio
Copy link
Author

@eneim Thanks for your answer, i got it.

  • But in my use case. I want pause/resume play video when click to a Video item. I can pause video but can' resume it. Please help me what is the solution!
  • Case : open the "Related Videos list". I want to do it when click to a other item.

@eneim
Copy link
Owner

eneim commented Oct 30, 2016

@trileduy Hi there, you can see how I handle the "long click" here with your expected behaviour.

Regarding your second point, I didn't get what you wanted to mention here. If your requirement is the same with my FacebookTimelineSample here, you can use its idea, other than that, please tell me more so I can help.

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

2 participants