DefaultRtpPayloadReaderFactory


@UnstableApi
public final class DefaultRtpPayloadReaderFactory implements RtpPayloadReader.Factory


Default RtpPayloadReader.Factory implementation.

Summary

Public constructors

Public methods

@Nullable RtpPayloadReader

Returns a RtpPayloadReader for a given RtpPayloadFormat.

Public constructors

DefaultRtpPayloadReaderFactory

public DefaultRtpPayloadReaderFactory()

Public methods

createPayloadReader

public @Nullable RtpPayloadReader createPayloadReader(RtpPayloadFormat payloadFormat)

Returns a RtpPayloadReader for a given RtpPayloadFormat.

Parameters
RtpPayloadFormat payloadFormat

The RtpPayloadFormat of the RTP stream.

Returns
@Nullable RtpPayloadReader

A RtpPayloadReader for the packet stream, or null if the stream format is not supported.