Package com.wowza.wms.stream.publish
Interface IPublishingProvider
-
- All Known Implementing Classes:
PublishingProviderLive
,PublishingProviderMediaReader
public interface IPublishingProvider
IPublishingProvider: publishing provider interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Invoked on stream closeboolean
isSendOnMetadata()
Get to send onMetadata event when stream startsboolean
play(Publisher publisher)
Invoked on playboolean
seek(long timecode)
Invoked on seekboolean
seek(long timecode, int seekType)
Invoked on seekvoid
setDuration(long duration)
Set target duration for playback (milliseconds)void
setRealTimeStartTime(long realTimeStartTime)
Set real start time (milliseconds)void
setSendOnMetadata(boolean sendOnMetadata)
Set to send onMetadata event when stream starts
-
-
-
Method Detail
-
play
boolean play(Publisher publisher)
Invoked on play- Parameters:
publisher
- publisher- Returns:
- true if successful
-
close
void close()
Invoked on stream close
-
seek
boolean seek(long timecode, int seekType)
Invoked on seek- Parameters:
timecode
- target timecodeseekType
- seek type, see IMediaReader.SEEKTARGET_*- Returns:
- true, if seek successful
-
seek
boolean seek(long timecode)
Invoked on seek- Parameters:
timecode
- target timecode- Returns:
- true, if seek successful
-
setDuration
void setDuration(long duration)
Set target duration for playback (milliseconds)- Parameters:
duration
- duration for playback (milliseconds)
-
setRealTimeStartTime
void setRealTimeStartTime(long realTimeStartTime)
Set real start time (milliseconds)- Parameters:
realTimeStartTime
- real start time (milliseconds)
-
setSendOnMetadata
void setSendOnMetadata(boolean sendOnMetadata)
Set to send onMetadata event when stream starts- Parameters:
sendOnMetadata
- true to send onMetadata event
-
isSendOnMetadata
boolean isSendOnMetadata()
Get to send onMetadata event when stream starts- Returns:
- true to send onMetadata event
-
-