Skip to content

Commit

Permalink
Revert some changes poster changes due to load times
Browse files Browse the repository at this point in the history
  • Loading branch information
DispatchCommit committed Apr 1, 2021
1 parent a4f745f commit 84423a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/BitPlayer/BitwaveVideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@
}
console.log( `Reloading player with source: ${this.url} / ${this.type}` );
//this.player.poster = ( () => this.poster );
this.player.poster ( this.poster );
// TODO: optimize poster images and uncomment this
// TODO: Hydrate page with correct poster
// this.player.poster ( this.poster );
this.player.src( { src: this.url, type: this.type } );
},
Expand Down Expand Up @@ -409,7 +410,7 @@
posterCacheBusted () {
if ( this.live ) {
const coeff = 1000 * 60; // Cache bust poster every minute
const coeff = 1000 * 60 * 2; // Cache bust poster every 2 minutes
const timestamp = Math.round( Date.now() / coeff ) * coeff;
return `${this.poster}?${timestamp}`;
} else {
Expand Down

0 comments on commit 84423a2

Please sign in to comment.