videojs / videojs-contrib-eme

Supports Encrypted Media Extensions for playback of encrypted content in Video.js
Other
205 stars 72 forks source link

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) - LG DEVICES #97

Open rramirez0203 opened 5 years ago

rramirez0203 commented 5 years ago

Hey Guys,

Anyone with experience on LG Devices (webos) using videojs, videojs-contrib-eme along with Dash and DRM (widevine and playready)?

I’m getting different results based on the videojs version I use. Worth to be mention that I have playback on chrome but no on the LG Device (Web engine Chromium 38).

If I use videojs 6.12.1 (I need to include videojs-contrib-eme, videojs-contrib-dash, dashjs) If I test on chrome I have playback but on the LG device I get this error:

_VIDEOJS: ERROR: (CODE:5 MEDIA_ERR_ENCRYPTED) DRM: unable to create session! --Error generating key request -- InvalidAccessError_

If I use videojs 7.6.5 (I just include videojs-contrib-eme since it already bundle VHS). If I test on chrome I have playback but on the LG device I get this error:

_VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOTSUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported.

Any advice on this?

CODE: video.js 7.6.5 videojs-contrib-eme 3.5.0

import videojs from "video.js";
import "videojs-contrib-eme";
// docs says it include VHS it should support DASH, HLS etc

var configuration = {
    src: 'https://server/file.mpd',
    type: 'application/dash+xml',    
    keySystems: {
        'com.widevine.alpha': 'https://server/licence.wv'
    }
};
const videoTag = document.createElement('video');
container.appendChild(videoTag);

var player = videojs(videoTag);
player.ready(() => {    
    this.player.eme();
    this.player.src(configuration);
    this.player.play();
});
jamescahall commented 4 years ago

Did you end up finding a solution for this?

sarah-harissa-dotcom commented 4 years ago

Did you end up finding a solution for this?

prashantchothani commented 3 years ago

We are facing the same issue

vinitgundeti commented 3 years ago

It is worked by setting native options false

var player = videojs('videoTag', { html5: { nativeAudioTracks: false, nativeVideoTracks: false } });

Szefczuk commented 2 years ago

@vinitgundeti that doesnt work. Probably this is related to old chrome version on which tizen/webos is built on.

Anybody found solution?