简体   繁体   中英

Discard audio before certain time from Hls.js stream

I am using Hls.js to live stream an audio feed into an audio element in my HTML. In my custom audio controls I limit the user to only be able to scroll back to the most recent five minutes of audio in the stream. However the audio for any time beyond the most recent five minutes still exists.

Is there any way to discard/trim the audio source beyond the most recent five minutes? Given i only care about the most recent five minutes of audio and the livestream could be constantly playing for multiple hours on end, what is the best method discard any of the unneeded audio from the source?

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM