org.red5.server.api.stream.support
public class DenyAllStreamAccess extends Object implements IStreamPublishSecurity, IStreamPlaybackSecurity
Constructor and Description |
---|
DenyAllStreamAccess() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPlaybackAllowed(IScope scope,
String name,
int start,
int length,
boolean flushPlaylist)
Check if playback of a stream with the given name is allowed.
|
boolean |
isPublishAllowed(IScope scope,
String name,
String mode)
Check if publishing a stream with the given name is allowed.
|
public boolean isPublishAllowed(IScope scope, String name, String mode)
isPublishAllowed
in interface IStreamPublishSecurity
scope
- Scope the stream is about to be published in.name
- Name of the stream to publish.mode
- Publishing mode.True
if publishing is allowed, otherwise False
public boolean isPlaybackAllowed(IScope scope, String name, int start, int length, boolean flushPlaylist)
isPlaybackAllowed
in interface IStreamPlaybackSecurity
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?True
if playback is allowed, otherwise False
Copyright © 2006-2012 The Red5 Project