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

seeking/seeked events don't seem to do anything #228

Closed
DCDJ opened this issue Dec 8, 2014 · 3 comments
Closed

seeking/seeked events don't seem to do anything #228

DCDJ opened this issue Dec 8, 2014 · 3 comments

Comments

@DCDJ
Copy link

DCDJ commented Dec 8, 2014

Trying to use seeking/seeked events with the youtube plugin and getting nothing returned.

    videojs("videoplayer").ready(function () {

        this.on("play", function () { // works
            that.handleStateChange(that.STATES.PLAYING);
        });
        this.on("pause", function () { // works
            that.handleStateChange(that.STATES.PAUSED);
        });
        this.on("seeked", function () { // doesn't seem to work
            console.log("Seeking"); // this doesn't get fired
            that.handleStateChange(that.STATES.SEEKING);
        });
    });
<div class="videoWrapper">
<video id="videoplayer" src="" class="video-js vjs-default-skin" controls preload="auto" width="970" height="404" data-setup='{ "techOrder": ["youtube"], "src": "http://www.youtube.com/watch?v=xjS6SftYQaQ" }'>
</video>
</div>

Am I doing something wrong here?
Please advise - thanks!

@clementoriol
Copy link

Same issue here :(.
Any known workaround ?

@DCDJ
Copy link
Author

DCDJ commented Dec 12, 2014

@clementoriol I used 'durationchange' as a workaround, its the closest thing I can find to the seek events but fires a little too many times. Only other solution is to write your own event handler..

@eXon eXon closed this as completed in 22759e1 Dec 20, 2014
@eXon
Copy link
Collaborator

eXon commented Dec 20, 2014

Fixed. Thank you for reporting the bug! :-)

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

3 participants