Commit d3125d0e by olly Committed by Ian Baker

Cleanup some RTSP documentation

#minor-release

PiperOrigin-RevId: 386048024
parent a95e66d1
ExoPlayer supports both live and on demand RTSP. Supported formats and network
types are listed below.
ExoPlayer supports both live and on demand RTSP. Supported sample formats and
network types are listed below.
**Supported formats**
> Please comment on
[this issue](https://github.com/google/ExoPlayer/issues/9210) to request for
more format support.
### Supported sample formats ###
* H264. The SDP media description must include SPS/PPS data in the fmtp
attribute for decoder initialization.
* H264 (the SDP media description must include SPS/PPS data in the fmtp
attribute for decoder initialization).
* AAC (with ADTS bitstream).
* AC3.
**Supported network types**
Please comment on [this issue](https://github.com/google/ExoPlayer/issues/9210)
to request support for additional sample formats.
{:.info}
### Supported network types ###
* RTP over UDP unicast (multicast is not supported).
* Interleaved RTSP, RTP over RTSP using TCP.
......@@ -25,12 +25,11 @@ player.prepare();
~~~
{: .language-java}
### Play authentication-enabled RTSP content ###
### Authentication ###
ExoPlayer supports playback with RTSP BASIC and DIGEST authentication. To play
protected RTSP content, the `MediaItem`'s URI must be configured with the
authtication info. Specifically, the URI should follow the format
authentication info. Specifically, the URI should be of the form
`rtsp://<username>:<password>@<host address>`.
## Using RtspMediaSource ##
......@@ -73,8 +72,6 @@ ExoPlayer will report the playback has ended if nothing is received for the
duration of the set timeout. Setting this value too small may lead to an early
end-of-stream signal under poor network conditions.
### Force using RTP/TCP ###
ExoPlayer can also be configured to play with RTP/TCP by default. To do so,
use method `RtspMediaSource.Factory.setForceUseRtpTcp()`.
RTP/TCP offers better compatibility under some network setups. You can configure
ExoPlayer to use RTP/TCP by default with
`RtspMediaSource.Factory.setForceUseRtpTcp()`.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment