But as I noted I need this for FLV files on our server only: so is it done yet or still "coming soon"?In the nearest future the following video services will be supported: webm, mp4 and flv video files
auto video embed
works on the fly for local flv and mp3 without any bbcode. just the link, thats it.Code: Select all
<div id="container">Loading the player ...</div>
<script type="text/javascript">
//<![CDATA[
jwplayer("container").setup({
flashplayer: "player.swf",
file: "HiRollers.flv",
height: 176,
width: 320,
image: "HiRollers.jpg",
skin: "minima.zip"
});
//]]>
</script>
includes/auto_video_embed_post.php
and includes/auto_video_embed_view.php
, it looks like the video size is determined in these two files.In both of the php filesKeyJockey wrote:but is there a way to force the video-window size that's embedded for it?
// ---------------- CONFIG ---------------
AreaCode: Select all
#
$flv = true;
$flv_width = 425;
$flv_height = 350;
#
'px;height:' . $flv_height . 'px;"
'px;height:auto;"
Code: Select all
// remote link
$preview_message = preg_replace('#<a class="postlink" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#is', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/flv_player.swf"><param name="movie" value="mediaplayer/flv_player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="file=http://$1.flv" /></object>', $preview_message);
// local link
$preview_message = preg_replace('#<a class="postlink-local" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#is', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/flv_player.swf"><param name="movie" value="mediaplayer/flv_player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="file=http://$1.flv" /></object>', $preview_message);}
Code: Select all
// remote link
$preview_message = preg_replace('#<a class="postlink" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#is', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/player.swf"><param name="movie" value="mediaplayer/player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="skin=mediaplayer/slim.zip&image=mediaplayer/movie.jpg&controlbar.position=over&stretching=fill&file=http://$1.flv" /></object>', $preview_message);
// local link
$preview_message = preg_replace('#<a class="postlink-local" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#is', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/player.swf"><param name="movie" value="mediaplayer/player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="skin=mediaplayer/slim.zip&image=mediaplayer/movie.jpg&controlbar.position=over&stretching=fill&file=http://$1.flv" /></object>', $preview_message);}
Code: Select all
// remote link
$message = preg_replace('#<a class="postlink" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/flv_player.swf"><param name="movie" value="mediaplayer/flv_player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="file=http://$1.flv" /></object>', $message);
// local link
$message = preg_replace('#<a class="postlink-local" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/flv_player.swf"><param name="movie" value="mediaplayer/flv_player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="file=http://$1.flv" /></object>', $message);}
Code: Select all
// remote link
$message = preg_replace('#<a class="postlink" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/player.swf"><param name="movie" value="mediaplayer/player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="skin=mediaplayer/slim.zip&image=mediaplayer/movie.jpg&controlbar.position=over&stretching=fill&file=http://$1.flv" /></object>', $message);
// local link
$message = preg_replace('#<a class="postlink-local" href="http:\/\/(.*?).(flv|FLV)"(.*?)>(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:' . $flv_width . 'px;height:' . $flv_height . 'px;" data="mediaplayer/player.swf"><param name="movie" value="mediaplayer/player.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value="skin=mediaplayer/slim.zip&image=mediaplayer/movie.jpg&controlbar.position=over&stretching=fill&file=http://$1.flv" /></object>', $message);}