Package com.brightcove.ssai.controller
Class SSAISourceSelector
- java.lang.Object
-
- com.brightcove.ssai.controller.SSAISourceSelector
-
- All Implemented Interfaces:
SourceSelector
public class SSAISourceSelector extends java.lang.Object implements SourceSelector
Provides a default SourceSelector controller implementation that will automatically select a Source rendition based on the following rules:- A DASH source rendition with a vmap property will be used if available
- If not, an HLS rendition with a vmap property will be used if available
- If no DASH or HLS renditions exist with a vmap property, throw a NoSourceFoundException
-
-
Constructor Summary
Constructors Constructor Description SSAISourceSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Source
selectSource(Video video)
Determines best appropriate Source within given Video object based on logic implemented.
-
-
-
Method Detail
-
selectSource
@NonNull public Source selectSource(@NonNull Video video) throws NoSourceFoundException
Determines best appropriate Source within given Video object based on logic implemented.- Specified by:
selectSource
in interfaceSourceSelector
- Parameters:
video
- Video in which to find the most appropriate Source- Returns:
- the best matched Source based on the currently implemented selection logic
- Throws:
java.lang.IllegalArgumentException
- when the Video passed is nullNoSourceFoundException
- when no validSource
is found
-
-