# Package-level declarations

## Types

AudioCodec
Link copied to clipboard
enum AudioCodec : Enum<AudioCodec>
AudioUtils
Link copied to clipboard
object AudioUtils
BitBuffer
Link copied to clipboard
class BitBuffer(buffer: ByteArray)

Created by pedro on 9/12/23.

BitrateChecker
Link copied to clipboard
interface BitrateChecker
Created by pedro on 30/5/24.
BitrateManager
Link copied to clipboard
open class BitrateManager(bitrateChecker: BitrateChecker)

Created by pedro on 8/04/21. Improved by perotom on 7/05/24.

ConnectChecker
Link copied to clipboard
interface ConnectChecker : BitrateChecker

Created by pedro on 21/08/23.

ConnectCheckerEvent
Link copied to clipboard
interface ConnectCheckerEvent : ConnectChecker
Created by pedro on 8/3/24.
ConnectionFailed
Link copied to clipboard
enum ConnectionFailed : Enum<ConnectionFailed>

Created by pedro on 23/9/24.

FpsUtils
Link copied to clipboard
object FpsUtils
StreamBlockingQueue
Link copied to clipboard
class StreamBlockingQueue(var capacity: Int)
StreamEvent
Link copied to clipboard
enum StreamEvent : Enum<StreamEvent>

Created by pedro on 8/3/24.

TimeUtils
Link copied to clipboard
object TimeUtils

Created by pedro on 30/8/23.

UrlParser
Link copied to clipboard
class UrlParser

Created by pedro on 2/9/24.

VideoCodec
Link copied to clipboard
enum VideoCodec : Enum<VideoCodec>

## Functions

bytesToHex
Link copied to clipboard
fun ByteArray.bytesToHex(): String
clone
Link copied to clipboard
fun ByteBuffer.clone(): ByteBuffer
compare
Link copied to clipboard
fun Long.compare(l: Long): Int
getIndexes
Link copied to clipboard
fun String.getIndexes(char: Char): IntArray
getIntegerSafe
Link copied to clipboard
fun MediaFormat.getIntegerSafe(name: String): Int?
getLongSafe
Link copied to clipboard
fun MediaFormat.getLongSafe(name: String): Long?
getMd5Hash
Link copied to clipboard
fun String.getMd5Hash(): String
getStartCodeSize
Link copied to clipboard
fun ByteBuffer.getStartCodeSize(): Int
getSuspendContext
Link copied to clipboard
fun getSuspendContext(): Continuation<Unit>
isKeyframe
Link copied to clipboard
fun MediaCodec.BufferInfo.isKeyframe(): Boolean

Created by pedro on 3/11/23.

newSingleThreadExecutor
Link copied to clipboard
fun newSingleThreadExecutor(queue: LinkedBlockingQueue<Runnable>): ExecutorService
onMainThread
Link copied to clipboard
suspend fun onMainThread(code: () -> Unit)
onMainThreadHandler
Link copied to clipboard
fun onMainThreadHandler(code: () -> Unit)
readUInt16
Link copied to clipboard
fun InputStream.readUInt16(): Int
readUInt24
Link copied to clipboard
fun InputStream.readUInt24(): Int
readUInt32
Link copied to clipboard
fun InputStream.readUInt32(): Int
readUInt32LittleEndian
Link copied to clipboard
fun InputStream.readUInt32LittleEndian(): Int
readUntil
Link copied to clipboard
fun InputStream.readUntil(byteArray: ByteArray)
removeInfo
Link copied to clipboard
fun ByteBuffer.removeInfo(info: MediaFrame.Info): ByteBuffer
secureGet
Link copied to clipboard
@RequiresApi(value = 21)
fun <T> CameraCharacteristics.secureGet(key: CameraCharacteristics.Key<T>): T?
@RequiresApi(value = 21)
fun <T> CaptureRequest.Builder.secureGet(key: CaptureRequest.Key<T>): T?
secureSubmit
Link copied to clipboard
@JvmOverloads
fun ExecutorService.secureSubmit(timeout: Long = 5000, code: () -> Unit)
toByteArray
Link copied to clipboard
fun ByteBuffer.toByteArray(): ByteArray
toMediaCodecBufferInfo
Link copied to clipboard
fun MediaFrame.Info.toMediaCodecBufferInfo(): MediaCodec.BufferInfo
toMediaFrameInfo
Link copied to clipboard
fun MediaCodec.BufferInfo.toMediaFrameInfo(): MediaFrame.Info
toUInt16
Link copied to clipboard
fun ByteArray.toUInt16(): Int
fun Int.toUInt16(): ByteArray
toUInt24
Link copied to clipboard
fun ByteArray.toUInt24(): Int
fun Int.toUInt24(): ByteArray
toUInt32
Link copied to clipboard
fun ByteArray.toUInt32(): Int
fun Int.toUInt32(): ByteArray
toUInt32LittleEndian
Link copied to clipboard
fun ByteArray.toUInt32LittleEndian(): Int
fun Int.toUInt32LittleEndian(): ByteArray
tryClear
Link copied to clipboard
fun SurfaceTexture.tryClear()
trySend
Link copied to clipboard
infix inline fun <T : Any> BlockingQueue<T>.trySend(item: T): Boolean
validMessage
Link copied to clipboard
fun Throwable.validMessage(): String
writeUInt16
Link copied to clipboard
fun OutputStream.writeUInt16(value: Int)
writeUInt24
Link copied to clipboard
fun OutputStream.writeUInt24(value: Int)
writeUInt32
Link copied to clipboard
fun OutputStream.writeUInt32(value: Int)
writeUInt32LittleEndian
Link copied to clipboard
fun OutputStream.writeUInt32LittleEndian(value: Int)