Richard,
Thank you a lot for your reply
But unfortunatelly this does not work:
Code:
public void onPlay(IMediaStream stream, String streamName, double playStart, double playLen, int playReset)
{
out("RTMPMediaEventsListener","onPlay()");
AMFDataMixedArray data = new AMFDataMixedArray();
data.put("message", new AMFDataItem("hello Wowza"));
stream.sendDirect("clientsideCallbackFunction", data);
}
client-side:
Code:
nsPlay = new NetStream(nc);
nsPlay.addEventListener(NetStatusEvent.NET_STATUS, nsOnStatus);
var nsPlayClientObj:Object = new Object();
nsPlayClientObj.clientsideCallbackFunction = function(data:Object):void {
trace(data.message);
}
nsPlayClientObj.onMetaData = function(infoObject:Object):void
{
trace("onMetaData");
//clearInterval(progressTimer);
// print debug information about the metaData
for (var propName:String in infoObject)
{
trace(" "+propName + " = " + infoObject[propName]);
}
// grab the movies duration from the metadata
if (duration == 0)
{
duration = infoObject.duration;
//duration = 1000;
slider.maximum = duration ;
progressTimer = setInterval(updateProgress, 250);
}
};
// print debug information when we encounter a cuePoint
nsPlayClientObj.onCuePoint = function(infoObject:Object):void
{
trace("onCuePoint: "+infoObject.name+" ("+infoObject.type+")");
var param:String;
for(param in infoObject.parameters)
{
trace(" param: "+param+"="+infoObject.parameters[param]);
}
};
// print debug information when we play status changes
nsPlayClientObj.onPlayStatus = function(infoObject:Object):void
{
trace("onPlayStatus");
for (var prop:String in infoObject)
{
trace("\t"+prop+":\t"+infoObject[prop]);
}
};
nsPlay.client = nsPlayClientObj;
// set the buffer time and attach the video and audio
nsPlay.bufferTime = 3;
videoObj.attachNetStream(nsPlay);
// start playback
isProgressUpdate = false;
isPlaying = true;
nsPlay.play(streamStr.text);
I use flash client which Wowza supplies in examples. Do you have any ideas how to make ti work ?
Thanks