Package org.red5.server.api.stream
Interface IPlaylistSubscriberStream
- All Superinterfaces:
IClientStream
,IPlaylist
,IStream
,ISubscriberStream
- All Known Implementing Classes:
PlaylistSubscriberStream
IPlaylistSubscriberStream has methods of both ISubscriberStream and IPlaylist but adds nothing new
-
Field Summary
Fields inherited from interface org.red5.server.api.stream.IClientStream
MODE_APPEND, MODE_LIVE, MODE_PUBLISH, MODE_READ, MODE_RECORD
-
Method Summary
Modifier and TypeMethodDescriptionReturn statistics about this stream.void
onChange
(StreamState state, Object... changed) Handles a change occurring on the stream.boolean
Replaces an item in the list with another item.Methods inherited from interface org.red5.server.api.stream.IClientStream
getBroadcastStreamPublishName, getClientBufferDuration, getConnection, getStreamId, setBroadcastStreamPublishName, setClientBufferDuration
Methods inherited from interface org.red5.server.api.stream.IPlaylist
addItem, addItem, getCurrentItem, getCurrentItemIndex, getItem, getItemSize, hasMoreItems, isRandom, isRepeat, isRewind, nextItem, previousItem, removeAllItems, removeItem, setItem, setPlaylistController, setRandom, setRepeat, setRewind
Methods inherited from interface org.red5.server.api.stream.IStream
close, getCodecInfo, getCreationTime, getName, getScope, start
Methods inherited from interface org.red5.server.api.stream.ISubscriberStream
cancelJob, getState, isPaused, pause, play, receiveAudio, receiveVideo, resume, scheduleOnceJob, scheduleWithFixedDelay, seek, setState, stop
-
Method Details
-
getStatistics
IPlaylistSubscriberStreamStatistics getStatistics()Return statistics about this stream.- Returns:
- statistics
-
onChange
Handles a change occurring on the stream.- Specified by:
onChange
in interfaceISubscriberStream
- Parameters:
state
- stream state that we are changing to or notifying ofchanged
- changed items
-
replace
Replaces an item in the list with another item.- Parameters:
oldItem
- old play itemnewItem
- new play item- Returns:
- true if successful and false otherwise
-