org.red5.server.stream
public interface IProviderService extends IScopeService
Modifier and Type | Interface and Description |
---|---|
static class |
IProviderService.INPUT_TYPE |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getBroadcastStreamNames(IScope scope)
Get names of existing broadcast streams in a scope.
|
IMessageInput |
getLiveProviderInput(IScope scope,
String name,
boolean needCreate)
Get a named Live provider as the source of input.
|
IMessageInput |
getProviderInput(IScope scope,
String name)
Get a named provider as the source of input.
|
File |
getVODProviderFile(IScope scope,
String name)
Get a named VOD source file.
|
IMessageInput |
getVODProviderInput(IScope scope,
String name)
Get a named VOD provider as the source of input.
|
IProviderService.INPUT_TYPE |
lookupProviderInput(IScope scope,
String name,
int type)
Returns the input type for a named provider if a source of input exists.
|
boolean |
registerBroadcastStream(IScope scope,
String name,
IBroadcastStream stream)
Register a broadcast stream to a scope.
|
boolean |
unregisterBroadcastStream(IScope scope,
String name)
Unregister a broadcast stream of a specific name from a scope.
|
boolean |
unregisterBroadcastStream(IScope scope,
String name,
IBroadcastStream stream)
Unregister a broadcast stream of a specific name from a scope.
|
static final String BEAN_NAME
IProviderService.INPUT_TYPE lookupProviderInput(IScope scope, String name, int type)
scope
- Scope of providername
- Name of providertype
- Type of video streamIMessageInput getProviderInput(IScope scope, String name)
scope
- Scope of providername
- Name of providerIMessageInput getLiveProviderInput(IScope scope, String name, boolean needCreate)
scope
- Scope of providername
- Name of providerneedCreate
- Whether there's need to create basic scope / live provider if they don't existIMessageInput getVODProviderInput(IScope scope, String name)
scope
- Scope of providername
- Name of providerFile getVODProviderFile(IScope scope, String name)
scope
- Scope of providername
- Name of providerboolean registerBroadcastStream(IScope scope, String name, IBroadcastStream stream)
scope
- Scopename
- Name of streamstream
- Broadcast stream to registerSet<String> getBroadcastStreamNames(IScope scope)
scope
- Scope to get stream names fromboolean unregisterBroadcastStream(IScope scope, String name)
scope
- Scopename
- Stream nameboolean unregisterBroadcastStream(IScope scope, String name, IBroadcastStream stream)
scope
- Scopename
- Stream namestream
- Broadcast streamCopyright © 2006-2012 The Red5 Project