mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix outdated RtpDataLoadable javadoc
PiperOrigin-RevId: 469443086
This commit is contained in:
parent
7e5dcf2360
commit
b9bcf5224f
@ -34,14 +34,20 @@ import java.io.IOException;
|
|||||||
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A {@link Loader.Loadable} that sets up a sockets listening to incoming RTP traffic, carried by
|
* A {@link Loader.Loadable} that uses two {@link RtpDataChannel} instances to listen on incoming
|
||||||
* UDP packets.
|
* RTP and RTCP packets.
|
||||||
*
|
*
|
||||||
* <p>Uses a {@link RtpDataChannel} to listen on incoming packets. The local UDP port is selected by
|
* <ul>
|
||||||
* the runtime on opening; it also opens another {@link RtpDataChannel} for RTCP on the RTP UDP port
|
* <li>When using UDP as RTP transport, the local RTP UDP port number is selected by the runtime
|
||||||
* number plus one one. Pass a listener via constructor to receive a callback when the local port is
|
* on opening the first {@link RtpDataChannel}; the second {@link RtpDataChannel} for RTCP
|
||||||
* opened. {@link #load} will throw an {@link IOException} if either of the two data channels fails
|
* uses the port number that is the RTP UDP port number plus one.
|
||||||
* to open.
|
* <li>When using TCP as RTP transport, the first {@link RtpDataChannel} for RTP uses the {@link
|
||||||
|
* #trackId} as its interleaved channel number; the second {@link RtpDataChannel} for RTCP
|
||||||
|
* uses the interleaved channel number that is the RTP interleaved channel number plus one.
|
||||||
|
* </ul>
|
||||||
|
*
|
||||||
|
* <p>Pass a listener via the constructor to receive a callback when the RTSP transport is ready.
|
||||||
|
* {@link #load} will throw an {@link IOException} if either of the two data channels fails to open.
|
||||||
*
|
*
|
||||||
* <p>Received RTP packets' payloads will be extracted by an {@link RtpExtractor}, and will be
|
* <p>Received RTP packets' payloads will be extracted by an {@link RtpExtractor}, and will be
|
||||||
* written to the {@link ExtractorOutput} instance provided at construction.
|
* written to the {@link ExtractorOutput} instance provided at construction.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user