Wowza Community

RTMP onPause big delay

I’m experiencing very big delay between pause and firing onPause event for my RTMP streams. onPlay and onStop fires immediately.

In my custom module I have

public void onStreamCreate(IMediaStream stream) { userStream = new UserStream(stream, ...); }

in which I create new instance of a object that implements

UserStream implements IMediaStreamActionNotify

Then I attach client listener this way:

public UserStream(IMediaStream stream, ...){ this.stream.addClientListener((IMediaStreamActionNotify)this); }

and implement onPlay, onPause, onStop events. I don’t quite get why my onPause event only is so delayed. And I test using wowza test player.

Hello

You should take a look at the onPauseRaw event handler within the IMediaStreamActionNotify2 interface. This should fire immediately.

Thanks,

Matt