video.js - Autosize or access video dimensions from metadata in Videojs -
i'm using videojs flash fallback display mp4 videos. omit video dimensions html5 video area can autosized width , height of video using jquery $.find("#video_html5_api").width(), flash fallback has no attributes , stays @ default size (300 x 150).
is there way create flash fallback autosize, or there way width/height metadata , pass player.width() etc.
it seems "loadedmetadata" event contains no actual metadata information, , published api has no method metadata information.
after trawling through swf fallback source found way it.
$("#video_flash_api").get(0).vjs_getproperty("videowidth")
html5-video video.js
No comments:
Post a Comment