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

not going back to first frame. #1

Open
cutcopypaste opened this issue Sep 8, 2011 · 1 comment
Open

not going back to first frame. #1

cutcopypaste opened this issue Sep 8, 2011 · 1 comment
Assignees

Comments

@cutcopypaste
Copy link

function setVidPoster() {
    var video = Popcorn( '#video' ), poster;
        video.listen( "canplayall", function() {
        this.capture({at: 1});
        this.currentTime(0);
    });
}

The following code is setting the poster, but not returning to the first frame. I tried without the last line, and with it chained to the first one.. but the page always loads with the video sitting at 1 second in. My understanding was it should remain at the beginning with capture at. (source file is mp4)

@ghost ghost assigned rwaldron Sep 8, 2011
@rwaldron
Copy link
Owner

rwaldron commented Sep 8, 2011

I'm looking at the unit tests and I have a tests in there that addresses this, but has the code this way (translated to your example)...

function setVidPoster() {
  var video = Popcorn( "#video" ), poster;

  video.listen( "canplayall", function() {
    this.currentTime(0).capture({ at: 1 });
  });
}

Can you try this and let me know if it works? The tests are passing 100%, so we need to dig deeper for possibly untested conditions

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