DashUtil
Provides utility methods related to DASH media description file.
Author
rsubramaniam
Functions
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Utility method to get the highest Representation from a DASH Adaptation Set based on the bitrate.
Utility method to get the highest Representation from a List of Representation based on the bitrate.
Link copied to clipboard
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
Utility method to replace URL from the video source properties with the new url provided.