
Javascript callback for onCuePoint netsream callback.
Hi
i am broadcasting a live stream from a custom swf encoder.I am also sending cuepoints every 1 second in this way:
var info:Object = new Object();
info.type = "actionscript";
info.time = 5 * 1000;
info.parameters = null;
stream.send("onCuePoint", info);
Now i wish to understand how to capture the same on jwplayer. since i see that jwplayer netclient has implemented onCuePoint handler i am assuming it is receiving the data. right?
If i am wont, then how can i send data to jwplayer from swf encoder in any of its existing handlers. ??
/** Captionate caption handler. **/
public function onCaption(cps:String,spk:Number):void {
forward({captions:cps,speaker:spk},'caption');
};
/** Captionate metadata handler. **/
public function onCaptionInfo(obj:Object):void {
forward(obj,'captioninfo');
};
/** Cuepoint handler. **/
public function onCuePoint(obj:Object):void {
forward(obj,'cuepoint');
};
/** Textdata handler (MP4 text tracks). **/
public function onTextData(obj:Object):void {
forward(obj,'textdata');
};