-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HLS Looping #777
Comments
Hello, No, it is not possible to loop a HLS file. |
Thanks for a quick response @ivannador ! What about progressive download? |
A progressive download will have all features, including looping. |
Thanks @gaborszanto! And how does cachePosition() behave with progressive download? Can it be called right after open(...)? |
It gets cached when that point is downloaded. |
Thanks! Really appreciate quick response 🙏 One (hopefully) last question - I am trying to run ReactNative example (with progressive download) and I am getting an error:
Both on simulator and on device. If I change it to HLS streaming - everything works fine. Song url is from example: https://docs.superpowered.com/audio/samples/splice/SO_PF_74_string_phrase_soaring_Gb.mp3 All settings are from example project. |
Same on Android. HLS plays fine, progressive download doesn't work. |
@ivannador @gaborszanto we are evaluating this SDK for our company use and are blocked by this issue. I'd really appreciate any tips 🙏 |
Did you try a different URL provided by you? |
@ivannador Yes, this one works. But the one in the example doesn't, though it is a valid url. Also when I open working url, I get Superpowered::AdvancedAudioPlayer::PlayerEvent_Opened right before Superpowered::AdvancedAudioPlayer::PlayerEvent_ProgressiveDownloadFinished, so playback starts only after download finished. I expected progressive download to start while the track is being downloaded, or is this not the case? |
Your server has to handle Well it is ready for playback after |
Thank you. I am also getting a small click when using loopBetween(3000, 5000, true, 255, false) as you can hear on the video. Is it possible to remove it completely? RPReplay_Final1714057324.movHere is the file I am using (local playback, not download) |
And regarding seeking in file that is being downloaded, from what I gathered if you seek to the part that hasn't yet been downloaded, nothing plays, is that correct? If yes, is it possible to force download start from a new position? |
@ivannador is it technically possible using buffers and advanced player to implement progressive download with seeking? My use case is basically this:
From what I gathered, I basically need an HLS player with looping or a progressive download that supports seeking to not downloaded parts. How can I implement this? If this is not possible with built-in features, I can implement file downloading in chunks with range header, etc., |
Progressive download works in a linear fashion. It starts to download the audio data continuously, you can only seek to what is already downloaded. I suppose making it possible on server-side to "cut" the track in specific parts and load those chunks with progressive download is possible. That click in As for separately downloading chunks, you can use the |
Could you please describe very high level flow of using AudioInMemory with the mentioned use case? e.g. when I download first 10% of the file and 10% in the middle of the file. |
Well you can create an |
Thank you, Do you think it will possible to add looping to HLS audio file streaming (not real-time, just aac converted to hls) after we purchase a license? |
Also do I need to call any method to inform the player that new data has been appended (when appending compressed data into AiM buffers)? |
We have HLS improvements planned on the longer roadmap, but I can't tell when it will come. You don't have to inform the player that data has been appended. |
Is the size argument for the AudioInMemory (main table) set to 0? |
Yes
|
Hey @webmonch, Did you manage to test this with our latest release (2.6.8)? |
@ivannador yes but still had issues. Here's the code I am using (based on HLS streaming project for IOS from your examples) https://gist.github.com/webmonch/5cce8ad2a612941e4e327db89edcea7f Wrote to your zendesk about it yesterday. |
Hi,
is it possible to loop HLS file? Can't seem to get it working
The text was updated successfully, but these errors were encountered: