Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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');
};

5 Community Answers

JW Player

User  
0 rated :

No matter what i try i get error #2030 End of file on live stream playback on jwplayer using flash player debug. If i play the stream on the broadcasting connection, i receive the proper callback. why is this?

Ethan Feldman

JW Player Support Agent  
0 rated :

Where is this running?

JW Player

User  
0 rated :

Hi Ethan,

sorry for the late reply. The rtmp is to be secured to i cant put a link here. i am using simple netstream api

ns.send("onMetaData", obj);
ns.send("onCuePoint", obj);
ns.send("onTextData", obj);

i am not receiving anything by error on jwplayer. initially its unable to invoke onMetadata then its just #2030 end of file.

JW Player

User  
0 rated :

Tell me how i can show it to you without using public forum.

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you send it privately?

http://www.jwplayer.com/contact-us/

This question has received the maximum number of answers.