mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Cleanup some RTSP documentation
#minor-release PiperOrigin-RevId: 386048024
This commit is contained in:
parent
a95e66d1ba
commit
d3125d0e90
@ -1,16 +1,18 @@
|
||||
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.
|
||||
|
13
docs/rtsp.md
13
docs/rtsp.md
@ -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()`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user