I have a list with video thumbnails. In the thumbnail event I'm replacing the splash image and using the api.unload method to return to the splash state. This works fine, but when I'm trying to replace the video source by calling api.load, the video begins to play. How can I keep the Flowplayer in splash state when I'm using the api.load method? Here is my code:
$('.video-thumb').on('click', function () {
var imageUrl = $(this).data('video-poster');
//Replace the splash image
$('.my-video-player').css('background-image', 'url(' + imageUrl + ')');
//Return to splash state
api.unload();
//Replace the video sources
api.load([
{ webm: $(this).data('video-webm') },
{ mp4: $(this).data('video-mp4') },
{ ogg: $(this).data('video-ogg') }
]);
});