mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-09 06:12:56 +00:00
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:
1 file changed
+2
@@ -213,6 +213,7 @@ export class TorrentClient {
|
|||||||
return reject(new Error("No compatible video file found in torrent"));
|
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.muted = true;
|
||||||
videoElement.crossOrigin = "anonymous";
|
videoElement.crossOrigin = "anonymous";
|
||||||
|
|
||||||
@@ -250,6 +251,7 @@ export class TorrentClient {
|
|||||||
return reject(new Error("No compatible video file found in torrent"));
|
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.muted = true;
|
||||||
videoElement.crossOrigin = "anonymous";
|
videoElement.crossOrigin = "anonymous";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user