Hi there
Many thanks for this great player.
I have been trying to add an additional &image parameter to allow the player to show an image (the first frame of the video) instead of a black screen. I have tested this by adding the &image parameter to the snippet as follows:
echo "so.addParam('flashvars','&file=$file&logo=$logosrc&skin=/upload/simple.swf&controlbar=$controlbar&fullscreen=$fullscreen&stretching=$stretching&autostart=false&image=/assets/images/test.jpg'); \n";
which works perfectly.
However I want to be able to change the image for each video I use (ie to display the first frame) but can’t seem to pass the &image value using the JWPlayer call. I have added the following lines of code to the snippet:
$image = (isset($image)) ? strtolower($image) : "assets/images/test.jpg" ; //Show image instead of blackscreen onload
$imagesrc = $modx->config['site_url'].$image;
And also added the calls &autostart=false&image=&imagesrc to this line:
echo "so.addParam('flashvars','&file=$file&logo=$logosrc&skin=/upload/simple.swf&controlbar=$controlbar&fullscreen=$fullscreen&stretching=$stretching&autostart=false&image=&imagesrc'); \n";
Finally I have added the &image parameter in the JW player call:
[[JWPlayer? &src=[*videosrcArticle*]&height=[*videoheightArticle*]&width=[*videowidthArticle*]$controlbar=bottom&image=assets/images/test.jpg]]
Unfortunately this doesn’t work - when I view the source of this page the value for &image hasn’t been passed the the flashvars so still reads:
so.addParam('flashvars','&file=http://www.gamblingexclusive.com/assets/images/us/2010/poker/video/video.flv&logo=http://www.gamblingexclusive.com/assets/images/system/vidlogo.png&skin=/upload/simple.swf&controlbar=bottom&fullscreen=false&stretching=uniform&autostart=false&image=&imagesrc');
Am I missing something? Any help would be greatly appreciated!
Thanks.