Util

object Util(source)

Functions

Link copied to clipboard
fun getCodecsOfType(codecs: String?, trackType: Int): String?
Link copied to clipboard
fun getCodecsWithoutType(codecs: String?, trackType: Int): String?

Returns a copy of codecs without the codecs whose track type matches trackType.

Link copied to clipboard
fun split(value: String, regex: String): Array<String>
Link copied to clipboard
fun splitAtFirst(value: String, regex: String): Array<String>

Splits the string at the first occurrence of the delimiter regex. If the delimiter does not match, returns an array with one element which is the input string. If the delimiter does match, returns an array with the portion of the string before the delimiter and the rest of the string.

Link copied to clipboard
fun splitCodecs(codecs: String?): Array<String>