Package org.red5.server.api.stream
Interface IStreamService
- All Superinterfaces:
IScopeService
- All Known Implementing Classes:
StreamService
This interface represents the stream methods that can be called throug RTMP.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeStream
(IConnection connection, Number streamId) Close the stream but not deallocate the resources.Create a stream and return a corresponding id.createStream
(Number streamId) Create a stream and return a corresponding id.void
deleteStream
(Number streamId) Close the stream if not been closed.void
deleteStream
(IStreamCapableConnection conn, Number streamId) Delete streamvoid
initStream
(Number streamId) Called by FMS.void
initStream
(Number streamId, Object idk) Called by FMS.void
Pauses playbackvoid
Undocumented Flash Plugin 10 call, assuming to be the alias to pause(boolean, int)void
Play stream without initial stopvoid
Play stream with namevoid
Play stream with name from start positionvoid
Play stream with name from start position and for given amount if timevoid
Publishes stream from given position for given amount of timevoid
Publishvoid
Publishes stream with given namevoid
Publishes stream with given name and modevoid
receiveAudio
(boolean receive) Can recieve audio?void
receiveVideo
(boolean receive) Can recieve video?void
releaseStream
(String streamName) Called by FME.void
seek
(int position) Seek to position
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
createStream
Number createStream()Create a stream and return a corresponding id.- Returns:
- ID of created stream
-
createStream
Create a stream and return a corresponding id.- Parameters:
streamId
- Stream id- Returns:
- ID of created stream
-
closeStream
Close the stream but not deallocate the resources.- Parameters:
connection
- ConnectionstreamId
- Stream id
-
deleteStream
Close the stream if not been closed. Deallocate the related resources.- Parameters:
streamId
- Stream id
-
initStream
Called by FMS.- Parameters:
streamId
- Stream id
-
initStream
Called by FMS.- Parameters:
streamId
- Stream ididk
- I dont know what this is yet
-
releaseStream
Called by FME.- Parameters:
streamName
- stream name
-
deleteStream
Delete stream- Parameters:
conn
- Stream capable connectionstreamId
- Stream id
-
play
Play stream without initial stop- Parameters:
dontStop
- Stoppage flag
-
play
Play stream with name- Parameters:
name
- Stream name
-
play
Play stream with name from start position- Parameters:
name
- Stream namestart
- Start position
-
play
Play stream with name from start position and for given amount if time- Parameters:
name
- Stream namestart
- Start positionlength
- Playback length
-
play
Publishes stream from given position for given amount of time- Parameters:
name
- Stream published namestart
- Start positionlength
- Playback lengthflushPlaylist
- Flush playlist?
-
publish
Publishes stream with given name- Parameters:
name
- Stream published name
-
publish
Publishes stream with given name and mode- Parameters:
name
- Stream published namemode
- Stream publishing mode
-
publish
Publish- Parameters:
dontStop
- Whether need to stop first
-
seek
void seek(int position) Seek to position- Parameters:
position
- Seek position
-
pause
Pauses playback- Parameters:
pausePlayback
- Pause or resume flashposition
- Pause position
-
pauseRaw
Undocumented Flash Plugin 10 call, assuming to be the alias to pause(boolean, int)- Parameters:
pausePlayback
- Pause or resume flashposition
- Pause position
-
receiveVideo
void receiveVideo(boolean receive) Can recieve video?- Parameters:
receive
- Boolean flag
-
receiveAudio
void receiveAudio(boolean receive) Can recieve audio?- Parameters:
receive
- Boolean flag
-