I am not able to find tag in the source code of html5 version of youtube.
Q.1). Any idea on how it is playing HTML5 video without video element?
one option is that it is adding video element from JS, but I am not able to find out video element even in DOM of web-inspector.
Q.2). How to find video element in web-inspector or in firebug?
PS: I am novice in web-development.
It’s definitely there. I picked a video at random, and:
My browser: Chrome 12.0.742.100 on Mac OS X, with Developer Tools -> Elements tab -> Search for “<video”
Developer Tools will show what’s rendered to the end-user, unlike “view source”.
Alternatively, have a look inside the JavaScript file called
watch. I found this around line 1464:I guess if you match for
fmt_url_map, you’ll find it.