fix: set crossOrigin on the player so cross-origin HLS subtitles render
Vidstack loads text-track cues via JS; cross-origin subtitle tracks (served by TorrServer on another origin) need the crossorigin attribute on the media element to render. Also required for native HLS on iOS/TV to use the cross-origin stream. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
3538738bb9
commit
def565cf3b
1 file changed
+1
@@ -63,6 +63,7 @@ const Player: FC<Props> = ({ magnet, playlist, subtitles }) => {
|
|||||||
<MediaPlayer
|
<MediaPlayer
|
||||||
playsInline
|
playsInline
|
||||||
autoPlay
|
autoPlay
|
||||||
|
crossOrigin
|
||||||
load='eager'
|
load='eager'
|
||||||
preload='none'
|
preload='none'
|
||||||
storage='movie-advisor'
|
storage='movie-advisor'
|
||||||
|
|||||||
Reference in new issue
Block a user