jwplayer - How to eliminate black bars? -
i using jwplayer 6.3 embed videos in html/javascript application. have outer div holds container div video embedded. container centered in both directions within outer div. outer div dimensions of browser window. i'm calling jwplayer("container").setup({options}) embed video. good.
the app shows different videos @ different times calling jwplayer("container").setup({options}) again different video. want have each video fill outer div best can, while still keeping own aspect ratio. video aspect ratio guaranteed different of outer div @ given time.
if choose stretching: "bestfit", i'll dreaded black bars (™). fine if choose color these bars (i choose white).
q1: can i/how specify color of bars?
if detect size of video @ run time, specify width , height embed (via .setup()) aspect ratio, , use stretching: "exactfit".
q2: can i/how can detect size of video @ run time?
thanks fred ross-perry
you should use exactfit, not bestfit. if doesn't work, try fill. can use our api, , getmeta() detect size of video - http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference
Comments
Post a Comment