-
-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Describe the bug
When playing a specific HLS manifest created from a specific seemingly normal 16bit WAV file, through react-native-track-player, with a specific audio file, the audio plays for 1-2 seconds, then stops and gives this error: Playback error: The operation couldn’t be completed. (SwiftAudioEx.AudioPlayerError.PlaybackError error 3
Unless re-encoding this specific audio file to 24 bit, the error persists, in FLAC, or AAC streams. Re-encoding the WAV to 24-bit first fixes the problem.
HLS manifest: https://d.sonica-dev.cloud/779ea0d5-a406-4361-9b64-4c593df0b9d7/output/flac.m3u8
Original WAV file: https://pub-1f5ae28f7eae419c8b7b6cd1c0ede322.r2.dev/e19ccf97-d36c-4198-8350-985eabe2b3ba_e19ccf97-d36c-4198-8350-985eabe2b3ba.wav
Thank you for your help.
To Reproduce
Any HLS manifest that I create with this file fails. AAC or FLAC, doesn't matter, audio plays for a few seconds then fails. The same HLS manifest is created for other files, and it plays fine. On web using hls.js it plays fine.
Expected behavior
Audio to play without stopping
Smartphone (please complete the following information):
- Device: iOS
- OS: 26