|
@@ -435,7 +435,8 @@ class DPlayer {
|
|
// https://github.com/Dash-Industry-Forum/dash.js
|
|
// https://github.com/Dash-Industry-Forum/dash.js
|
|
case 'dash':
|
|
case 'dash':
|
|
if (window.dashjs) {
|
|
if (window.dashjs) {
|
|
- const dashjsPlayer = window.dashjs.MediaPlayer().create().initialize(video, video.src, false);
|
|
|
|
|
|
+ const dashjsPlayer = window.dashjs.MediaPlayer().create();
|
|
|
|
+ dashjsPlayer.initialize(video, video.src, false, 0);
|
|
const options = this.options.pluginOptions.dash;
|
|
const options = this.options.pluginOptions.dash;
|
|
dashjsPlayer.updateSettings(options);
|
|
dashjsPlayer.updateSettings(options);
|
|
this.plugins.dash = dashjsPlayer;
|
|
this.plugins.dash = dashjsPlayer;
|