but this gets the player into buffering mode and it gets stuck. btw, what's the second parameter in IMediaStreamPlay.pause(), is it the offset at which the player is to be paused ? i am looking for something that just pauses the player as soon as the command reaches from server to jw player, not quite interested in an offset.
i dont have any knowledge about flash streaming but i guess pause event is triggered by NetStream.Pause so i tried these as well,
sendClientOnStatusError(stream.getClient(), "NetStream.Pause", "Press Play to continue");
but nothing happened.
Can someone please help me with pausing the player from server side ?
You're going to want to pause the stream on the player side. Look into the flash documentation for how to do that. Or, check out one of the Wowza simple video streaming examples. You can set a timer in Flash to have the stream paused after a certain amount of time.
If you want to control pausing from the Server side. You will need to use Remote Procedure Calls. From the server, using RPC, you'll send a message that will run a certain function (your pausing function) on the Flash client. See the User Guide for examples of Bi-directional Remote Procedure Calls.
The onPauseRaw event corresponds to NetStream.pause. (Don't use onPause)
Some PPM and PPV systems use IMediaStreamActionNotify interface to track time, but it only works for Flash RTMP clients. Looking back at logs is easier and not limited to Flash RTMP clients. You can track usage for users in the logs following this guide: