Package org.red5.server.api.stream
Interface IStreamPlaybackSecurity
- All Known Implementing Classes:
DenyAllStreamAccess,MockTokenService
public interface IStreamPlaybackSecurity
Interface for handlers that control access to stream playback.
- Author:
- The Red5 Project, Joachim Bauch ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPlayAllowed(IScope scope, String name, String mode, Map<String, String> queryParams, String metaData, String token, String subscriberId, String subscriberCode) booleanisPlaybackAllowed(IScope scope, String name, int start, int length, boolean flushPlaylist) Check if playback of a stream with the given name is allowed.
-
Method Details
-
isPlaybackAllowed
Check if playback of a stream with the given name is allowed.- Parameters:
scope- Scope the stream is about to be played back from.name- Name of the stream to play.start- Position to start playback from (in milliseconds).length- Duration to play (in milliseconds).flushPlaylist- Flush playlist?- Returns:
True
if playback is allowed, otherwiseFalse
-
isPlayAllowed
-