Package com.wowza.wms.stream
Class MediaStreamActionNotifyBase
Object
com.wowza.wms.stream.MediaStreamActionNotifyBase
- All Implemented Interfaces:
IMediaStreamActionNotify
,IMediaStreamActionNotify2
,IMediaStreamActionNotify3
public abstract class MediaStreamActionNotifyBase
extends Object
implements IMediaStreamActionNotify, IMediaStreamActionNotify2, IMediaStreamActionNotify3
Abstract base class for IMediaCasterNotify interfaces
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCodecInfoAudio
(IMediaStream stream, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio) Triggered when publishing stream receives codec information.void
onCodecInfoVideo
(IMediaStream stream, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo) Triggered when publishing stream receives codec information.void
onMetaData
(IMediaStream stream, AMFPacket metaDataPacket) Triggered when a published streams metadata is set or changesvoid
onPause
(IMediaStream stream, boolean isPause, double location) Triggered on mediaStream pausevoid
onPauseRaw
(IMediaStream stream, boolean isPause, double location) Triggered on mediaStream pauseRaw.void
onPlay
(IMediaStream stream, String streamName, double playStart, double playLen, int playReset) Triggered on mediaStream playvoid
onPublish
(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) Triggered on mediaStream publishvoid
onSeek
(IMediaStream stream, double location) Triggered on mediaStream seekvoid
onStop
(IMediaStream stream) Triggered on mediaStream stopvoid
onUnPublish
(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) Triggered on mediaStream unpublish
-
Constructor Details
-
MediaStreamActionNotifyBase
public MediaStreamActionNotifyBase()
-
-
Method Details
-
onCodecInfoVideo
public void onCodecInfoVideo(IMediaStream stream, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo) Description copied from interface:IMediaStreamActionNotify3
Triggered when publishing stream receives codec information.- Specified by:
onCodecInfoVideo
in interfaceIMediaStreamActionNotify3
- Parameters:
stream
- mediaStreamcodecInfoVideo
- video codec information
-
onCodecInfoAudio
public void onCodecInfoAudio(IMediaStream stream, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio) Description copied from interface:IMediaStreamActionNotify3
Triggered when publishing stream receives codec information.- Specified by:
onCodecInfoAudio
in interfaceIMediaStreamActionNotify3
- Parameters:
stream
- mediaStreamcodecInfoAudio
- video codec information
-
onMetaData
Description copied from interface:IMediaStreamActionNotify2
Triggered when a published streams metadata is set or changes- Specified by:
onMetaData
in interfaceIMediaStreamActionNotify2
-
onPauseRaw
Description copied from interface:IMediaStreamActionNotify2
Triggered on mediaStream pauseRaw. The pauseRaw method is called when a pause occurs in the player.- Specified by:
onPauseRaw
in interfaceIMediaStreamActionNotify2
- Parameters:
stream
- mediaStreamisPause
- pause or unpauselocation
- location (milliseconds)
-
onPlay
public void onPlay(IMediaStream stream, String streamName, double playStart, double playLen, int playReset) Description copied from interface:IMediaStreamActionNotify
Triggered on mediaStream play- Specified by:
onPlay
in interfaceIMediaStreamActionNotify
- Parameters:
stream
- mediaStreamstreamName
- streamNameplayStart
- playStart offsetplayLen
- playLenplayReset
- reset playlist
-
onPublish
Description copied from interface:IMediaStreamActionNotify
Triggered on mediaStream publish- Specified by:
onPublish
in interfaceIMediaStreamActionNotify
- Parameters:
stream
- mediaStreamstreamName
- streamNameisRecord
- recording streamisAppend
- appending to file
-
onUnPublish
Description copied from interface:IMediaStreamActionNotify
Triggered on mediaStream unpublish- Specified by:
onUnPublish
in interfaceIMediaStreamActionNotify
- Parameters:
stream
- mediaStreamstreamName
- streamNameisRecord
- recording streamisAppend
- appending to file
-
onPause
Description copied from interface:IMediaStreamActionNotify
Triggered on mediaStream pause- Specified by:
onPause
in interfaceIMediaStreamActionNotify
- Parameters:
stream
- mediaStreamisPause
- pause or unpauselocation
- location (milliseconds)
-
onSeek
Description copied from interface:IMediaStreamActionNotify
Triggered on mediaStream seek- Specified by:
onSeek
in interfaceIMediaStreamActionNotify
- Parameters:
stream
- mediaStreamlocation
- location (milliseconds)
-
onStop
Description copied from interface:IMediaStreamActionNotify
Triggered on mediaStream stop- Specified by:
onStop
in interfaceIMediaStreamActionNotify
- Parameters:
stream
- mediaStream
-