[英]Control over buffer of mp3 stream
Currently I'm some streams urls (like this example ) which i'm playing normally as new Audio()
.目前我是一些流 url(比如这个例子),我作为
new Audio()
正常播放。 Like the code bellow:就像下面的代码:
const audio = new Audio(); audio.src = 'http://radio.talksport.com/stream?awparams=platform:ts-tunein;lang:en&aw_0_1st.playerid=RadioTime&aw_0_1st.skey=1572173094&aw_0_1st.platform=tunein'; audio.load(); audio.play();
But I'm struggling to add some custom buffer on the given stream, like set a buffer of 2 min.但是我正在努力在给定的 stream 上添加一些自定义缓冲区,例如设置 2 分钟的缓冲区。 Is possible to do with streaming?
有可能与流媒体有关吗?
This is a live stream, so no, you cannot set a buffer of 2 minutes.这是一个现场 stream,所以不,您不能设置 2 分钟的缓冲区。
(Unless of course you want to have the user wait 2 minutes before playing anything back.) (当然,除非您想让用户在播放任何内容之前等待 2 分钟。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.