Video.js: Videojs dynamic Poster

Created on 20 Feb 2017  路  4Comments  路  Source: videojs/video.js

I'm surprised that videojs do not include a poster setting when we dynamically load a video.

I see a lot of video player who add it with a poster option.

myPlayer.src({
   "src":"http://mysite.com/video/video.mp4",
   "type":"video/mp4", 
   "poster":"http://mysite.com/img/poster.jpg"
});

OR
myPlayer.poster("http://mysite.com/img/poster.jpg");

I will create a plugin for poster and Youtube poster but i think poster setting should be part of videojs core.

Most helpful comment

myPlayer.poster("http://mysite.com/img/poster.jpg") will set the poster

All 4 comments

myPlayer.poster("http://mysite.com/img/poster.jpg") will set the poster

i did the right suggestion but didn't try it :(
But we never find a example on any search on documentation or on Google, bizarre

Hopefully the new docs make it easier to find this info: http://docs.videojs.com/tutorial-player-workflows.html

ok, the document search never show this page if i'm searching for the word poster.
but thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephanedemotte picture stephanedemotte  路  4Comments

uikoo9 picture uikoo9  路  4Comments

dingyaguang117 picture dingyaguang117  路  4Comments

0xsven picture 0xsven  路  3Comments

kitsunde picture kitsunde  路  4Comments