Package org.red5.server.stream
Class ProviderService
java.lang.Object
org.red5.server.stream.ProviderService
- All Implemented Interfaces:
IScopeService,IProviderService
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.red5.server.stream.IProviderService
IProviderService.INPUT_TYPE -
Field Summary
FieldsFields inherited from interface org.red5.server.stream.IProviderService
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AntMediaApplicationAdaptergetAppInstance(IScope scope) getBroadcastStreamNames(IScope scope) Get names of existing broadcast streams in a scope.getLiveProviderInput(IScope scope, String name, boolean needCreate) Get a named Live provider as the source of input.getProviderInput(IScope scope, String name) Get a named provider as the source of input.private FilegetStreamFile(IScope scope, String name) getVODProviderFile(IScope scope, String name) Get a named VOD source file.getVODProviderInput(IScope scope, String name) Get a named VOD provider as the source of input.lookupProviderInput(IScope scope, String name, int type) Returns the input type for a named provider if a source of input exists.booleanregisterBroadcastStream(IScope scope, String name, IBroadcastStream bs) Register a broadcast stream to a scope.booleanunregisterBroadcastStream(IScope scope, String name) Unregister a broadcast stream of a specific name from a scope.booleanunregisterBroadcastStream(IScope scope, String name, IBroadcastStream bs) Unregister a broadcast stream of a specific name from a scope.
-
Field Details
-
log
private static final org.slf4j.Logger log
-
-
Constructor Details
-
ProviderService
public ProviderService()
-
-
Method Details
-
getAppInstance
-
lookupProviderInput
Returns the input type for a named provider if a source of input exists. Live is checked first and VOD second.- Specified by:
lookupProviderInputin interfaceIProviderService- Parameters:
scope- Scope of providername- Name of providertype- Type of video stream- Returns:
- LIVE if live, VOD if VOD, and NOT_FOUND otherwise
-
getProviderInput
Get a named provider as the source of input. Live stream first, VOD stream second.- Specified by:
getProviderInputin interfaceIProviderService- Parameters:
scope- Scope of providername- Name of provider- Returns:
- null if nothing found.
-
getLiveProviderInput
Get a named Live provider as the source of input.- Specified by:
getLiveProviderInputin interfaceIProviderService- Parameters:
scope- Scope of providername- Name of providerneedCreate- Whether there's need to create basic scope / live provider if they don't exist- Returns:
- null if not found.
-
getVODProviderInput
Get a named VOD provider as the source of input.- Specified by:
getVODProviderInputin interfaceIProviderService- Parameters:
scope- Scope of providername- Name of provider- Returns:
- null if not found.
-
getVODProviderFile
Get a named VOD source file.- Specified by:
getVODProviderFilein interfaceIProviderService- Parameters:
scope- Scope of providername- Name of provider- Returns:
- null if not found.
-
registerBroadcastStream
Register a broadcast stream to a scope.- Specified by:
registerBroadcastStreamin interfaceIProviderService- Parameters:
scope- Scopename- Name of streambs- Broadcast stream to register- Returns:
- true if register successfully.
-
getBroadcastStreamNames
Get names of existing broadcast streams in a scope.- Specified by:
getBroadcastStreamNamesin interfaceIProviderService- Parameters:
scope- Scope to get stream names from- Returns:
- List of stream names
-
unregisterBroadcastStream
Unregister a broadcast stream of a specific name from a scope.- Specified by:
unregisterBroadcastStreamin interfaceIProviderService- Parameters:
scope- Scopename- Stream name- Returns:
- true if unregister successfully.
-
unregisterBroadcastStream
Unregister a broadcast stream of a specific name from a scope.- Specified by:
unregisterBroadcastStreamin interfaceIProviderService- Parameters:
scope- Scopename- Stream namebs- Broadcast stream- Returns:
- true if unregister successfully.
-
getStreamFile
-