仅在Safari上hls.js口吃音频流
我正在使用HLS.JS来播放广播的实时音频,并且在Chrome上效果很好,但音频仅在Safari上cart缩。
这是代码沙盒示例(请与Safari打开): https://codesandbox.io/s/pgision-mendel-0xgecl?file=/src/app/app.tsx
我是否必须做任何特别的事情才能在Safari上工作良好?
I am using Hls.js to stream live audio for radio, and it works well on chrome but the audio is stuttering on Safari only.
Here is the code sandbox example(kindly, open with Safari): https://codesandbox.io/s/pensive-mendel-0xgecl?file=/src/App.tsx
Do I have to do anything special for it to work well on Safari?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现Safari默认情况下具有内置的HLS。因此,与其使用hls.js,我只是在检查浏览器是否内置了一个,如果是,我只是在做
audio.src = mysrc
否则使用new Hls()
I have figured out that Safari has built-in HLS by default. So instead of using hls.js I am just checking if a browser has built-in one, if yes, i am just doing
audio.src = mySrc
otherwise usenew Hls()
of hls.js