Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Jul 3, 2024
1 parent a5c1723 commit 6a48fca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dist/speedy-vision.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* https://github.com/alemart/speedy-vision
*
* @license Apache-2.0
* Date: 2024-07-03T01:32:00.614Z
* Date: 2024-07-03T02:16:25.769Z
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -9067,8 +9067,8 @@ class SpeedyVideoMediaSource extends SpeedyMediaSource {
*/
_load(video) {
if (this.isLoaded()) this.release();
setTimeout(() => video.load()); // tweak for slow connections

utils/* Utils */.A.log('Loading a video...');
video.load();
return SpeedyVideoMediaSource._waitUntilPlayable(video).then(() => {
return SpeedyVideoMediaSource._handleAutoplay(video).then(() => {
this._data = video;
Expand Down Expand Up @@ -9123,7 +9123,7 @@ class SpeedyVideoMediaSource extends SpeedyMediaSource {
* @returns {SpeedyPromise<HTMLVideoElement>} resolves to the input video when it can be played
*/
static _waitUntilPlayable(video) {
const TIMEOUT = 15000,
const TIMEOUT = 30000,
INTERVAL = 500;
if (video.readyState >= 3) return speedy_promise/* SpeedyPromise */.i.resolve(video);
return new speedy_promise/* SpeedyPromise */.i((resolve, reject) => {
Expand Down
4 changes: 2 additions & 2 deletions dist/speedy-vision.min.js

Large diffs are not rendered by default.

0 comments on commit 6a48fca

Please sign in to comment.