Plyr: Error event not fired

Created on 14 Feb 2017  路  4Comments  路  Source: sampotts/plyr

Compare native error with plyr implimentation.

http://codepen.io/Skwai/pen/ygZVLq

The player.on('error', ...) event isn't fired for a source that 404s

Most helpful comment

I want to add... In case when I try to open video which was deleted, I see the different behavior for youtube and vimeo:

youtube: player.on('error', ...) is fired
vimeo: player.on('error', ...) is NOT fired, but exception in promise is thrown

Expected behavior:
Fired error event with the same error code for youtube and vimeo, if video is unavailable. No error exception is thrown

Browser and OS:
Chrome 61.0.3163.100 (Official Build) (64-bit), macOS SIerra 10.12.6 (16G29)

All 4 comments

I want to add... In case when I try to open video which was deleted, I see the different behavior for youtube and vimeo:

youtube: player.on('error', ...) is fired
vimeo: player.on('error', ...) is NOT fired, but exception in promise is thrown

Expected behavior:
Fired error event with the same error code for youtube and vimeo, if video is unavailable. No error exception is thrown

Browser and OS:
Chrome 61.0.3163.100 (Official Build) (64-bit), macOS SIerra 10.12.6 (16G29)

Closing this one as I think it's fixed but feel free to re-open if not solved in v3 馃憤

I'm not able to get this working in v3

404s don't seem to be triggering errors. Am I doing anything wrong?

this.playerInstance.on('error', (event) => {
                console.log('ERROR: '+event)
            });

I'm facing the same issue but it is inconsistent .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomByrer picture tomByrer  路  3Comments

onigetoc picture onigetoc  路  3Comments

jwjcmw picture jwjcmw  路  4Comments

muuvmuuv picture muuvmuuv  路  3Comments

michaelmano picture michaelmano  路  3Comments