Skip to main content
February 3, 2010
Question

What file was requested when play() is ran on the client

  • February 3, 2010
  • 1 reply
  • 706 views

I have been looking for a way to tell what file was requested from within a VOD app when a video is played.  I want to use the file name for something else but I dont want to have to send it with a second argument in connect().

Is it possible to tell what file is requested??? If so how can I do this??

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    February 3, 2010

    well to do so you will have to write server side code to look at the stream and then request

    the name its in the serverside language refrence.....after you get the name you will have to call to the client with the name.....sending the name through oncConnect probably has the least over head.

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 4, 2010

    Good question. You can perform this in the below mentioned ways.

    1. You can use admin API "getRecordedStreams" to get the list of streams that are being played for VOD streams. For more details you could use "getNetStreamStats" api, for both live and vod streams with client ID. These api-s can be used for whole of the server, vhost, application, or application-instance to restrict the data what you are looking for.

    2. Another way is to use Server Side AS at the FMS application side. Call a method at the server from client with the stream name before/after it plays.

    Regards,

    Janaki L

    February 4, 2010

    I was worried I couldnt simply use AS in the app to get this info with having to modify the player at all. I use a one time key inorder to allow my moves to be player. My problem is its not unique to the movie itself. The key can be used with a diff movie name. This is why I wanted to capture the movie name and combine the name into the key.