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 Details

    • isPlaybackAllowed

      boolean isPlaybackAllowed(IScope scope, String name, int start, int length, boolean flushPlaylist)
      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, otherwise
       False
       
    • isPlayAllowed

      boolean isPlayAllowed(IScope scope, String name, String mode, Map<String,String> queryParams, String metaData, String token, String subscriberId, String subscriberCode)