• Hey there!
    @pupunzi, thank you SO SO SO much for developing this plugin — Money absolutely well spent. — Got the previous issue figured out, so ill go ahead and comment on that to close it, but how would I go about setting a start image and end image?

    Reason being, we have a video of a google earth zoom that we are using, for which the start and end frames are totally different so the standard fallback image wouldnt work for us. How would I go about doing this, and is this something that would warrant official addition into the plugin?

    Otherwise, how would I go about accomplishing this goal?

    Thanks again,
    Sincerely your biggest fan ??
    -N

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter n8r4d3

    (@n8r4d3)

    So I recall seeing somewhere that YTPlayer displays the first frame of the video as a placeholder image if none is specified? if so, perhaps the first and last frame can be displayed before and after. That might make more sense…

    Plugin Author pupunzi

    (@pupunzi)

    Hi,
    I think in your case the best solution is to set the start image via CSS as background-image of the containment element of the video and change this image via javascript once the YTPlayer end event is fired.

    You can use the javascript YTPlayer API (https://github.com/pupunzi/jquery.mb.YTPlayer/wiki) by setting the custom ID to the YTPlayer component and then use it as the target object:

    jQuery('#' + YourCustomID).on('YTPEnd', function(){
        // change here the background
    })

    take a look at the Events section of the documentation: https://github.com/pupunzi/jquery.mb.YTPlayer/wiki#events

    • This reply was modified 4 years, 7 months ago by pupunzi.
    • This reply was modified 4 years, 7 months ago by pupunzi.
    Thread Starter n8r4d3

    (@n8r4d3)

    Awesome, ill give it a shot and report back!

    Another solution to this issue perhaps… Is it possible to play the first video in a playlist once and loop the second video?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different images for start and end of bgvid?’ is closed to new replies.