PDA

View Full Version : Streaming store flv like a live


redeath
02-13-2008, 10:00 AM
Hi guys,

I very new to adobe FMS, actionscript and everymost things here. Just started doing it 3 days ago.

Anyway i'm able to do streaming now after many try and error. But the problem is, is there any way for me to stream stored videos like in live? I have several videos i wan to stream one after another but like watching tv like that not allowing the ppl to view them from start if they join halfway.

Any idea how should that be done? :confused:

redeath
02-15-2008, 03:53 AM
Ok i found out from someone demo that actually it is quite simple, jus in the server side as jus have to do these:-

application.tvStream = Stream.get("tv");
application.tvStream.play( "flv:test", 0, -1, false );

But i have another problem i need to switch between livestream (from camera) and stored video (flv) but i try a few ways and still cannot get it to work.

application.tvStream.play( "rtmp://localhost/live/livestream", 0, 60, true );

but it wouldn't work. Any idea how to make it work or where can i find the API coz the Language and Components Reference provided doesn't have much info on the application and tvStream. so i can't check it out.:mad:

kkuhl
03-12-2008, 03:05 AM
Well you'll need to use the "On demand" or vod service that FMS offers. I don't know which version you're running but you will place your videos into a 'home folder' so to speak and then you will have access to those videos from any player connecting to your server: example: rtmp://yourserver/sample.flv will begin streaming a sample.flv stream from the server. You can write your client application to perform any other tweaks you want for your TV like experience like to play commericials etc, and server side scripting to manage streams, applications, republishing, communication between many clients at once, etc.

EDIT:
Sorry I misread the order of the posts. If you want to willingly switch at any time between VOD and Live feeds, you will have to have some server side logic do that for you I believe. You can manipulate, add to, and remove streams using the Stream object class . Download the server side scripting documentation on adobe's website for more information and SS Lang reference.