Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 437
pvledoux Avatar asked Jul 14 '11 11:07

pvledoux


1 Answers

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

like image 178
Gaurav Avatar answered Oct 19 '22 16:10

Gaurav