Skip to main content
daslicht
Known Participant
December 14, 2010
Question

Listening on Serverside for cuePoints

  • December 14, 2010
  • 1 reply
  • 1632 views

Hello,

how to listen on the ServerSide for cuePoints in a ServerSide stream ( serverSide Playlist )

and store them in a variable?

Once a user connect the stored cuePoint has to be send to the client?

How is that done?

    This topic has been closed for replies.

    1 reply

    daslicht
    daslichtAuthor
    Known Participant
    December 17, 2010

    noone use this feature ???

    Participating Frequently
    December 17, 2010

    cuePoints are supposed to be defined on client side NetStream Objects. I have never used it on server-side , but you can just try code like below (I am not sure whether it would work):

    mystream = Stream.get("mysample");

    mystream.onCuePoint = function(res){

         trace("OnCuePoint:"+res);

    }

    mystream.play("hello",0,-1,true);

    so if "hello" has onCuePoint embedded it will get triggered

    daslicht
    daslichtAuthor
    Known Participant
    December 17, 2010

    Hello,

    thank you for you reply.

    The idea behind server Side listening for cue-Points is the following.

    Image you have a prerecorded DJ mix with song specific embedded cuePoints.

    e.g:

    00:00:00 Artist1 Song1

    05:10:00 Artist2 Song2

    15:23:00 Artist3 Song3

    ...

    Lets say we have this running on a ServerSide-Playlist..., what happens if a listener connects to the stream in the middle of 2 Songs...?

    He won't get the Song Information until the next cuePoint is dispatched.

    So my idea was to listen on the ServerSide for cuePoints, store the most recent in a variable and inject it manually once a client connect.

    This way the client would be instantly provided with song specific information.

    Pretty straight forward , no ?

    Or is there another way to solve this issue ?

    Best Regards

    Marc