Package org.red5.server.stream
Interface IProviderService
- All Superinterfaces:
IScopeService
- All Known Implementing Classes:
ProviderService
Central unit to get access to different types of provider inputs
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBroadcastStreamNames
(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.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.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.
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
lookupProviderInput
Returns the input type for a named provider if a source of input exists. Live is checked first and VOD second.- 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.- Parameters:
scope
- Scope of providername
- Name of provider- Returns:
- null if nothing found.
-
getLiveProviderInput
Get a named Live provider as the source of input.- 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.- Parameters:
scope
- Scope of providername
- Name of provider- Returns:
- null if not found.
-
getVODProviderFile
Get a named VOD source file.- Parameters:
scope
- Scope of providername
- Name of provider- Returns:
- null if not found.
-
registerBroadcastStream
Register a broadcast stream to a scope.- Parameters:
scope
- Scopename
- Name of streamstream
- Broadcast stream to register- Returns:
- true if register successfully.
-
getBroadcastStreamNames
Get names of existing broadcast streams in a scope.- 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.- Parameters:
scope
- Scopename
- Stream name- Returns:
- true if unregister successfully.
-
unregisterBroadcastStream
Unregister a broadcast stream of a specific name from a scope.- Parameters:
scope
- Scopename
- Stream namestream
- Broadcast stream- Returns:
- true if unregister successfully.
-