Sam Potts

Results 108 comments of Sam Potts

Sorry I've not gotten around to this. It's hard to find the time and to prioritise everything. In regards to your issues: - You can use the api to play...

Sorry that's a typo in the docs - try adding `event` as an argument to the callback. ``` javascript var player = document.querySelector('.js-media-player').plyr; player.addEventListener('ready', function(event) { var player = event.target.plyr;...

I think it would just be using the `ended` event: ``` javascript var player = document.querySelector('.js-media-player').plyr; player.addEventListener('ended', function(event) { var player = event.target.plyr; }); ``` Did you try that and...

The buffer error I will fix very shortly. I think the docs were incorrect here. I will update but try this code: ``` javascript var container = document.querySelector('.js-media-player'); container.addEventListener('ended', function(event)...

Ah no the docs were correct - I just didn't relay it correctly 👍

No it won’t as that’s against their terms of service. Same applies for YouTube.

Others have had it working with custom VAST. If you've found a bug, open a PR 👍

That's a little odd as the `"module": "dist/plyr.min.mjs",` in package.json references `plyr.min.mjs` which definitely has `export default Plyr`. I'll do some more digging.

Does your example not achieve the same thing?