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 IStreamPublishSecurityscope - 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 Falsepublic boolean isPlaybackAllowed(IScope scope, String name, int start, int length, boolean flushPlaylist)
isPlaybackAllowed in interface IStreamPlaybackSecurityscope - 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 FalseCopyright © 2006-2012 The Red5 Project