Skip to content

Commit

Permalink
it's run
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan1986 committed Aug 14, 2021
1 parent 0879251 commit acabd30
Show file tree
Hide file tree
Showing 3 changed files with 684 additions and 685 deletions.
15 changes: 7 additions & 8 deletions src/app/lib/views/player/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@
if (type === 'episode') {
type = 'show';
}
console.log('====');
console.log(this.video);
if (this.video.currentTime() / this.video.duration() >= 0.8 && type !== undefined && this.model.get('metadataCheckRequired') !== false) {
App.vent.trigger(type + ':watched', this.model.attributes, 'database');
}
Expand Down Expand Up @@ -409,7 +407,7 @@
this.video = videojs($('#video_player').get(0), {
techOrder: ['youtube'],
forceSSL: true,
ytcontrols: true,
ytcontrols: false,
quality: '720p',
});
this.video.ready(function () {
Expand Down Expand Up @@ -437,13 +435,14 @@
});

} else {
this.video = videojs('video_player', {
this.video = videojs($('#video_player').get(0), {
nativeControlsForTouch: false,
trackTimeOffset: 0,
//inactivityTimeout: 2000,
plugins: {
biggerSubtitle: {},
smallerSubtitle: {},
customSubtitles: {},
//biggerSubtitle: {},
//smallerSubtitle: {},
//customSubtitles: {},
progressTips: {}
}
});
Expand All @@ -452,7 +451,7 @@
});
$('head > title').text(this.model.get('title') + ' - Popcorn-Time' );
}
this.player = this.video;//.player();
this.player = this.video;
App.PlayerView = this;

/* The following is a hack to make VideoJS listen to
Expand Down
Loading

0 comments on commit acabd30

Please sign in to comment.