Spaces:
Runtime error
Runtime error
sergey.agapov commited on
Commit ·
af66757
1
Parent(s): 0981ae6
player update
Browse files
templates/tiktok_player.html
CHANGED
|
@@ -127,9 +127,9 @@
|
|
| 127 |
},
|
| 128 |
buffer: {
|
| 129 |
bufferToKeep: 40,
|
| 130 |
-
bufferTimeAtTopQuality:
|
| 131 |
-
bufferTimeAtTopQualityLongForm:
|
| 132 |
-
initialBufferLevel:
|
| 133 |
},
|
| 134 |
}
|
| 135 |
});
|
|
@@ -177,7 +177,7 @@
|
|
| 177 |
setupCaptions();
|
| 178 |
setInterval(refreshCaptions, refreshInterval);
|
| 179 |
waitForInitialData();
|
| 180 |
-
player.play()
|
| 181 |
}
|
| 182 |
|
| 183 |
function onPlayerError(e) {
|
|
@@ -202,7 +202,7 @@
|
|
| 202 |
console.log("Initial data buffered, starting playback");
|
| 203 |
waitingMessage.style.display = "none";
|
| 204 |
video.style.display = "block";
|
| 205 |
-
|
| 206 |
} else {
|
| 207 |
setTimeout(waitForInitialData, 100);
|
| 208 |
}
|
|
|
|
| 127 |
},
|
| 128 |
buffer: {
|
| 129 |
bufferToKeep: 40,
|
| 130 |
+
bufferTimeAtTopQuality: 40,
|
| 131 |
+
bufferTimeAtTopQualityLongForm: 40,
|
| 132 |
+
initialBufferLevel: 30,
|
| 133 |
},
|
| 134 |
}
|
| 135 |
});
|
|
|
|
| 177 |
setupCaptions();
|
| 178 |
setInterval(refreshCaptions, refreshInterval);
|
| 179 |
waitForInitialData();
|
| 180 |
+
//player.play()
|
| 181 |
}
|
| 182 |
|
| 183 |
function onPlayerError(e) {
|
|
|
|
| 202 |
console.log("Initial data buffered, starting playback");
|
| 203 |
waitingMessage.style.display = "none";
|
| 204 |
video.style.display = "block";
|
| 205 |
+
player.play();
|
| 206 |
} else {
|
| 207 |
setTimeout(waitForInitialData, 100);
|
| 208 |
}
|