Make Your Own PHP Flash Player Which You Can Pass a File Variable with Preview!!!!
This idea was based on the player that can be found here
I have been trying to find a way with php to automatically to add a preview image to a flv file and after an exhaustive search I have found it. If you know this already, my apologies.
A lot of the credit has to go here though.
From there I got the basic code.
I have addded my logo, Mr Rant, to the lower left hand corner.
I also want to be able to pass a file to the player, that I can do. I also am trying to come up with a way to make a way for it to take an xml file and create a playlist.
This is the PHP that I ended up with after some modification:
You will have a file named videostream1.swf saved there.
Now create the html code. You need to make both the data and value parameters equal to the videostream1.swf now for the file you can pass any flv just by adding the ?file=putwhatevervideohere.flv.
The key for your logo to show is to in function createLogo to use setDepth right after you add it.
then you can play with the x and y cordinates to place it where you want. I would imagine a transparent png would work better, and I will play with that to see. Just want to post an update on my progress. The neat thing about adding it as a button makes the movie play when you click the logo!
vStream.seek(1);//this is how we generate our preview image without a jpg image
from it and I changed the name to
Now we set everything up using
Here's a pic
Or you can see the working one.
|All times are GMT. The time now is 02:29 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0