BrightcoveSourceSelector

It is the default SourceSelector implementation that will automatically select a Source rendition based on the following rules:

  • If an HLS source rendition exists use it (there should be only one, if any)
  • If no HLS renditions exists, but MP4 renditions exist, use the rendition that is closest to 256 kBps
  • If no HLS or MP4 renditions exist, throw a NoSourceFoundException

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun findBestSourceByBitRate(sourceCollection: SourceCollection, bitRate: Integer): Source
Given a SourceCollection, finds the Source with the closest bit rate to the given value.
Link copied to clipboard
Searches for HEVC sources in the provided SourceCollection and creates a new SourceCollection with the sources found.
Link copied to clipboard
Searches for non HEVC sources in the provided SourceCollection and creates a new SourceCollection with the sources found.
Link copied to clipboard
open fun findSourcesByProfileVersion(sourceCollection: SourceCollection, profileVersion: String): Set<Source>
Find the Sources in the SourceCollection associated to the provided profile version.
Link copied to clipboard
open fun isPreferHls(): Boolean
Returns whether to prefer HLS sources to other delivery types.
Link copied to clipboard
open fun selectSource(video: Video): Source
Determines best appropriate Source within given Video object based on logic implemented.
open fun selectSource(sources: Set<Source>): Source
Attempts to select the HTTPS source included in the source Set, if available.
Link copied to clipboard
open fun setPreferHls(preferHls: Boolean)
Sets whether to prefer HLS sources to other delivery types.