You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to play HLS encoded video with FairPlay DRM, but it is failing on some safari versions.
Playing: macOS High Sierra 10.13.6 with Safari 12.1 (13607.1.40.1.5). - handleEncryptedEvent not fired
Not playing: macOS Mojave 10.14.4 with Safari 12.1 (14607.1.40.1.4). - handleEncryptedEvent fired
What I have found, player throws error in handleEncryptedEvent function, which is fired with 'encrypted' event.
Fast solution:
if (navigator.userAgent.match(/Safari/i) && !navigator.userAgent.match(/Chrome/i)) {
// SKIP
} else {
player.tech_.el_.addEventListener('encrypted', function (event) {
// TODO convert to videojs.log.debug and add back in
// videojs/video.js#4780
// videojs.log('eme', 'Received an 'encrypted' event');
setupSessions(player);
console.log('encrypted');
handleEncryptedEvent(event, getOptions(player), player.eme.sessions, player.tech_).catch(emeError);
}); // Support Safari EME with FairPlay
// (also used in early Chrome or Chrome with EME disabled flag)
}
Hi,
I've tried to play HLS encoded video with FairPlay DRM, but it is failing on some safari versions.
Playing: macOS High Sierra 10.13.6 with Safari 12.1 (13607.1.40.1.5). - handleEncryptedEvent not fired
Not playing: macOS Mojave 10.14.4 with Safari 12.1 (14607.1.40.1.4). - handleEncryptedEvent fired
What I have found, player throws error in handleEncryptedEvent function, which is fired with 'encrypted' event.
Fast solution:
if (navigator.userAgent.match(/Safari/i) && !navigator.userAgent.match(/Chrome/i)) {
// SKIP
} else {
player.tech_.el_.addEventListener('encrypted', function (event) {
// TODO convert to videojs.log.debug and add back in
// videojs/video.js#4780
// videojs.log('eme', 'Received an 'encrypted' event');
setupSessions(player);
console.log('encrypted');
handleEncryptedEvent(event, getOptions(player), player.eme.sessions, player.tech_).catch(emeError);
}); // Support Safari EME with FairPlay
// (also used in early Chrome or Chrome with EME disabled flag)
}
videojs-contrib-eme @Version 3.5.0
Need to fix this
The text was updated successfully, but these errors were encountered: