开发者

Video html5: how to get currently played source

开发者 https://www.devze.com 2023-03-20 12:00 出处:网络
in a <video> tag, how can I know the currently played source URL with JQuery if there are many sources (different codec)?

in a <video> tag, how can I know the currently played source URL with JQuery if there are many sources (different codec)?

I tried with the sr开发者_如何学运维c property, but it's empty.

Thanks!

Pv


The latest version of the HTML5 spec gives the currentSrc property for this purpose. I'm not sure if all browsers support this.

0

精彩评论

暂无评论...
验证码 换一张
取 消