Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix player subtitles on iOS

Chocobozzz4e09837aa0e9
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index 5ab1fc9b18..e8a46c721d 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -361,7 +361,10 @@ export class PeerTubePlayer {
getVideojsOptions (): videojs.PlayerOptions {
const html5 = {
- preloadTextTracks: false
+ preloadTextTracks: false,
+ // Prevent a bug on iOS where the text tracks added by peertube plugin are removed on play
+ // See https://github.com/Chocobozzz/PeerTube/issues/6351
+ nativeTextTracks: false
}
const plugins: VideoJSPluginOptions = {