Package com.wowza.wms.stream
Interface IMediaStreamPlay
- 
 public interface IMediaStreamPlayIMediaStreamPlay: public interface of mediaStreamPlayer object. 
- 
- 
Field SummaryFields Modifier and Type Field Description static intPAUSE_PAUSEPause type: pausestatic intPAUSE_PLAYPause type: playstatic intPAUSE_TOGGLEPause type: togglestatic intPLAYSIZES_AUDIO_BYTESIMediaReader sizes array: audio byte countstatic intPLAYSIZES_AUDIO_COUNTIMediaReader sizes array: audio packet countstatic intPLAYSIZES_DATA_BYTESIMediaReader sizes array: data byte countstatic intPLAYSIZES_DATA_COUNTIMediaReader sizes array: data packet countstatic intPLAYSIZES_LOSS_BYTESIMediaReader sizes array: data byte countstatic intPLAYSIZES_LOSS_COUNTIMediaReader sizes array: data packet countstatic intPLAYSIZES_SIZEIMediaReader sizes array: size of sizes array long[PLAYSIZES_SIZE]static intPLAYSIZES_VIDEO_BYTESIMediaReader sizes array: video byte countstatic intPLAYSIZES_VIDEO_COUNTIMediaReader sizes array: video packet countstatic intPLAYSTATUSTYPE_COMPLETEonPlayStatus type: completestatic intPLAYSTATUSTYPE_STOPonPlayStatus type: stopstatic intPLAYSTATUSTYPE_SWITCHonPlayStatus type: switch
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close mediaStreamPlayIMediaStreamgetParent()Get the parent media stream objectvoidinit(IMediaStream parent, MediaStreamMap streams)Initialize mediaStreamPlayervoidinitLiveStreamRepeating(String liveStreamPacketizer, String liveStreamRepeater)Initialize this stream for live stream repeatingvoidinterruptPlay()Interrupt play to perform operation.doublelength()Get stream length/seconds (seconds)voidpause(int pauseType, long timecode)pause mediaPlayStreamvoidpauseRaw(int pauseType, long timecode)pauseRaw mediaPlayStreambooleanplay()Return true if there are packets to playintplay(java.io.OutputStream out, AMFObj wmsObjAudio, AMFObj wmsObjVideo, AMFObj wmsObjData, long[] sizes)Write new packets or play packetsvoidreset(boolean isReset)Reset mediaStreamPlayervoidresetNoLookup()Reset but do not lookup current position in live streamvoidseek(int location)seek mediaPlayStreamvoidsetBufferTime(int bufferTime)Set buffer timevoidsetName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Set mediaPlayStream name, extension, query string, play start, play len, play resetvoidshutdown()Shutdown mediaStreamPlayerlongsize()Get stream media file sizevoidstartPlay()Start playing streamvoidstopName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Stop stream namevoidswitchName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Switch to stream namevoidswitchPlay()voidupdateLoggingValues()Update internal logging values
 
- 
- 
- 
Field Detail- 
PAUSE_PAUSEstatic final int PAUSE_PAUSE Pause type: pause- See Also:
- Constant Field Values
 
 - 
PAUSE_TOGGLEstatic final int PAUSE_TOGGLE Pause type: toggle- See Also:
- Constant Field Values
 
 - 
PAUSE_PLAYstatic final int PAUSE_PLAY Pause type: play- See Also:
- Constant Field Values
 
 - 
PLAYSTATUSTYPE_SWITCHstatic final int PLAYSTATUSTYPE_SWITCH onPlayStatus type: switch- See Also:
- Constant Field Values
 
 - 
PLAYSTATUSTYPE_COMPLETEstatic final int PLAYSTATUSTYPE_COMPLETE onPlayStatus type: complete- See Also:
- Constant Field Values
 
 - 
PLAYSTATUSTYPE_STOPstatic final int PLAYSTATUSTYPE_STOP onPlayStatus type: stop- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_AUDIO_BYTESstatic final int PLAYSIZES_AUDIO_BYTES IMediaReader sizes array: audio byte count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_AUDIO_COUNTstatic final int PLAYSIZES_AUDIO_COUNT IMediaReader sizes array: audio packet count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_VIDEO_BYTESstatic final int PLAYSIZES_VIDEO_BYTES IMediaReader sizes array: video byte count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_VIDEO_COUNTstatic final int PLAYSIZES_VIDEO_COUNT IMediaReader sizes array: video packet count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_DATA_BYTESstatic final int PLAYSIZES_DATA_BYTES IMediaReader sizes array: data byte count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_DATA_COUNTstatic final int PLAYSIZES_DATA_COUNT IMediaReader sizes array: data packet count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_LOSS_BYTESstatic final int PLAYSIZES_LOSS_BYTES IMediaReader sizes array: data byte count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_LOSS_COUNTstatic final int PLAYSIZES_LOSS_COUNT IMediaReader sizes array: data packet count- See Also:
- Constant Field Values
 
 - 
PLAYSIZES_SIZEstatic final int PLAYSIZES_SIZE IMediaReader sizes array: size of sizes array long[PLAYSIZES_SIZE]- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
initvoid init(IMediaStream parent, MediaStreamMap streams) Initialize mediaStreamPlayer- Parameters:
- parent- parent mediaStream object
- streams- parent mediaStreamMap
 
 - 
shutdownvoid shutdown() Shutdown mediaStreamPlayer
 - 
resetvoid reset(boolean isReset) Reset mediaStreamPlayer- Parameters:
- isReset- is this a playlist reset or addition, true if reset
 
 - 
resetNoLookupvoid resetNoLookup() Reset but do not lookup current position in live stream
 - 
playint play(java.io.OutputStream out, AMFObj wmsObjAudio, AMFObj wmsObjVideo, AMFObj wmsObjData, long[] sizes)Write new packets or play packets- Parameters:
- out- OutputStream
- wmsObjAudio- audio response channel
- wmsObjVideo- video response channel
- wmsObjData- data response channel
- sizes- sizes array. See IMediaStreamPlay.PLAYSIZES_*
- Returns:
- total byte output
 
 - 
playboolean play() Return true if there are packets to play- Returns:
- true if packets to play
 
 - 
seekvoid seek(int location) seek mediaPlayStream- Parameters:
- location- timecode (milliseconds)
 
 - 
pausevoid pause(int pauseType, long timecode)pause mediaPlayStream- Parameters:
- pauseType- pause type. See IMediaStreamPlay.PAUSE_*
- timecode- timecode (milliseconds)
 
 - 
pauseRawvoid pauseRaw(int pauseType, long timecode)pauseRaw mediaPlayStream- Parameters:
- pauseType- pause type. See IMediaStreamPlay.PAUSE_*
- timecode- timecode (milliseconds)
 
 - 
setBufferTimevoid setBufferTime(int bufferTime) Set buffer time- Parameters:
- bufferTime-
 
 - 
setNamevoid setName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Set mediaPlayStream name, extension, query string, play start, play len, play reset- Parameters:
- name- stream name
- oldName- old stream name
- ext- extension
- queryStr- query string
- playStart- play start
- playLen- play len
- playTransition- play reset
 
 - 
switchNamevoid switchName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Switch to stream name- Parameters:
- name- stream name
- oldName- old stream name
- ext- stream extension
- queryStr- query string
- playStart- play start
- playLen- play len
- playTransition- play transition (see MediaBase.PLAYTRANSITION_*)
 
 - 
stopNamevoid stopName(String name, String oldName, String ext, String queryStr, double playStart, double playLen, int playTransition)Stop stream name- Parameters:
- name- stream name
- oldName- old stream name
- ext- stream extension
- queryStr- query string
- playStart- play start
- playLen- play len
- playTransition- play transition (see MediaBase.PLAYTRANSITION_*)
 
 - 
closevoid close() Close mediaStreamPlay
 - 
interruptPlayvoid interruptPlay() Interrupt play to perform operation. Usually for seek or pause.
 - 
startPlayvoid startPlay() Start playing stream
 - 
switchPlayvoid switchPlay() 
 - 
updateLoggingValuesvoid updateLoggingValues() Update internal logging values
 - 
lengthdouble length() Get stream length/seconds (seconds)- Returns:
- length/duration (seconds)
 
 - 
sizelong size() Get stream media file size- Returns:
- media file size
 
 - 
getParentIMediaStream getParent() Get the parent media stream object- Returns:
- parent media stream object
 
 - 
initLiveStreamRepeatingvoid initLiveStreamRepeating(String liveStreamPacketizer, String liveStreamRepeater)Initialize this stream for live stream repeating- Parameters:
- liveStreamPacketizer- live stream packetizer
- liveStreamRepeater- live stream repeater name
 
 
- 
 
-