From c94eb928e12274896c47e2f89ef3a8378d696f68 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 24 Sep 2025 16:12:51 -0400 Subject: [PATCH] Document autoplay flags in torrent handlers --- js/webtorrent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/webtorrent.js b/js/webtorrent.js index da8fa5af..7cab729c 100644 --- a/js/webtorrent.js +++ b/js/webtorrent.js @@ -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";