下拉刷新
Repository Details
Shared bynavbar_avatar
repo_avatar
HelloGitHub Rating
0 ratings
让流式播放变得简单
FreeMIT
Claim
Collect
Share
2.5k
Stars
Yes
Chinese
TypeScript
Language
No
Active
17
Contributors
35
Issues
Yes
Organization
1.5.0
Latest
225
Forks
MIT
License
More
让流式播放变得简单。无论你视频格式是 `mp4` 还是 `hls`,Griffith 都能使用媒体源拓展(MSE)来实现分段加载等功能,提供在线视频播放。示例代码: ```javascript // yarn add griffith import Player from 'griffith' const sources = { hd: { play_url: 'https://zhstatic.zhihu.com/cfe/griffith/zhihu2018_hd.mp4', }, sd: { play_url: 'https://zhstatic.zhihu.com/cfe/griffith/zhihu2018_sd.mp4', }, } render(<Player sources={sources} />) ```
Included in:
Vol.36

Comments

Rating:
No comments yet