|
@@ -104,8 +104,14 @@ class VideoWareFullScreenScene extends scene {
|
|
|
window.efunbox.fullScreen();
|
|
|
this.videoPlayer = window.efunbox;
|
|
|
} else {
|
|
|
- const videoDom = `<video id="hls-full-video" controls>你的浏览器不支持视频播放</video>`;
|
|
|
+ const videoDom = `
|
|
|
+ <video id="hls-full-video" controls>你的浏览器不支持视频播放</video>
|
|
|
+ <div class="goback" fe-role="Widget">
|
|
|
+ <img src="assets/img/goback.png" />
|
|
|
+ </div>
|
|
|
+ `;
|
|
|
document.getElementById('VideoWareFullScreen').innerHTML = videoDom;
|
|
|
+ this.moye.root.reRender();
|
|
|
this.videoPlayer = new HlsVideoPlugin();
|
|
|
this.videoPlayer.initH5Player(playUrl, 'hls-full-video');
|
|
|
}
|
|
@@ -145,7 +151,16 @@ class VideoWareFullScreenScene extends scene {
|
|
|
|
|
|
}
|
|
|
|
|
|
- onOK() {
|
|
|
+ onOK(e) {
|
|
|
+
|
|
|
+ if (e.target.con.classList.contains('goback')) {
|
|
|
+ this.hideScene({
|
|
|
+ curWareIndex: this.curWareIndex,
|
|
|
+ curImageList: this.curImageList,
|
|
|
+ curImageIndex: this.curImageIndex,
|
|
|
+ }, 'LessonScene');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.videoPlayer.playStatus()) {
|
|
|
this.videoPlayer.pause();
|
|
|
} else {
|