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
|
ExoPlayer supports both live and on demand RTSP. Supported sample formats and
|
||||||
types are listed below.
|
network types are listed below.
|
||||||
|
|
||||||
**Supported formats**
|
### Supported sample formats ###
|
||||||
> Please comment on
|
|
||||||
[this issue](https://github.com/google/ExoPlayer/issues/9210) to request for
|
|
||||||
more format support.
|
|
||||||
|
|
||||||
* H264. The SDP media description must include SPS/PPS data in the fmtp
|
* H264 (the SDP media description must include SPS/PPS data in the fmtp
|
||||||
attribute for decoder initialization.
|
attribute for decoder initialization).
|
||||||
* AAC (with ADTS bitstream).
|
* AAC (with ADTS bitstream).
|
||||||
* AC3.
|
* 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).
|
* RTP over UDP unicast (multicast is not supported).
|
||||||
* Interleaved RTSP, RTP over RTSP using TCP.
|
* Interleaved RTSP, RTP over RTSP using TCP.
|
||||||
|
13
docs/rtsp.md
13
docs/rtsp.md
@ -25,12 +25,11 @@ player.prepare();
|
|||||||
~~~
|
~~~
|
||||||
{: .language-java}
|
{: .language-java}
|
||||||
|
|
||||||
|
### Authentication ###
|
||||||
### Play authentication-enabled RTSP content ###
|
|
||||||
|
|
||||||
ExoPlayer supports playback with RTSP BASIC and DIGEST authentication. To play
|
ExoPlayer supports playback with RTSP BASIC and DIGEST authentication. To play
|
||||||
protected RTSP content, the `MediaItem`'s URI must be configured with the
|
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>`.
|
`rtsp://<username>:<password>@<host address>`.
|
||||||
|
|
||||||
## Using RtspMediaSource ##
|
## 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
|
duration of the set timeout. Setting this value too small may lead to an early
|
||||||
end-of-stream signal under poor network conditions.
|
end-of-stream signal under poor network conditions.
|
||||||
|
|
||||||
### Force using RTP/TCP ###
|
RTP/TCP offers better compatibility under some network setups. You can configure
|
||||||
ExoPlayer can also be configured to play with RTP/TCP by default. To do so,
|
ExoPlayer to use RTP/TCP by default with
|
||||||
use method `RtspMediaSource.Factory.setForceUseRtpTcp()`.
|
`RtspMediaSource.Factory.setForceUseRtpTcp()`.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user