Media Collections

MediaSocketList

class avblocks.media_socket_list.MediaSocketList

Bases: ObjectCollection[MediaSocket]

Collection of MediaSocket objects.

static from_native(native_sockets: c_void_p) MediaSocketList

Create a Python MediaSocketList from a native MediaSocketList pointer.

to_native(native_sockets: c_void_p)

Add all sockets from this Python list to the provided native MediaSocketList pointer. The native_sockets should be obtained via lib.Transcoder_inputs(native_transcoder) or lib.Transcoder_outputs(native_transcoder).

MediaPinList

class avblocks.media_pin_list.MediaPinList

Bases: ObjectCollection[MediaPin]

Collection of MediaPin objects.

static from_native(native_pins: c_void_p) MediaPinList

Create a Python MediaPinList from a native MediaPinList pointer.

to_native(native_pins: c_void_p)

Add all pins from this Python list to the provided native MediaPinList pointer. The native_pins should be obtained via lib.MediaSocket_pins(native_socket).