Skip to main content
Known Participant
Sep 16, 2010 7:41 AM UTC
Question

FMS 3.5 where is the Client.getStreamLength()

Hi,

I have a server side script, what contains the Client.getStreamLength() function, but since I have to upgrade that from 3.0 to 3.5 the function not works. How get I the stream name from the Client object in FMS 3.5? NetConnection.call not works, because I use FLVPlayback on the client side, and I don't manipulate the Connection's data (I don't send the stream name from client to server)

Thank's!

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Participating Frequently
    Sep 16, 2010 4:03 PM UTC

    As far i remember that was no function defined on Client object named getStreamLength by default. It must be user-defined function in custom SSAS something like Client.prototype.getStreamLength.

    Can you tell me is this your own custom application or one of Adobe's apps.

    Translate
    tomipontAuthor
    Known Participant
    Sep 17, 2010 1:03 PM UTC

    Hi,

    On FMS 3.0 this code have to work:

    p_client.getStreamLength = function( streamName )

    {

         p_client.stream = streamName;

    }

    Here in the doc: http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/help.html?content=00000264.html

    I need some alternative solution...

    Thank's

    Translate
    Participating Frequently
    Sep 17, 2010 2:25 PM UTC

    Looks like you are right, i don't see it in 3.5 docs but see them in 3.0 docs. I will check whether support for this was removed or something.

    Meanwhile you can always get length of the stream by using Stream.length().

    You just code your own custom function like Client.prototype.getStreamLength, something like below

    Client.prototype.getStreamLength = function(name){

         return Stream.length(name);

    }

    If you are still not getting on how to get it work - can you pass your scripts - Server-side and client-side.

    Translate