-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 do get VideoJS to show poster on ended event #972
Comments
The code you have there is actually working for me. What browser/platform, and can you create a jsbin where it's not working? |
thanks, I see your right... it works in jsbin not sure why it does not for me... here is my jsbin: osx 10.9.1 |
Hi Heff, |
Seems to have something to do with the added styles. I commented those out and it worked for me. Not sure exactly what though. |
thanks heff... these styles we added to allow for responsive width for video player... from this link: It seems that this css is not friendly with vid.posterImage.show(); function. Do you by any chance know a different way to accomplish? |
We're discussing this in #982. Check the related issues for some different options. |
This code does trigger on ended, shows the bigPlayButton but does not show the posterImage ??? anyone know the correct way to accomplish. using videojs 4.3.0
videojs("example_video_1").ready(function(){
var vid = this;
vid.on("ended", function(){
alert ("I have triggered");
vid.posterImage.show();
vid.bigPlayButton.show();
vid.currentTime(0);
});
});
The text was updated successfully, but these errors were encountered: