Document autoplay flags in torrent handlers

This commit is contained in:
thePR0M3TH3AN committed 2025-09-24 16:12:51 -04:00
1 parent c384fc515f
commit c94eb928e1
1 file changed
+2
+2
View File
@@ -213,6 +213,7 @@ export class TorrentClient {
return reject(new Error("No compatible video file found in torrent"));
}
// Satisfy autoplay requirements and keep cross-origin chunks usable (e.g., for snapshots).
videoElement.muted = true;
videoElement.crossOrigin = "anonymous";
@@ -250,6 +251,7 @@ export class TorrentClient {
return reject(new Error("No compatible video file found in torrent"));
}
// Satisfy autoplay requirements and keep cross-origin chunks usable (e.g., for snapshots).
videoElement.muted = true;
videoElement.crossOrigin = "anonymous";