|
@@ -495,25 +495,25 @@ class LessonScene extends scene {
|
|
|
this.postPlayRecord(this.curWareId, this.courseId);
|
|
|
break;
|
|
|
case 'view-full-screen':
|
|
|
- if (this.curWareType === Consts.TYPE_IMAGE) {
|
|
|
- this.showScene(require('./ImageWareFullScreenScene.js'), {
|
|
|
- wareList: this.wareList,
|
|
|
- curWareIndex: this.curWareIndex,
|
|
|
- curImageList: this.curImageList,
|
|
|
- curImageIndex: this.curImageIndex,
|
|
|
- });
|
|
|
- } else if (this.curWareType === Consts.TYPE_VIDEO) {
|
|
|
- let video = document.getElementById('hls-video');
|
|
|
- if (video) {
|
|
|
- video.webkitEnterFullScreen();
|
|
|
- // document.getElementById('view-content').removeChild(video);
|
|
|
- }
|
|
|
- // this.showScene(require('./VideoWareFullScreenScene.js'), {
|
|
|
- // isFull: true,
|
|
|
- // wareList: this.wareList,
|
|
|
- // curWareIndex: this.curWareIndex,
|
|
|
- // });
|
|
|
- }
|
|
|
+ if (this.curWareType === Consts.TYPE_IMAGE) {
|
|
|
+ this.showScene(require('./ImageWareFullScreenScene.js'), {
|
|
|
+ wareList: this.wareList,
|
|
|
+ curWareIndex: this.curWareIndex,
|
|
|
+ curImageList: this.curImageList,
|
|
|
+ curImageIndex: this.curImageIndex,
|
|
|
+ });
|
|
|
+ } else if (this.curWareType === Consts.TYPE_VIDEO) {
|
|
|
+ let video = document.getElementById('hls-video');
|
|
|
+ if (video) {
|
|
|
+ video.webkitEnterFullScreen();
|
|
|
+ // document.getElementById('view-content').removeChild(video);
|
|
|
+ }
|
|
|
+ // this.showScene(require('./VideoWareFullScreenScene.js'), {
|
|
|
+ // isFull: true,
|
|
|
+ // wareList: this.wareList,
|
|
|
+ // curWareIndex: this.curWareIndex,
|
|
|
+ // });
|
|
|
+ }
|
|
|
this.postPlayRecord(this.cur_item_id, this.courseId);
|
|
|
break;
|
|
|
case 'view-previous':
|
|
@@ -521,10 +521,10 @@ class LessonScene extends scene {
|
|
|
this.curImageIndex -= 1;
|
|
|
this.renderImageView();
|
|
|
}
|
|
|
- if (this.curWareType === Consts.TYPE_AUDIOBOOK && this.curAudioIndex - 1 >= 0) {
|
|
|
- this.curAudioIndex -= 1;
|
|
|
- this.renderAudioView();
|
|
|
- }
|
|
|
+ if (this.curWareType === Consts.TYPE_AUDIOBOOK && this.curAudioIndex - 1 >= 0) {
|
|
|
+ this.curAudioIndex -= 1;
|
|
|
+ this.renderAudioView();
|
|
|
+ }
|
|
|
this.postPlayRecord(this.curWareId, this.courseId);
|
|
|
break;
|
|
|
case 'view-next':
|