public interface IStreamFilenameGenerator extends IScopeService
Modifier and Type | Interface and Description |
---|---|
static class |
IStreamFilenameGenerator.GenerationType
Possible filename generation types.
|
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
Name of the bean to setup a custom filename generator in an application.
|
Modifier and Type | Method and Description |
---|---|
String |
generateFilename(IScope scope,
String name,
IStreamFilenameGenerator.GenerationType type)
Generate a filename without an extension.
|
String |
generateFilename(IScope scope,
String name,
String extension,
IStreamFilenameGenerator.GenerationType type)
Generate a filename with an extension.
|
boolean |
resolvesToAbsolutePath()
True if returned filename is an absolute path, else relative to application.
|
static final String BEAN_NAME
String generateFilename(IScope scope, String name, IStreamFilenameGenerator.GenerationType type)
scope
- Scope to usename
- Stream nametype
- Generation strategy (either playback or record)String generateFilename(IScope scope, String name, String extension, IStreamFilenameGenerator.GenerationType type)
scope
- Scope to usename
- Stream filenameextension
- Extensiontype
- Generation strategy (either playback or record)boolean resolvesToAbsolutePath()
scope.getContext().getResources(fileName)[0].getFile()
to resolve
this to a file.
If absolute (ie returns true) simply use new File(generateFilename(scope, name))
Copyright © 2006-2012 The Red5 Project