javascript - HLS video quality selector in React.js
问题描述
I am trying to play HLS video (.m3u8) in React.js. The code is running fine. Here is the code snippet:
render() {
return(
<div>
<ReactHlsPlayer
src="https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8"
autoPlay={false}
controls={true}
width="100%"
height="auto"
/>
</div>
)
}
However, I am not getting the quality controller. I have a strict requirement where I need to put the quality selector.
I have followed this reference as well: https://www.npmjs.com/package/videojs-hls-quality-selector but cannot implement on React.js.
How can I implement the quality selector on React.js?
解决方案
推荐阅读
- angular - 禁用的属性不能以角度反应形式工作
- java - SocketIO:发送更大的有效负载时出现 Web 套接字错误
- amazon-web-services - 在 Cloudformation 上更新堆栈时轮换 AWS 密钥
- windows - VS 2017 发布 Web 应用程序由于第一次访问被拒绝但第二次成功而失败
- excel - 另一个工作簿中的宏在 Office 更新后停止工作
- permissions - 在启动时使用 NTFS-3G 挂载 NTFS 分区,并使其在用户界面(文件、Nemo 等)中显示(并可访问)
- hadoop - 在 hive 表的顶部添加一些行
- hive - 如何从具有相似命名模式的多个 Hive 表中查询数据?
- angular - 打字稿中的异步等待
- css-selectors - 如何在 Gatling 检查中使用 CSS 选择器提取元标记内容?