Is it possible to show the first frame as splash screen using Flowplayer API and the function flowplayer_add()? I tried to construct the correct code but it wouldn't work.
Code for 1st frame:
var bufferingStopped = false;
flowplayer("player", "../flowplayer.swf", {
clip: {
autoPlay: false, autoBuffering: true
onStart: function() {
if (bufferingStopped) return;
this.stopBuffering();
bufferingStopped = true;
}
}
});This is my code in a drupal node but it won't work.
<?php
flowplayer_add('#vp1', array(
'clip' => array(
'autoPlay' => false,
'autoBuffering' => true,
'url' => 'http://www.sample.....flv',
'onStart' => 'function(){var bufferingStopped = false;
if (bufferingStopped) return;
this.stopBuffering();
bufferingStopped = true;}',
),
));
?>
<div class="flowplayer" id="vp1" style="width: 480px; float: left; height: 294px">
<img alt="splash" src="/data/img/DVD3_MeinWien.jpg" title="click to play" /></div>Does anyone know how this can be done using flowplayer API? Many thank.
Comments
Comment #1
patmacs commentedmacmaxx, to the best of my knowledge, you would need some sort of FFMPEG related script that would track through the video and remove frames. This would require that FFMPEG is on the server though, which is not always available on shared hosting due to it being processor intensive.