Merge pull request #52 from PR0M3TH3AN/codex/add-comments-for-autoplay-and-cross-origin-flags

Document autoplay flags in torrent handlers
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-09-24 16:13:12 -04:00
commit 02a1b5121d
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";