PDA

View Full Version : Video on demand problem


GordonFreeman
06-25-2009, 12:48 AM
Hi,
i'm having problems trying to play FLV videos on demand from FMS 3.0.1., so i kindly ask you some help.

Sometimes the video doesn't show at all, sometimes it plays the audio only, and sometimes it works perfectly...i can't figure out why.

Videos are into the applications/vod/media folder, i'm using a MediaDisplay object to load them, and i've exported the SWF as a Flash Player 7 AS2 application.

// m is the mediadisplay object
m.setBufferTime(10);

// file will be passed as parameter
m.setMedia(file,"FLV");

// initialtime will be passed as parameter
if(initialtime != undefined)
m.play(initialtime);


and the embed code i've used for testing is this:

<embed
src=vod.swf?file=rtmp://192.168.1.64:1935/vod/media/out.flv&initialtime=3000
type="application/x-shockwave-flash"
width=800 height=600 />

as you see, the server is in my local network, but i've tried with a public remote server too, with the same results.

i've attached the source FLA file also.

what i've mistaken?

thank you in advance

GordonFreeman
06-25-2009, 07:18 PM
i've found out that MediaDisplay isn't suitable for playing RTMP streams. As a matter of fact, there's not any documentation or tutorials about it.

is there another way to play RTMP from Flash 7 ?

FLVPlayback component works well but it requires Flash 8 or above, and i must use 7 :(

Namoired
07-24-2009, 12:16 PM
If you want run that on the server I would recommend you look at the hotscripts. That is the best collection of the scripts there.