+
+ private static getAutoPlayValue (autoplay: any) {
+ if (autoplay !== true) return autoplay
+
+ // We have issues with autoplay and Safari with webtorrent
+ if (isIOS()) {
+ // On first play, disable autoplay to avoid issues
+ // But if the player already played videos, we can safely autoplay next ones
+ return PeertubePlayerManager.alreadyPlayed ? 'play' : false
+ } else if (isSafari()) {
+ // Issues with Safari and webtorrent on first play
+ return PeertubePlayerManager.alreadyPlayed ? 'play' : false
+ }
+
+ return 'play'
+ }