diff --git a/src/lib/strings/embed-player.ts b/src/lib/strings/embed-player.ts index b1fc75b8b4..5848f2af96 100644 --- a/src/lib/strings/embed-player.ts +++ b/src/lib/strings/embed-player.ts @@ -352,8 +352,17 @@ export function parseEmbedPlayerFromUrl( if (id && filename && dimensions && id.includes('AAAAC')) { if (Platform.OS === 'web') { - id = id.replace('AAAAC', 'AAAP3') - filename = filename.replace('.gif', '.webm') + const isSafari = /^((?!chrome|android).)*safari/i.test( + navigator.userAgent, + ) + + if (isSafari) { + id = id.replace('AAAAC', 'AAAP1') + filename = filename.replace('.gif', '.mp4') + } else { + id = id.replace('AAAAC', 'AAAP3') + filename = filename.replace('.gif', '.webm') + } } else { id = id.replace('AAAAC', 'AAAAM') }