public interface ISubscriberStream extends IClientStream
MODE_APPEND, MODE_LIVE, MODE_PUBLISH, MODE_READ, MODE_RECORD| Modifier and Type | Method and Description |
|---|---|
void |
cancelJob(String jobName)
Cancels a scheduled job by name.
|
StreamState |
getState()
Return the streams state enum.
|
boolean |
isPaused()
Check if the stream is currently paused.
|
void |
onChange(StreamState state,
Object... changed)
Notification of state change and associated parameters.
|
void |
pause(int position)
Pause at a position for current playing item.
|
void |
play()
Start playing.
|
void |
receiveAudio(boolean receive)
Should the stream send audio to the client?
|
void |
receiveVideo(boolean receive)
Should the stream send video to the client?
|
void |
resume(int position)
Resume from a position for current playing item.
|
String |
scheduleOnceJob(IScheduledJob job)
Schedule a job to be executed only once after a 10ms delay.
|
String |
scheduleWithFixedDelay(IScheduledJob job,
int interval)
Schedule a job to be executed regularly at the given interval.
|
void |
seek(int position)
Seek into a position for current playing item.
|
void |
setState(StreamState state)
Sets the streams state enum.
|
void |
stop()
Stop playing.
|
getBroadcastStreamPublishName, getClientBufferDuration, getConnection, getStreamId, setBroadcastStreamPublishName, setClientBufferDurationclose, getCodecInfo, getCreationTime, getName, getScope, getStartTime, startvoid play() throws IOException
IOException - if an IO error occurred while starting to play the streamvoid pause(int position)
position - Position for pause in millisecond.void resume(int position)
position - Position for resume in millisecond.void seek(int position) throws OperationNotSupportedException
position - Position for seek in millisecond.OperationNotSupportedException - if the stream doesn't support seeking.boolean isPaused()
void receiveVideo(boolean receive)
receive - togglevoid receiveAudio(boolean receive)
receive - toggleStreamState getState()
void setState(StreamState state)
state - sets current statevoid onChange(StreamState state, Object... changed)
state - new statechanged - parameters associated with the changeString scheduleOnceJob(IScheduledJob job)
job - scheduled jobString scheduleWithFixedDelay(IScheduledJob job, int interval)
job - scheduled jobinterval - intervalvoid cancelJob(String jobName)
jobName - job nameCopyright © 2005–2017 Red5. All rights reserved.