goldvideo / h265player

一套完整的Web版H.265播放器解决方案,非常适合学习交流和实际应用。基于JS码流解封装、WebAssembly(FFmpeg)视频解码,利用Canvas画布投影、AudioContext播放音频。
https://goldvideo.github.io/h265player/
1.55k stars 300 forks source link

只有一个ts文件时,总时间显示异常 #71

Open yzz-415 opened 2 years ago

yzz-415 commented 2 years ago

时间错误 视频源 跟了下代码发现时间错误显示的数据为 错误 而正确的是 正确 好像是ts只有一个时时间显示错误,求解是怎么回事

yiwen03 commented 2 years ago

可以调试看下,在M3U8Parser.js里duration是怎么返回的。返回object是怎么产生的。duration是个数字,不会是object

------------------ 原始邮件 ------------------ 发件人: yzz-415 @.> 发送时间: 2021年11月15日 15:08 收件人: goldvideo/h265player @.> 抄送: Subscribed @.***> 主题: 回复:[goldvideo/h265player] 只有一个ts文件时,总时间显示异常 (Issue #71)

跟了下代码发现时间错误显示的数据为

而正确的是

好像是ts只有一个时时间显示错误,求解是怎么回事

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

yzz-415 commented 2 years ago

修改 在这里修改下就可以了,这样修改应该不会引起其他问题吧?