我想处理字符串值从.m3u8或. ts文件(下面)的Javascript。
我可以通过视频标签事件访问这些信息(转换后的字符串或JSON)吗?或者有什么方法吗?
#EXTM3U
#EXT-X-TARGETDURATION:3.84
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:3.84,
some_url/1/some_file1.ts?from=0&to=3840
#EXTINF:1.728,
some_url/1/some_file2.ts?from=0&to=3840
#EXT-X-ENDLIST
1条答案
按热度按时间hc8w905p1#
you can go through https://github.com/video-dev/hls.js/blob/master/docs/API.md#ploader and change the class this way to get the data you displayed.
} };