Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5cf166c1
authored
Aug 23, 2022
by
claincly
Committed by
Marc Baechinger
Oct 19, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix outdated RtpDataLoadable javadoc
PiperOrigin-RevId: 469443086
parent
9a1e7fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpDataLoadable.java
library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/RtpDataLoadable.java
View file @
5cf166c1
...
...
@@ -33,14 +33,20 @@ import java.io.IOException;
import
org.checkerframework.checker.nullness.qual.MonotonicNonNull
;
/**
* A {@link Loader.Loadable} that
sets up a sockets listening to incoming RTP traffic, carried by
*
UD
P packets.
* A {@link Loader.Loadable} that
uses two {@link RtpDataChannel} instances to listen on incoming
*
RTP and RTC
P packets.
*
* <p>Uses a {@link RtpDataChannel} to listen on incoming packets. The local UDP port is selected by
* the runtime on opening; it also opens another {@link RtpDataChannel} for RTCP on the RTP UDP port
* number plus one one. Pass a listener via constructor to receive a callback when the local port is
* opened. {@link #load} will throw an {@link IOException} if either of the two data channels fails
* to open.
* <ul>
* <li>When using UDP as RTP transport, the local RTP UDP port number is selected by the runtime
* on opening the first {@link RtpDataChannel}; the second {@link RtpDataChannel} for RTCP
* uses the port number that is the RTP UDP port number plus one.
* <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
* written to the {@link ExtractorOutput} instance provided at construction.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment