|
@@ -1,5 +1,6 @@
|
|
|
-import APIClient from '../../../util/API/APIClient'
|
|
|
-import Consts from '../../../util/Consts'
|
|
|
+import APIClient from '../../../util/API/APIClient';
|
|
|
+import Consts from '../../../util/Consts';
|
|
|
+import Utils from '../../../util/Utils';
|
|
|
import HlsVideoPlugin from '../../../util/HlsVideoPlugin';
|
|
|
import {CommandBus, CMD_TYPE} from '../../../util/CommandBus';
|
|
|
|
|
@@ -141,7 +142,7 @@ class LessonScene extends scene {
|
|
|
case Consts.TYPE_VIDEO:
|
|
|
let playUrl = '';
|
|
|
if (list && list.length >= 1) {
|
|
|
- playUrl = list[0].url;
|
|
|
+ playUrl = Utils.videoUrlFormat(list[0].url);
|
|
|
}
|
|
|
let videoViewDom =
|
|
|
`
|
|
@@ -232,7 +233,7 @@ class LessonScene extends scene {
|
|
|
case Consts.TYPE_VIDEO:
|
|
|
let playUrl = '';
|
|
|
if (list && list.length >= 1) {
|
|
|
- playUrl = list[0].url;
|
|
|
+ playUrl = Utils.videoUrlFormat(list[0].url);
|
|
|
}
|
|
|
let videoViewDom =
|
|
|
`
|