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

Player Reset #1050

Closed
mmcc opened this issue Mar 1, 2014 · 6 comments
Closed

Player Reset #1050

mmcc opened this issue Mar 1, 2014 · 6 comments

Comments

@mmcc
Copy link
Member

mmcc commented Mar 1, 2014

Currently with version 4 there's no way to reset a player to the initialized state. In version 3 you could simply do the following things and the player would appear as it does immediately post initialization:

  • show the big play button
  • hide the controls
  • show the poster image

However, version 4...breaks all of these things. Rather than get back to the functionality of version 3, there should be a new method, Player#reset, that allows a player to be reset to the original state without calling dispose() and instantiating a new one.

@talentville
Copy link

I agree with this, especially as I have implemented a custom playlist to show all the videos uploaded by a particular member of my site. Right now when a user clicks on a new video in the list, I have to dispose of the old player and make a brand new one if I want it to show in its original state. Just setting the src and poster images and showing the big play button is sloppy and does not change the control bar anyhow, something I found out when trying the fiddle I found on the internet to switch sources.

@luckydrq
Copy link

@mmcc @heff , according to the pull request, i write this snippet to reset player when playing ends:

  player.on('ended', function() {
    player.trigger('loadstart');
  });

It's still not working. Is my code right?

@luckydrq
Copy link

All i need is exactly what this issue mentioned at start:

  • show the big play button
  • hide the controls
  • show the poster image

@crs1138
Copy link

crs1138 commented Dec 14, 2017

Is there any progress on this after 3 years? How can I reset the player after the playlist ended?

@benjaminpreiss
Copy link

I am also quite curious how to solve this?

@benjaminpreiss
Copy link

Ah, I think it is partly solved in this issue: #2661 (comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants