Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Poster iamge on Video.


Hi everyone, i am new to jw community and hope that we'll rock.
anyway, i encountered a strange request, use poster on video streaming (exactly like it works with audio streaming) and that's because the company that stream will make the ability to stream audio in the future, until then i need to implement a poster on the video streaming, i can make the trick with html&css but i just curious if i can make it from the JS APi.

my code:
jwsetup = {
primary: 'flash',
image: $.cookie('imgUrl'),
width: '320',
height: '180',
skin: '/jwplayer/skins/abc.xml',
fallback: 'true',
autostart: 'true',
wmode: "opaque",
type: "hls",
ga: {
idstring: "title"
}
}

2 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi!

Can you please give me a link to a page where you have the affected player installed?

Thanks!

jherrieven

User  
0 rated :

Hi @kobieshka

Assuming you are using JW7 you could do something like this:

var playerInstance = jwplayer(...);
playerInstance.setup({...});

playerInstance.on('play',function(){
var preview = document.querySelectorAll('#' + playerInstance.id + ' .jw-preview')[0];
preview.style.display='block';
});

James Herrieven

===================================================
Powered by Haiku
http://powered-by-haiku.co.uk/
---------------------------------------------------
Tatami for Online Video
http://dev.powered-by-haiku.co.uk/solutions/tatami/
---------------------------------------------------
skype: JamesHerrieven
email: james[at]haiku[dot]co[dot]uk
===================================================

This question has received the maximum number of answers.