|
@@ -334,7 +334,12 @@ class LessonScene extends scene {
|
|
|
this.isBack = true;
|
|
|
}
|
|
|
|
|
|
- onOK() {
|
|
|
+ onOK(e) {
|
|
|
+ // 后退
|
|
|
+ if (e.target.con.classList.contains('goback')) {
|
|
|
+ this.hideScene({id: this.courseId}, 'CourseScene');
|
|
|
+ return;
|
|
|
+ }
|
|
|
const leaf = FocusEngine.getFocusedLeaf();
|
|
|
switch (leaf.id) {
|
|
|
case 'view-video-start':
|
|
@@ -361,13 +366,14 @@ class LessonScene extends scene {
|
|
|
} else if (this.curWareType === Consts.TYPE_VIDEO) {
|
|
|
let video = document.getElementById('hls-video');
|
|
|
if (video) {
|
|
|
- document.getElementById('view-content').removeChild(video);
|
|
|
+ video.webkitEnterFullScreen();
|
|
|
+ // document.getElementById('view-content').removeChild(video);
|
|
|
}
|
|
|
- this.showScene(require('./VideoWareFullScreenScene.js'), {
|
|
|
- isFull: true,
|
|
|
- wareList: this.wareList,
|
|
|
- curWareIndex: this.curWareIndex,
|
|
|
- });
|
|
|
+ // this.showScene(require('./VideoWareFullScreenScene.js'), {
|
|
|
+ // isFull: true,
|
|
|
+ // wareList: this.wareList,
|
|
|
+ // curWareIndex: this.curWareIndex,
|
|
|
+ // });
|
|
|
}
|
|
|
this.postPlayRecord(this.cur_item_id, this.courseId);
|
|
|
break;
|