Skip to main content
Participating Frequently
March 16, 2009
Question

Some basic questions from a beginner

  • March 16, 2009
  • 4 replies
  • 3182 views
Hi!

What i plan to do is a little vod-service, that should work something like this:
(player is the jw flv player)
1) giving the server a session id (rtmp://<mydomain>/<myapp>/<session_id>)
2) then querying an id-server, that confirms my session id and returns a path to a file in my local file-system
3) redirecting the stream to this source
4) bonus would be if i could control the start position in the file and the duration i want to stream it

I'd be grateful for any hint, where i should realise each of these parts!

So far points 1) & 2) are solved in the access-module in libconnect.dll. I tried to make 3) also in libconnect.dll, but it doesn't seem to work the way i want it to. In fact, it doesn't seem to work at all...
And i have no idea where to turn to, to get on 4).

Thanks fo any help to come! :)

Greetz,
Para
    This topic has been closed for replies.

    4 replies

    Participant
    March 24, 2009
    no it's not. ive already checked it out, but it's not that.
    Participating Frequently
    March 25, 2009
    Hi!

    Is there someone trying to hijack my thread? :)

    You were right Mr Binitie, it was just to easy with the LoadVars-Class.
    Now i'm stuck on 3) (redirecting to a different source) again.
    Setting a new source by calling Stream.play("<new source>",0,-1); is obvious.
    But how can access the actual stream a client is requesting?
    Is that even possible in the Application.onConnect() method or am i looking in the wrong place?
    Or is it possible to create a new stream-object and then associating it with the client?
    And again: where is the place to put that stuff?

    Thanks and Greetz,
    Para
    Participating Frequently
    March 26, 2009
    Redirecting is easy since you have already created the Stream. All you need to do is pass it the id of the stream you want played, you may do this by providing the client with a list of the streams they want to see. you then pass the stream id to the Stream object. A NetConnection.call(<setNewStream>, null, <stream id>) on the client then onthe server a Client.prototype.setNewStream = function(sid){application.Stream.play(sid)}; or something like that should do it. I hope I have not missed the crux of your question. Good luck.
    Participant
    March 23, 2009
    hi
    i have a problem on the interface of the stage.
    i was colouring a draw when i hit a wrong button, i dont know what it is, but i dont see the draw anymore; i only see the outline of the layer.it's not a problem on preferences on the layers ive checked out.
    please help i wanna finish this job tonight.
    Participating Frequently
    March 23, 2009
    Gattiz, this seems a bit off the current path :). If its Flash you're working with and you're only seeing outlines then check the Square on the timeline beside the layer padlock. If clicked it converts all layers to outlines. See if thats the problem
    Participating Frequently
    March 23, 2009
    Actually I do believe it should be possible to make a REST call from your Media Actionscript. LoadVars should do it - you are correct in your accessment. The worst case scenario is to go the AMF /Remoting route. I'll do some due diligence and try to supply a solution
    March 16, 2009
    Hi Para,

    Can you just use the start and len parameters of the NetStream.play() method for #4?

    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html

    HTH,
    Jody
    Participating Frequently
    March 18, 2009
    Hi!

    Thanks for the answer, but i would like to do all the stuff server-side, cause we use the flash-client with different server systems. I'd prefer to make no changes to the client at all.

    Isn't there a way to control the streams server-side?

    Any hints for 1)-3)? :)

    Thanks and greetz,
    Para
    Participating Frequently
    March 18, 2009
    If you are using the default FMIS VOD service I'm afraid there is nothing you can do. However if you are streaming from an application then yes you can control the streams from the server using the Streams class. It is possible to set the origin and finish points of your stream with a Stream object. This of course will all have to be done using Media-Actionscript on the server.