Welcome to WebmasterWorld Guest from 18.104.22.168
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.
Yes, I found a number of freely available players on the web. The resource you gave seems very well organized and I'll have a look tomorrow and try to get my application running with this workaround.
Nevertheless, I thought php offered it's own means to develop such a player within all the swf-commands, but it seems this part is highly experimental at the moment, and I think my hoster doesn't support it by default, yet. It would be very nice if one day I'll be able to handle flv-files form within pure php. Keep things simple, so to speak.
After a whole week of experimenting with the php-swf-functions I installed the player you recommended and managed to integrate and ftp the video to my website within a single day.
In contrast to some other resources I came across the past days, this site has a very clear an straightforward usability and documentation, which made it quite easy to install the package. I had some trouble to find the price for a commercial license, which was hidden in a dropdown-menu of the form, though. Could be presented a bit more visible.
a) because it is definitely w3c-conform and
b) I never got anything to work yet with the <object>...<embed>- html syntax. Dunno why, I think I'm a bit stupid here.