public class ProviderService extends Object implements IProviderService
IProviderService.INPUT_TYPE
BEAN_NAME
Constructor and Description |
---|
ProviderService() |
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 bs)
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 bs)
Unregister a broadcast stream of a specific name from a scope.
|
public IProviderService.INPUT_TYPE lookupProviderInput(IScope scope, String name, int type)
lookupProviderInput
in interface IProviderService
scope
- Scope of providername
- Name of providertype
- Type of video streampublic IMessageInput getProviderInput(IScope scope, String name)
getProviderInput
in interface IProviderService
scope
- Scope of providername
- Name of providerpublic IMessageInput getLiveProviderInput(IScope scope, String name, boolean needCreate)
getLiveProviderInput
in interface IProviderService
scope
- Scope of providername
- Name of providerneedCreate
- Whether there's need to create basic scope / live provider if they don't existpublic IMessageInput getVODProviderInput(IScope scope, String name)
getVODProviderInput
in interface IProviderService
scope
- Scope of providername
- Name of providerpublic File getVODProviderFile(IScope scope, String name)
getVODProviderFile
in interface IProviderService
scope
- Scope of providername
- Name of providerpublic boolean registerBroadcastStream(IScope scope, String name, IBroadcastStream bs)
registerBroadcastStream
in interface IProviderService
scope
- Scopename
- Name of streambs
- Broadcast stream to registerpublic Set<String> getBroadcastStreamNames(IScope scope)
getBroadcastStreamNames
in interface IProviderService
scope
- Scope to get stream names frompublic boolean unregisterBroadcastStream(IScope scope, String name)
unregisterBroadcastStream
in interface IProviderService
scope
- Scopename
- Stream namepublic boolean unregisterBroadcastStream(IScope scope, String name, IBroadcastStream bs)
unregisterBroadcastStream
in interface IProviderService
scope
- Scopename
- Stream namebs
- Broadcast streamCopyright © 2006-2012 The Red5 Project