Loading by module not possible since PR #2038
Created by: nicosang
Environment
-
The MPD passes the DASH-IF Conformance Tool on http://dashif.org/conformance.html -
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://dashif.org/reference/players/javascript/ and not just on my page
- Link to playable MPD file:
- Dash.js version:
- Browser name/version:
- OS name/version:
Steps to reproduce
Try to load dash.js player with plugins (not a single file) there is an unknown event...Events.STREAM_TEARDOWN_COMPLETE because the definition is done in MediaPlayerEvents.js.
in html file, I use <script src="../../dist/dash.mediaplayer.debug.js"></script> <script src="../../dist/dash.protection.debug.js"></script> <script src="../../dist/dash.reporting.debug.js"></script>
in place of <script src="../../dist/dash.all.debug.js"></script>
Observed behaviour
Impossible to load correctly html sample file.
Console output
Error: event type cannot be null or undefined at Object.on (EventBus.js:43) at setup (MetricsCollectionController.js:95) at Object.MetricsCollectionController (MetricsCollectionController.js:103) at Object.create (FactoryMaker.js:162) at Object.createMetricsReporting (MetricsReporting.js:57) at detectMetricsReporting (MediaPlayer.js:2307) at attachView (MediaPlayer.js:1693) at Object.initialize (MediaPlayer.js:234) at new (main.js:196) at Object.invoke (angular.min.js:41)