flowplayer('#container', { src: [{ src: "https://cdn.example.com/mystream.m3u8", type: "application/x-mpegurl", drm: { [flowplayer.drm.WIDEVINE]: { // other drm conf , [flowplayer.drm.REQUEST_MEDIA_KEY_SYSTEM_ACCESS_FUNCTION]: function (keySystem, supportedConfigurations) { let config = [{ initDataTypes: ['cenc'], audioCapabilities: [{ contentType: 'https://cdn.dimsum.my/content/2020-02/42372-5e3aeb975be1e/ABZZM01HM_MZ_deaf52c7_identifier-5_video_track_0.mp4;codecs="mp4a.40.2"' }], videoCapabilities: [{ contentType: 'https://cdn.dimsum.my/content/2020-02/42372-5e3aeb975be1e/ABZZM01HM_MZ_deaf52c7_identifier-5_video_track_0.mp4;codecs="avc1.42E01E"' }] }]; return window.navigator.requestMediaKeySystemAccess(keySystem, config); } } } }] })
Back to home page