Back to Exoplayer

DefaultRtpPayloadReaderFactory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/rtsp/reader/DefaultRtpPayloadReaderFactory.html

latest3.2 KB
Original Source

Package com.google.android.exoplayer2.source.rtsp.reader

Class DefaultRtpPayloadReaderFactory

  • java.lang.Object

    • com.google.android.exoplayer2.source.rtsp.reader.DefaultRtpPayloadReaderFactory
  • All Implemented Interfaces:RtpPayloadReader.Factory


public final classDefaultRtpPayloadReaderFactoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[RtpPayloadReader.Factory](RtpPayloadReader.Factory.html "interface in com.google.android.exoplayer2.source.rtsp.reader")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Default RtpPayloadReader.Factory implementation.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DefaultRtpPayloadReaderFactory() | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | RtpPayloadReader | createPayloadReader​(RtpPayloadFormat payloadFormat) | Deprecated.

Returns a RtpPayloadReader for a given RtpPayloadFormat. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

DefaultRtpPayloadReaderFactory

public DefaultRtpPayloadReaderFactory()

Deprecated.

Method Detail

- 

createPayloadReader

@Nullable
public[RtpPayloadReader](RtpPayloadReader.html "interface in com.google.android.exoplayer2.source.rtsp.reader")createPayloadReader​([RtpPayloadFormat](../RtpPayloadFormat.html "class in com.google.android.exoplayer2.source.rtsp")payloadFormat)

Deprecated.

Description copied from interface: RtpPayloadReader.Factory

Returns a RtpPayloadReader for a given RtpPayloadFormat. Specified by:createPayloadReader in interface RtpPayloadReader.FactoryParameters:payloadFormat - The RtpPayloadFormat of the RTP stream.Returns:A RtpPayloadReader for the packet stream, or null if the stream format is not supported.