Icy Phoenix

     
 


Tags And Keywordsbbcode, customization, flv player

Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen 
 
On FLV Player you can insert width and height of the Video
Code: [Download] [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
 




____________
TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
 
TheSteffenSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
 
TheSteffenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [Hide] [Select]
width="' . $width . '" height="' . $height . '"

 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
 
TheSteffenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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: [Download] [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.
 



 
Last edited by scorpsportal on Sat 19 Oct, 2013 12:34; edited 1 time in total 
scorpsportalSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
HansSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: FLV Player Allow Fullscreen 
 
Thanks scorpsportal for your instruction.

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




____________
TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
 
TheSteffenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 



 
HansSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BBCODE - CUSTOMIZATION - FLV Player Allow Fullscreen 
 
Thanks to everyone who contributed, topic moved to Docs section.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron