Package com.wowza.wms.stream.publish
Class PublishingProviderLive
- Object
-
- com.wowza.wms.stream.publish.PublishingProviderBase
-
- com.wowza.wms.stream.publish.PublishingProviderLive
-
- All Implemented Interfaces:
IPublishingProvider
public class PublishingProviderLive extends PublishingProviderBase implements IPublishingProvider
-
-
Field Summary
-
Fields inherited from class com.wowza.wms.stream.publish.PublishingProviderBase
audioOffset, dataOffset, isDebugLog, previousSkippedTimecode, publisher, sendOnMetadata, streamName, tracksAreAligned, videoOffset
-
-
Constructor Summary
Constructors Constructor Description PublishingProviderLive(Publisher publisher, long audioStart, long videoStart, String streamName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Invoked on stream closelong
getDuration()
long
getStartOnPreviousBufferTime()
boolean
isStartOnPreviousKeyFrame()
boolean
isStopIfStreamMissing()
boolean
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
setStartOnPreviousBufferTime(long startOnPreviousBufferTime)
void
setStartOnPreviousKeyFrame(boolean startOnPreviousKeyFrame)
void
setStopIfStreamMissing(boolean stopIfStreamMissing)
-
Methods inherited from class com.wowza.wms.stream.publish.PublishingProviderBase
isSendOnMetadata, setSendOnMetadata
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wowza.wms.stream.publish.IPublishingProvider
isSendOnMetadata, setRealTimeStartTime, setSendOnMetadata
-
-
-
-
Constructor Detail
-
PublishingProviderLive
public PublishingProviderLive(Publisher publisher, long audioStart, long videoStart, String streamName)
-
-
Method Detail
-
close
public void close()
Description copied from interface:IPublishingProvider
Invoked on stream close- Specified by:
close
in interfaceIPublishingProvider
-
play
public boolean play(Publisher publisher)
Description copied from interface:IPublishingProvider
Invoked on play- Specified by:
play
in interfaceIPublishingProvider
- Parameters:
publisher
- publisher- Returns:
- true if successful
-
seek
public boolean seek(long timecode)
Description copied from interface:IPublishingProvider
Invoked on seek- Specified by:
seek
in interfaceIPublishingProvider
- Parameters:
timecode
- target timecode- Returns:
- true, if seek successful
-
seek
public boolean seek(long timecode, int seekType)
Description copied from interface:IPublishingProvider
Invoked on seek- Specified by:
seek
in interfaceIPublishingProvider
- Parameters:
timecode
- target timecodeseekType
- seek type, see IMediaReader.SEEKTARGET_*- Returns:
- true, if seek successful
-
getDuration
public long getDuration()
-
setDuration
public void setDuration(long duration)
Description copied from interface:IPublishingProvider
Set target duration for playback (milliseconds)- Specified by:
setDuration
in interfaceIPublishingProvider
- Parameters:
duration
- duration for playback (milliseconds)
-
isStartOnPreviousKeyFrame
public boolean isStartOnPreviousKeyFrame()
-
setStartOnPreviousKeyFrame
public void setStartOnPreviousKeyFrame(boolean startOnPreviousKeyFrame)
-
getStartOnPreviousBufferTime
public long getStartOnPreviousBufferTime()
-
setStartOnPreviousBufferTime
public void setStartOnPreviousBufferTime(long startOnPreviousBufferTime)
-
isStopIfStreamMissing
public boolean isStopIfStreamMissing()
-
setStopIfStreamMissing
public void setStopIfStreamMissing(boolean stopIfStreamMissing)
-
-