DashUtil

open class DashUtil

Provides utility methods related to DASH media description file.

Author

rsubramaniam

Properties

Link copied to clipboard
val contentProtectionAttributes: List<Pair<String, String>>

Functions

Link copied to clipboard
open fun ceilDivide(numerator: Double, denominator: Double): Double
Link copied to clipboard
open fun findRepresentationByBitrate(representationList: List<Representation>, bitrate: Int): Representation
Finds the highest Representation bitrate up to the the bitrate provided.
Link copied to clipboard
open fun getCaptionsURLFromDASHManifest(manifest: DashManifest, id: String): String
Link copied to clipboard
open fun getHighestRepresentation(adaptationSet: AdaptationSet): Representation
Utility method to get the highest Representation from a DASH Adaptation Set based on the bitrate.
open fun getHighestRepresentation(representationList: List<Representation>): Representation
Utility method to get the highest Representation from a List of Representation based on the bitrate.
Link copied to clipboard
open fun getMediaMimeType(format: Format): String
Link copied to clipboard
open fun getTrackFormat(adaptationSetType: Int, format: Format, mediaMimeType: String, durationUs: Long): MediaFormat
Link copied to clipboard
open fun getVideoRepresentationList(context: Context, adaptationSet: AdaptationSet): List<Representation>
Link copied to clipboard
open fun replaceVideoSourceUri(video: Video, newUrl: String)
Utility method to replace URL from the video source properties with the new url provided.