I am currrently trying to embed the first videos on my site, and following most recommendations I would like to stick to the widely spread youtube-standards.
I found that php offers a number of flash-functions coming along with the ming-framework. I find that quite convenient, because I think this bears the chance to add sequences to the video just by modyfying the php code instead of generating a comeletely new video.
However, experimenting with some of the code snippets found here on webmasterwolrd and some other resources I didn't get a single stream displayed properly, yet. So my first question is:
What do I have to do to get ming running? I uncommented the appropriate line in php.ini, and my php-info file (php 5.0.5) shows two rows:
Ming SWF output library enabled
Does this mean all necessary compontents are installed? Or is any additional graphics-library required? Is ming deliverd with the php 5 bundle or do I have to download anything additional?
Heres my html code:
<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="450" height="450"
<param name="movie" value="ming2.php">
<param name="quality" value="high">
<param name="scale" value="exactfit">
<param name="menu" value="true">
<param name="bgcolor" value="#000040">
<embed src="ming2.php" quality="high"
bgcolor="#000000" width="450" height="450"
It is supposed to embed an experimental file named "ming2.php", which currently looks like this:
$filename = "test1.flv";
$s = new SWFVideoStream();
$s -> __construct ($filename);
$m = new SWFMovie();
$m -> add($s);
Which, of course, doesn't work.
1) What are the minimum lines of code necessary to get that file "test.flv" displayed in a flash-player? (this test-file works fine, it is shown in e.g realplayer the way it should).
2) How could I add some seconds of an image-dump-jpeg in the beginning?
3) How can I add some seconds of a "page" containing some text?
4) What do I have to add to get these "play", "rewind" "forward-" etc buttons displayed?
Any help is well appreciated. I know, that the easiest way would probably be to buy adobe products and create the swf-file from that, but I 'd really love to learn more about the way flash videos are created and the elements they may contain.