Package com.brightcove.ssai.controller
Class SSAISourceSelector
java.lang.Object
com.brightcove.ssai.controller.SSAISourceSelector
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionselectSource(Video video) Determines best appropriate Source within given Video object based on logic implemented.
-
Constructor Details
-
SSAISourceSelector
public SSAISourceSelector()
-
-
Method Details
-
selectSource
Determines best appropriate Source within given Video object based on logic implemented.- Specified by:
selectSourcein 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:
IllegalArgumentException- when the Video passed is nullNoSourceFoundException- when no validSourceis found
-