Documentation :: PHP Functions
Here is the documentation for the PHP library provided with the open source FLV player. To use these PHP functions, you need to include the file flash.php, provided in the flash folder.
Click here to download the GPLv3 License. |
|

February 19th, 2008 at 11:10 am
Hello. What licence is the flv player released under? I couldn’t find any notice of licence in the source code or on the site.
Can i use this on my website without any restrictions?
February 23rd, 2008 at 8:49 am
GNU or GPL. Yes.
February 26th, 2008 at 3:07 pm
nice job! Where can we find the source code?
March 10th, 2008 at 5:00 am
Is this open source? Where is the source code and the license?
March 10th, 2008 at 8:36 am
Hi, I would like to change the color of the upper part of the menue too. Is that possible somehow?
March 18th, 2008 at 7:10 pm
The code is in the fla files. It’s possible to change the menus, but you have to do it in the fla files.
March 20th, 2008 at 12:40 pm
I like the thumbnail overlay in your example. How do you set that in the embed?
April 3rd, 2008 at 6:03 pm
Awesome Player! Does this player have automatic bandwidth detection as well?
April 19th, 2008 at 1:04 pm
i cant seem to figure out how to change the trackers color
is that possible because i now have a “kindof” white background but a black tracker
May 2nd, 2008 at 3:33 am
is there any limitation on Operating System? does it work when we run under Vista environment. seems to work well with XP..
May 16th, 2008 at 4:24 am
is the player support rtmp protocol?
May 17th, 2008 at 2:39 am
where can i find the flash folder???
June 16th, 2008 at 4:30 am
Hi, where is the actionscript file? How can I compile the fla? Thanks
July 21st, 2008 at 11:37 am
An example using SWFObject would be great.. if possible..
July 21st, 2008 at 11:23 pm
Hi, I want to know whether installation of flash plugin is pust for this player? Does it support flv-RTMP-playback in swf files?
October 1st, 2008 at 9:35 am
Hello,
Is this payer works with flash 7?
Thanks,
October 3rd, 2008 at 9:13 pm
I’ve just tested this player, and it’s working just fine thank you, but I’d like to be able to remove the big Play button in the middle of my movie. I want my movies first frame (when autoloaded) to be present as an unobscured image and find the lower left play button satisfactory for beginning the movie.
I don’t think any of the listed flashvars in any documentation can help me, might this be an addable feature?
October 16th, 2008 at 2:40 pm
Is it possible to theme the player, such as changing colors? I wanted to have a dark grayish bachground e.g. #1111, with a deep purple instead of red on my site…
November 6th, 2008 at 3:50 am
Hi,
i have installed and modified a little the demo.php (quick install) to this:
[code]
[/code]
now i would like to know what files i do really need (all the files under flash folder?!?!)
and how i can change the macromedia url as im getting not secure warnings, and uf macromedia serves https would solve it.
like here:
[code]
var src = ‘player’;
if(!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0))
src = ‘player8′;
AC_FL_RunContent(’codebase’, ‘http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0′, ‘width’, 400, ‘height’, 390, ’src’, src, ‘pluginspage’, ‘http://www.macromedia.com/go/getflashplayer’, ‘id’, ‘flvPlayer’, ‘allowFullScreen’, ‘true’, ‘movie’, src, ‘FlashVars’,'movie=video.flv&fgcolor=0×006AC3&bgcolor=0×000000&volume=70′);
[/code]
this part:
[code]
(’codebase’, ‘http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0′, ‘width’, 400, ‘height’, 390, ’src’, src, ‘pluginspage’, ‘http://www.macromedia.com/go/getflashplayer’, ‘id’, ‘flvPlayer’, ‘allowFullScreen’, ‘true’, ‘movie’, src, ‘FlashVars’,'movie=video.flv&fgcolor=0×006AC3&bgcolor=0×000000&volume=70′);
[/code]
would be my guess as the problem, but im really not sure.
best regards,
November 6th, 2008 at 3:52 am
hi again,
somehow the code tag didnt worked and my modified demo.php didnt show up, so here it is:
November 12th, 2008 at 3:48 am
Hi!
Thank you for this pretty flv player.
I had some difficulties when I had video play from
the middle or somewhere. It stops playing.
Am I missing something, or is it my internet connection causes the problem?
November 14th, 2008 at 6:50 am
It’s really nice and thanks for that! However I am trying to get my webpages validated and.. that’s not working :S Is it possible to get this validated? And if yes, how? There are so many errors I don’t even know where to begin.. The whole flash stuff comes out with many many errors.
December 11th, 2008 at 4:39 pm
You can change the colors with the PHP, you can also use the code generator.
December 11th, 2008 at 4:47 pm
Ricky -
There is no actionscript file, the actionscript for this player is found in frames 1 & 2 of the timeline.
January 12th, 2009 at 10:37 pm
I’m looking forward to create a plugin for WordPress using OSFLV. However, I need to ask your permission to redistribute the swf file with the other plugin files (php, js, css) on the WordPress plugins repository. Of course, there will be enough credit to you and the OSFLV website. Let me know what are your thoughts on this.
Best regards.
January 13th, 2009 at 4:22 pm
I’m trying to edit the player controls and running into a little trouble. I’ve rearranged the positions of some elements (for example, I placed the current play time to the left of the progress bar). My new layout requires that the progress bar be moved to the right and shortened. It also means that I need to start the slider in a different position and have it respond to the new length and position of the progress bar. Can you give instructions on how to modify the width and X position of the progress bar, as well as what relevant values of the slider to change accordingly? Thanks!
January 14th, 2009 at 9:13 am
Harkonenn, To change the positions and length of the progress bar, change the Actionscript in the first frame. There is also a function for the slider in the first frame.
January 14th, 2009 at 12:46 pm
That’s great, thank you!
January 30th, 2009 at 3:53 am
Really thanks, good player.
I’ve just a little problem. I cannot set the correct path to the player.swf
Somebody know hot to set a path for the player ???
Thanks !!!
March 3rd, 2009 at 5:23 pm
Hello,
I find the concept of an Open Source Flash player a very good idea. I have downloaded and implemented the player on a local testing server. I am having no problems with configuration or modifying it to my needs. However, there is a glaring problem (at least I think) that when you right click anywhere on the movie or the player it says Powered by Jambocast. When you Google Jambocast, you find their website at http://jambomedia.com/jambocast.html On this page it mentions: Jambocast is a Simple Video Solution. After years of internal use, Jambo Media has developed the Jambocast technology for private label licensing for advertising & affiliate networks, content owners, website owners and businesses.
So It seems pretty obvious to me that this tool may not be so Open Source after all? Could someone please clarify? Thank you.
March 4th, 2009 at 8:03 am
Drew - Jambo Media owns the OSFLV player. It IS open source and will continue to be open source. However, Jambo Media’s players are not open source. Jambo Media offers paid service Flash Players to advertisers, content owners, website owners and businesses of all sizes. http://www.jambomedia.com/jambocast.html
What you’re seeing is not a glaring problem.
March 4th, 2009 at 4:47 pm
OK, well I disagree with you then though I appreciate your response. If it were truly Open Source, then their advertising wouldn’t be embedded when you right click on the Flash player in a web page. Wouldn’t you agree?
March 6th, 2009 at 3:29 am
There is a bug in the way the movie parameter is handled. If I ask it to read a file with the name “B%C3%A5tmannsknop.flv” (UTF-8) it actually requests the file “B%E5tmannsknop.flv” (ISO-8859-1) from the server. When will this be fixed?
March 8th, 2009 at 1:08 am
@Drew #32
OSFLV is completely open source, if you know what open-source means, you’d know this is open-source. Since this is open source, you would have the ability to remove your problem with the right-click, but it would be quite rude to do so.
Other big companies offer some software for free. and the source code can be downloaded separately. They would still add a way to show who made the original code and who are the “partners” or “sponsors” of the software, like in this case with OSFLV. But nonetheless, you could still remove them or at least modify how they are presented or where and when they can be seen.
March 26th, 2009 at 12:02 am
can I make the video stretch to fit the player… can’t seem to figure out how to pass this variable.. Seems this should be passable but is it more of a flash var than player config? if so example please?
thx
March 26th, 2009 at 8:19 am
@Viper_iii There is no variable set up in the current player to resize the video. That is why the player itself is resizable so that it can scale to fit whatever size video you’ve got. You could tweek the code to add that function but that is not part of the current player’s functionality.
March 30th, 2009 at 7:02 am
Can this thing be XHTML Strict?
March 30th, 2009 at 7:58 am
Yes.
March 30th, 2009 at 8:42 am
Fair enough, “never ask yes/no question unless you mean it”.
What parameter does player.swf need to load its FLV, for example, with this code?
I don’t need EMBED, Run_ActiveContent, etc. - just XHTML.
P.S. Currently the Demo page doesn’t pass the W3C validator.
March 30th, 2009 at 8:43 am
The code got stripped away. Here it is, add brackets in obvious places.
object type=’application/x-shockwave-flash’ data=’player.swf’ height=’300′ width=’450′
param name=’loop’ value=’false’ /
param name=’movie’ value=’…’ /
/object
March 30th, 2009 at 8:51 am
I’m aware of the validation issue, we hope to resolve that issue when an AS3 player is released sometime this year. Thanks.
March 30th, 2009 at 9:22 am
It works if I specify movie parameter in the code as
player.swf?movie=/path/to/video.flv
However, path to video is really a script like
/path/to/script.ext?some=parameters&have=values
How to properly pass that to the player?
March 30th, 2009 at 9:25 am
Also, links for comments (the ones with dates) do not work.
March 31st, 2009 at 4:13 am
Full Screen is not working on single click in second time in Firefox 3.0.7 and Safari 3.2.1., we have to do double click. It worked properly when I click 1st time, after that it only works on double click.
When this issue will be solved?
March 31st, 2009 at 8:55 am
Full Screen issue has been resolved in the new version, right?
March 31st, 2009 at 8:57 am
I don’t believe so. At least it didn’t work for me in demo version. I got it to at least register as a button. Its got me stumped in AS2, I am primarily an AS3 programmer. I am hoping to hold off on the issue until an AS3 player comes along.
June 14th, 2009 at 7:27 pm
Hey thanks for this, I love the retro actionscript in frames thing, brings me back to the good ol’ days, easier to understand if you ask me - although some people label their layers ;). I am busy laughing at all the people asking when things will be fixed! Just fix it, guys, it’s all there on a plate.
August 11th, 2009 at 3:37 pm
Is there a way to add in some buffering time since my flv is a progressive download?
August 11th, 2009 at 3:39 pm
It would require substantial changes to the actual Actionscript within the FLA. It’s possible but it would not be simple.
August 11th, 2009 at 3:45 pm
is there a reason why the flv doesn’t fully load. meaning, i’m not seeing the progression bar “fill up”, even when i’ve paused the movie for a few minutes. it gets about 1/2 way filled then just sits there. does that mean the movie stopped loading?
August 30th, 2009 at 6:21 pm
Thanks a million for such a cool player! Is there a way for a non-programmer like me to change something so the slider (timeline) is functional? When I click it, it just starts the video over again. I can probably change the code if someone could walk me thru it.
Thanks again!
August 30th, 2009 at 6:34 pm
Update–I just realized I have to watch the hole video first, then the slider will work. If I try to click on the slider while it’s playing the first time, it just restarts the video. Any way to make the slider work without having to watch the whole video first?
Thanks ya’ll!
August 31st, 2009 at 7:49 am
@Bill - is your video streaming? do you have a slow connection? It could be taking a very long time to progressively download your video and that is why the prog bar isn’t working until you watch it again (when it has already been downloaded).
October 5th, 2009 at 4:50 am
hello,
i am using this tool in my site .really nice working but i have one question how to set buffer time. is it possible or not???? please reply as soon as possible.
October 5th, 2009 at 7:33 am
There is no flash var to set the buffer time however if you opened the FLA file and tweaked the code, I don’t think you would have to add much code to create that functionality.
October 5th, 2009 at 4:05 pm
Our Apache server was getting pegged hard every time somebody requested a page with this player on it.
If you don’t set the width and height explicitly, the getID3 function seems to load the entire FLV into memory in order to get the width and the size.
This is bad for a big video file(or any video file).
I recommend using ffmpeg-php or hard coding the width and height parameters.
November 21st, 2009 at 9:19 am
Can someone help me how to run mp3, WMV (or other format video and audio files) using OSFLV v3.1
If there is any option to upgrade it?
February 22nd, 2010 at 3:53 am
I want to see the poster image after ending the video. However it only show the poster image beginning of the video. Is anyone can solve it?
February 25th, 2010 at 1:45 pm
The player is not built to handle that function. You would have to code it in yourself.
March 16th, 2010 at 11:17 am
I have a 53 minutes flv. But only the first 3 minutes or so will be played. How can I fix this problem?
March 16th, 2010 at 3:02 pm
You mean you only want to play the first 3 minutes? If so, you need to trim the flv file using a movie editing program and then point the player to the edited file.
April 8th, 2010 at 1:55 am
After trying this software and reading this thread I can clearly say that this is not an open source player. This is just an another example of media company phishing new customers.
April 8th, 2010 at 9:54 am
How so? This is a free, open-source player. Jambo Media is a video solution, however, you have to pay for their services. If you are interested in running a video player with no ads, the OS FLV player is your best solution. If you want to run ads against your video and add revenue to your site, then Jambo Media is your solution. They are two entirely different things.
May 6th, 2010 at 7:03 pm
Have you thought of adding more videos to your blog to keep the readers more entertained? I recently read through the post and it was good…thanks for the share
May 25th, 2010 at 3:58 am
great job!!
i use only codes ,but the previewimage was load many times,and never stop,how to config ?
August 30th, 2010 at 2:23 pm
Does OSFLV has a stand alone executable player?