Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

support "events" in general and "cuepoint" event in particular #9

Open
wants to merge 10 commits into
base: gh-pages
Choose a base branch
from

Conversation

skaurus
Copy link

@skaurus skaurus commented Apr 8, 2016

cuepoint event is the same as in flowplayer: https://flowplayer.org/docs/cuepoints.html

support "events" in general and "cuepoint" event in particular
now we can add cuepoints on "ready" event and subscribe to "cuepoint" event like this:

`player = new CanvasVideoPlayer({
    ...
}).on('ready', function (data) {
    console.log('ready', data)
    var cuepoints = [];
    for (var i = 1; i <= 9; i++) {
        cuepoints.push( data.duration * i / 10 );
    }
    this.setCuepoints(cuepoints);
}).on('cuepoint', function (data) {
    console.log(new Date(), data);
});`
@skaurus
Copy link
Author

skaurus commented Apr 8, 2016

This is not real events at all, but at least for me they will do. I feel that this will be true for others as well.

@Stanko
Copy link
Owner

Stanko commented Apr 11, 2016

Thanks a lot, I will merge it for sure. Would you mind, adding a few lines about it to the documentation?

@skaurus
Copy link
Author

skaurus commented Apr 12, 2016

I'm not sure I will have time for this in next few days :(

@Stanko
Copy link
Owner

Stanko commented Apr 14, 2016

No worries, take your time. Also formatting and coding conventions are bit out of sync.

@skaurus
Copy link
Author

skaurus commented Apr 15, 2016

I have updated documentation.
Not sure what you mean by formatting and conventions problems - I even fixed two your formatting bugs :) Please fix these problems yourself as you see fit.

skaurus and others added 3 commits June 9, 2016 19:45
For some reason condition which hosts 'finish' event is fired multiple times when page with stopped video is scrolled.
@sethbrandom
Copy link

Hi, Mr. Stanko. I really appreciate any help... I already looking many differents ways to implement a video player on iPhone that not trigger fullscreen, but your implementation seems to have the exact what I need. But I need in my project config pauses along side the video timeline, and the user click on a next button event to resume playing (or previous to return to "previous" mark on this config), but I'm not sure how to do this... I used to work with the videojs player, because this already has a plugin to do so (insert chapters marks along the video), but videojs not avoid iPhone open fullscreen. Please, any help I'll be very glad.

Thanks

Seth

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants