Search code examples
jqueryhtmlvideohtml5-videomediaelement

Video html5: how to get currently played source


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 src property, but it's empty.

Thanks!

Pv


Solution

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