Selkies
Developer Referencertc

AudioMedia

Audio track that serves pre-encoded packets from a PipelineBridge.

Attributes

attributedata_pipeline
= data_pipeline

Functions

func__init__(self, data_pipeline) -> None
Source Code
def __init__(self, data_pipeline: PipelineBridge) -> None:
    super().__init__()
    self.data_pipeline = data_pipeline
paramself
paramdata_pipelinePipelineBridge

Returns

None
funcrecv(self) -> EncodedPacket

Return the next encoded audio packet from the bridge.

Source Code
async def recv(self) -> EncodedPacket:
    """Return the next encoded audio packet from the bridge."""
    packet = await self.data_pipeline.get_data()
    return packet
paramself

Returns

selkies.webrtc.codecs.base.EncodedPacket

On this page

Edit on GitHub