Handle private videos, use iOS client

This commit is contained in:
Brahim Hadriche committed 2024-09-22 13:57:21 -04:00
1 parent 11d1aef201
commit 1ff96223a5
2 files changed
+18 -7

No files matched your search

@@ -46,13 +46,18 @@
async function playOnTvHotFix() {
// measure length of time it takes to get video info
const start = performance.now();
const videoInfo = await YoutubeJs.getVideoInfo(videoId);
const end = performance.now();
console.log(`Time to get video info: ${end - start}ms`);
try {
const start = performance.now();
const videoInfo = await YoutubeJs.getVideoInfo(videoId);
const end = performance.now();
console.log(`Time to get video info: ${end - start}ms`);
await YoutubeJs.postCacheData(videoInfo);
await playOnTv();
await YoutubeJs.postCacheData(videoInfo);
await playOnTv();
} catch (e) {
console.error(e);
alert(e.toString());
}
}
async function queueOnTv() {