Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放m3u8的时候,如何获取当前播放的ts的详细信息 #1369

Open
wangyong991 opened this issue Apr 7, 2024 · 0 comments
Open

Comments

@wangyong991
Copy link

wangyong991 commented Apr 7, 2024

播放的m3u8格式如下
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:7082092
#EXT-X-PROGRAM-DATE-TIME:2024-04-07T18:25:35.355+0800
#EXTINF:2.0
#EXTINFPTSMS:1463320080
2024040718/1712485546256.ts
#EXT-X-PROGRAM-DATE-TIME:2024-04-07T18:25:37.355+0800
#EXTINF:2.0
#EXTINFPTSMS:1463322080
2024040718/1712485548230.ts
#EXT-X-PROGRAM-DATE-TIME:2024-04-07T18:25:39.355+0800
#EXTINF:2.0
#EXTINFPTSMS:1463324080
2024040718/1712485550264.ts
#EXT-X-PROGRAM-DATE-TIME:2024-04-07T18:25:41.355+0800
#EXTINF:2.0
#EXTINFPTSMS:1463326080
2024040718/1712485552260.ts

我需要播放的时候显示当前播放点对应的programDateTime。hls.js中,可以监听Hls.Events.FRAG_CHANGED 拿到当前ts的programDateTime、startPTS、endPTS、url等信息。
在xgplayer中,播放中能获取当前播放的ts详细信息吗? 对于上面的需求有好的建议吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant