IPublishingProviderpublic class PublishingProviderLive extends PublishingProviderBase implements IPublishingProvider
sendOnMetadata| Constructor | Description |
|---|---|
PublishingProviderLive(Publisher publisher,
long timeoffset,
String streamName) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Invoked on stream close
|
long |
getDuration() |
|
long |
getStartOnPreviousBufferTime() |
|
boolean |
isStartOnPreviousKeyFrame() |
|
boolean |
isStopIfStreamMissing() |
|
boolean |
play(Publisher publisher) |
Invoked on play
|
boolean |
seek(long timecode) |
Invoked on seek
|
boolean |
seek(long timecode,
int seekType) |
Invoked on seek
|
void |
setDuration(long duration) |
Set target duration for playback (milliseconds)
|
void |
setRealTimeStartTime(long realTimeStartTime) |
Set real start time (milliseconds)
|
void |
setStartOnPreviousBufferTime(long startOnPreviousBufferTime) |
|
void |
setStartOnPreviousKeyFrame(boolean startOnPreviousKeyFrame) |
|
void |
setStopIfStreamMissing(boolean stopIfStreamMissing) |
isSendOnMetadata, setSendOnMetadataclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSendOnMetadata, setSendOnMetadatapublic PublishingProviderLive(Publisher publisher, long timeoffset, String streamName)
public void close()
IPublishingProviderclose in interface IPublishingProviderpublic long getDuration()
public long getStartOnPreviousBufferTime()
public boolean isStartOnPreviousKeyFrame()
public boolean isStopIfStreamMissing()
public boolean play(Publisher publisher)
IPublishingProviderplay in interface IPublishingProviderpublisher - publisherpublic boolean seek(long timecode)
IPublishingProviderseek in interface IPublishingProvidertimecode - target timecodepublic boolean seek(long timecode,
int seekType)
IPublishingProviderseek in interface IPublishingProvidertimecode - target timecodeseekType - seek type, see IMediaReader.SEEKTARGET_*public void setDuration(long duration)
IPublishingProvidersetDuration in interface IPublishingProviderduration - duration for playback (milliseconds)public void setRealTimeStartTime(long realTimeStartTime)
IPublishingProvidersetRealTimeStartTime in interface IPublishingProviderrealTimeStartTime - real start time (milliseconds)public void setStartOnPreviousBufferTime(long startOnPreviousBufferTime)
public void setStartOnPreviousKeyFrame(boolean startOnPreviousKeyFrame)
public void setStopIfStreamMissing(boolean stopIfStreamMissing)