BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen »  Show posts from    to     

Icy Phoenix


Documentation And How To - BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen



TheSteffen [ Tue 18 Oct, 2011 09:13 ]
Post subject: BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen
On FLV Player you can insert width and height of the Video
Code: [Hide] [Select]
[flv width=386 height=240]http://content.bitsontherun.com/videos/bkaovAYt-364766.mp4[/flv]



Can someone tell me how I can insert allow fullscreen? "allowfullscreen","true"

Thanks


Joshua203 [ Tue 18 Oct, 2011 18:20 ]
Post subject: Re: FLV Player Allow Fullscreen
I started playing with this but you know how good a coder I am

however I did manage to get it working with a fullscreen button by replacing the player file and modding includes >> bbcode.php

player downloaded and simply renamed to overwrite the original player:

http://www.longtailvideo.com/players/jw-flv-player/

Code I modified for the test in bbcode.php:

Code: [Hide] [Select]
elseif ($tag === 'flv')
{
$html = '<object type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" wmode="transparent" data="flv_player.swf?file=' . $content . '&amp;autoStart=false"><param name="movie" value="flv_player.swf?file=' . $content . '&amp;autoStart=false"/><param name="wmode" value="transparent"/></object>';
}


Promise not to laugh if this is a silly replacement but this worked for me for this fast try:
Code: [Hide] [Select]
elseif ($tag === 'flv')
{
$html = '<object type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" wmode="transparent" allowfullscreen="true" data="flv_player.swf?file=' . $content . '&amp;autoStart=false"><param name="wmode" value="transparent"/><param name="allowfullscreen" value="true"/><param name="movie" value="flv_player.swf?file=' . $content . '&amp;autoStart=false"/><param name="wmode" value="transparent"/></object>';
}


Keep in mind ..I'm not saying this is how it should be done I even expect this to be incorrect somewhere


TheSteffen [ Thu 20 Oct, 2011 10:44 ]
Post subject: Re: FLV Player Allow Fullscreen
Thanks Joshua203, for your work...
I can now see the fullscreen button under the video... but it didn“t work if you click on it.

Maybe I should do anything with the new JS files
Thanks for any help.


Joshua203 [ Thu 20 Oct, 2011 13:25 ]
Post subject: Re: FLV Player Allow Fullscreen
That's funny because these messy edit above did make it work fully for me, only thing did n't like was the screen at the end of the movie but as I'm sure you noticed ..there is a lot more possible with this player

so in short ..the button was functioning when I tested


mort [ Thu 20 Oct, 2011 13:59 ]
Post subject: Re: FLV Player Allow Fullscreen
Try removing this from the above string because they do have a default value that is possibly holding the size down.

Code: [Hide] [Select]
width="' . $width . '" height="' . $height . '"


TheSteffen [ Thu 20 Oct, 2011 14:59 ]
Post subject: Re: FLV Player Allow Fullscreen
My first test was working fine... but I had to clean the cache

Anyway... I used a older version of swf file
http://developer.longtailvideo.com/...3.14?order=name

Because it looks similar to the old one and there should not be any license problems.

Thanks for your help.


scorpsportal [ Sat 29 Oct, 2011 13:49 ]
Post subject: Re: FLV Player Allow Fullscreen
Thanks TheSteffen, I prefer that version as well.

I did the following to enable fullscreen and to have a standard placeholder for all videos:

  • Download the Zip-archive at the bottom of the page linked to in TheSteffen's last post above.
  • Open the archive and extract the file mediaplayer.swf.
  • Rename to flv_player.swf and upload to the root of your Icy Phoenix installation.
  • Create a file called clicktostart.gif for a placeholder and upload it to the root as well. I made it 320x180, which is small and 16:9.
  • OPEN includes/bbcode.php
  • FIND
    Code: [Hide] [Select]
    elseif ($tag === 'flv')
    {
    $html = '<object type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" wmode="transparent" data="flv_player.swf?file=' . $content . '&autoStart=false"><param name="movie" value="flv_player.swf?file=' . $content . '&autoStart=false"/><param name="wmode" value="transparent"/></object>';
    }

  • REPLACE WITH
    Code: [Hide] [Select]
    elseif ($tag === 'flv')
    {
    $html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' . $width . '" height="' . $height . '" id="single1" name="single1"><param name="movie" value="flv_player.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="transparent"><param name="flashvars" value="file=' . $content . '"><embed type="application/x-shockwave-flash" id="single2" name="single2" src="flv_player.swf" width="' . $width . '" height="' . $height . '" bgcolor="undefined" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" flashvars="file=' . $content . '&image=clicktostart.gif" /></object>';
    }


If you don't care for the placeholder, just remove this bit:

Code: [Hide] [Select]
&image=clicktostart.gif


Note: If you already posted some videos on your website using the bbcode [flv] before making the above changes, you may have to go to each of those posts, click 'Edit' and then click 'Submit' to parse the altered html code. purge your cache in ACP.


Hans [ Mon 31 Oct, 2011 03:05 ]
Post subject: Re: FLV Player Allow Fullscreen
Awesome info here!! I will try this out on my board.

I am wondering though, is it possible to tweak the YouTube BBcode in the same manner?


TheSteffen [ Tue 01 Nov, 2011 18:37 ]
Post subject: Re: FLV Player Allow Fullscreen
Thanks scorpsportal for your instruction.

Hans: yes, it is similar... you have to insert allowfullscreen="true"


Hans [ Wed 02 Nov, 2011 05:30 ]
Post subject: Re: FLV Player Allow Fullscreen
TheSteffen wrote: [View Post]


Hans: yes, it is similar... you have to insert allowfullscreen="true"


Awesome! I will try that out! Thank you both very much!


Mighty Gorgon [ Sun 08 Jan, 2012 20:03 ]
Post subject: Re: BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen
Thanks to everyone who contributed, topic moved to Docs section.




Powered by Icy Phoenix