@mimeType with optional parameter support in dash.js
Created by: eceozturk
The dash.js playback fails when playing a content that has @mimeType appended with (as an example) "profiles='cmfc'". In this case, the "codec not supported" error will appear on the web console.
I also added the information on test environment and web console log. Can support for this be added to dash.js?
Environment
- [] The MPD passes the DASH-IF Conformance Tool on https://conformance.dashif.org/
-
The stream has correct Access-Control-Allow-Origin headers (CORS) -
There are no network errors such as 404s in the browser console when trying to play the stream -
The issue observed is not mentioned on https://github.com/Dash-Industry-Forum/dash.js/wiki/FAQ -
The issue occurs in the latest reference client on http://reference.dashif.org/dash.js/ and not just on my page
- Link to playable MPD file:
- Dash.js version: 3.1.0
- Browser name/version: Google Chrome Version 81.0.4044.138, 64 bit
- OS name/version: Windows 10, 64 bit
Steps to reproduce
-
Please provide clear steps to reproduce your problem For reproducing, any MPD's @mimeType attribute can be appended with "profiles='cmfc'" (as an example) and the "codec not supported" error will appear on the web console.
-
If the bug is intermittent, give a rough frequency if possible
Observed behaviour
After player initialization, I directly get the "codec not supported" error.
Console output
[2791][MediaPlayer] Streaming Initialized
Debug.js:168 [2799][MediaPlayer] Playback Initialized
Debug.js:168 [2826][DashParser] Parsing complete: ( xml2json: 4.04ms, objectiron: 0.180ms, total: 0.00422s)
Debug.js:168 [2833][ManifestUpdater] Manifest has been refreshed at Tue May 19 2020 11:53:21 GMT+0200 (Central European Summer Time)[1589882001.428]
Debug.js:168 [2841][Stream] [Stream] codec not supported: video/mp4 profiles='cmfc,cfhd';codecs="avc1.640028";width="1920";height="800"
doLog @ Debug.js:168
error @ Debug.js:127
(anonymous) @ Stream.js:582
filterCodecs @ Stream.js:576
initializeMedia @ Stream.js:523
activate @ Stream.js:165
activateStream @ StreamController.js:557
onMediaSourceOpen @ StreamController.js:530
Debug.js:168 [2842][Stream] videoCodec (video/mp4 profiles='cmfc,cfhd';codecs="avc1.640028") is not supported.
doLog @ Debug.js:168
error @ Debug.js:127
isMediaSupported @ Stream.js:342
initializeMediaForType @ Stream.js:448
initializeMedia @ Stream.js:527
activate @ Stream.js:165
activateStream @ StreamController.js:557
onMediaSourceOpen @ StreamController.js:530
Debug.js:168 [2842][Stream] No audio data.
Debug.js:168 [2842][Stream] No text data.
Debug.js:168 [2842][Stream] No fragmentedText data.
Debug.js:168 [2843][Stream] No embeddedText data.
Debug.js:168 [2843][Stream] No muxed data.
Debug.js:168 [2843][Stream] No image data.
Debug.js:168 [2850][Stream] No streams to play.
doLog @ Debug.js:168
fatal @ Debug.js:123
initializeMedia @ Stream.js:545
activate @ Stream.js:165
activateStream @ StreamController.js:557
onMediaSourceOpen @ StreamController.js:530
Debug.js:168 [2857][PlaybackController] Native video element event: play
Debug.js:168 [2863][PlaybackController] Native video element event: waiting