videojs-contrib-eme icon indicating copy to clipboard operation
videojs-contrib-eme copied to clipboard

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

Open rramirez0203 opened this issue 6 years ago • 5 comments
trafficstars

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_NOT_SUPPORTED) 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();
});

rramirez0203 avatar Oct 30 '19 17:10 rramirez0203

Did you end up finding a solution for this?

jamescahall avatar May 22 '20 16:05 jamescahall

Did you end up finding a solution for this?

sarah-harissa-dotcom avatar Sep 30 '20 07:09 sarah-harissa-dotcom

We are facing the same issue

prashantchothani avatar Aug 03 '21 10:08 prashantchothani

It is worked by setting native options false

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

vinitgundeti avatar Aug 04 '21 11:08 vinitgundeti

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

Anybody found solution?

Szefczuk avatar Feb 04 '22 14:02 Szefczuk