http://www.icyphoenix.com/viewtopic.php?f=4&t=8162
-----------------------------------
TheSteffen
Tue 18 Oct, 2011 09:13

BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen
-----------------------------------
On FLV Player you can insert width and height of the Video
[code linenumbers=false][flv width=386 height=240]http://content.bitsontherun.com/videos/bkaovAYt-364766.mp4[/flv][/code]
[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

Re: FLV Player Allow Fullscreen
-----------------------------------
I started playing with this but you know how good a coder I am  :mryellow: 

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 linenumbers=false]				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>';
				}[/code]

Promise not to laugh if this is a silly replacement but this worked for me for this fast try:
[code linenumbers=false]				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>';
				}[/code]

Keep in mind ..I'm not saying this is how it should be done  :wink: I even expect this to be incorrect somewhere


-----------------------------------
TheSteffen
Thu 20 Oct, 2011 10:44

Re: FLV Player Allow Fullscreen
-----------------------------------
Thanks [b]Joshua203[/b], 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

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  :wink: 

so in short ..the button was functioning when I tested  :wink:


-----------------------------------
mort
Thu 20 Oct, 2011 13:59

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 linenumbers=false]width="' . $width . '" height="' . $height . '"[/code]


-----------------------------------
TheSteffen
Thu 20 Oct, 2011 14:59

Re: FLV Player Allow Fullscreen
-----------------------------------
My first test was working fine... but I had to clean the cache  :lol: 

Anyway... I used a older version of swf file
http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-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

Re: FLV Player Allow Fullscreen
-----------------------------------
Thanks [b]TheSteffen[/b], I prefer that version as well.

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

[list][*]Download the Zip-archive at the bottom of the page linked to in [url=viewtopic.php?p=54308#p54308][b]TheSteffen[/b]'s last post above.
[*]Open the archive and extract the file [i]mediaplayer.swf[/i].
[*]Rename to [i]flv_player.swf[/i] and upload to the root of your Icy Phoenix installation.
[*]Create a file called [i]clicktostart.gif[/i] for a placeholder and upload it to the root as well. I made it 320x180, which is small and 16:9.
[*]OPEN [b]includes/bbcode.php[/b]
[*]FIND
[codeblock]				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>';
				}[/codeblock]
[*]REPLACE WITH
[codeblock]				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>';
				}[/codeblock][/list]

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

[codeblock]&image=clicktostart.gif[/codeblock]

[i]Note: If you already posted some videos on your website using the bbcode [b][flv][/b] 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.[/i]


-----------------------------------
Hans
Mon 31 Oct, 2011 03:05

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

Re: FLV Player Allow Fullscreen
-----------------------------------
Thanks [b]scorpsportal[/b] for your instruction.

[b]Hans[/b]: yes, it is similar... you have to insert allowfullscreen="true"


-----------------------------------
Hans
Wed 02 Nov, 2011 05:30

Re: FLV Player Allow Fullscreen
-----------------------------------
[quote user="TheSteffen" post="54412"]

[b]Hans[/b]: yes, it is similar... you have to insert allowfullscreen="true"[/quote]

Awesome! I will try that out! Thank you both very much!


-----------------------------------
Mighty Gorgon
Sun 08 Jan, 2012 20:03

Re: BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen
-----------------------------------
Thanks to everyone who contributed, topic moved to Docs section.


