1*30877f79SAndroid Build Coastguard Worker# ExoPlayer RTSP module 2*30877f79SAndroid Build Coastguard Worker 3*30877f79SAndroid Build Coastguard WorkerProvides support for RTSP playbacks in ExoPlayer. 4*30877f79SAndroid Build Coastguard Worker 5*30877f79SAndroid Build Coastguard Worker## Getting the module 6*30877f79SAndroid Build Coastguard Worker 7*30877f79SAndroid Build Coastguard WorkerThe easiest way to get the module is to add it as a gradle dependency: 8*30877f79SAndroid Build Coastguard Worker 9*30877f79SAndroid Build Coastguard Worker```gradle 10*30877f79SAndroid Build Coastguard Workerimplementation 'com.google.android.exoplayer:exoplayer-rtsp:2.X.X' 11*30877f79SAndroid Build Coastguard Worker``` 12*30877f79SAndroid Build Coastguard Worker 13*30877f79SAndroid Build Coastguard Workerwhere `2.X.X` is the version, which must match the version of the other media 14*30877f79SAndroid Build Coastguard Workermodules being used. 15*30877f79SAndroid Build Coastguard Worker 16*30877f79SAndroid Build Coastguard WorkerAlternatively, you can clone this GitHub project and depend on the module 17*30877f79SAndroid Build Coastguard Workerlocally. Instructions for doing this can be found in the [top level README][]. 18*30877f79SAndroid Build Coastguard Worker 19*30877f79SAndroid Build Coastguard Worker[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md 20*30877f79SAndroid Build Coastguard Worker 21*30877f79SAndroid Build Coastguard Worker## Using the module 22*30877f79SAndroid Build Coastguard Worker 23*30877f79SAndroid Build Coastguard WorkerAdding a dependency to this module is all that's required to enable playback of 24*30877f79SAndroid Build Coastguard WorkerRTSP media items added to `ExoPlayer` in its default configuration. Internally, 25*30877f79SAndroid Build Coastguard Worker`DefaultMediaSourceFactory` will automatically detect the presence of the module 26*30877f79SAndroid Build Coastguard Workerand convert a RTSP `MediaItem` into a `RtspMediaSource` for playback. 27*30877f79SAndroid Build Coastguard Worker 28*30877f79SAndroid Build Coastguard WorkerFor advanced playback use cases, applications can build `RtspMediaSource` 29*30877f79SAndroid Build Coastguard Workerinstances and pass them directly to the player. 30*30877f79SAndroid Build Coastguard Worker 31*30877f79SAndroid Build Coastguard Worker## Links 32*30877f79SAndroid Build Coastguard Worker 33*30877f79SAndroid Build Coastguard Worker* [Developer Guide][] 34*30877f79SAndroid Build Coastguard Worker* [Javadoc][] 35*30877f79SAndroid Build Coastguard Worker 36*30877f79SAndroid Build Coastguard Worker[Developer Guide]: https://exoplayer.dev/dash.html 37*30877f79SAndroid Build Coastguard Worker[Javadoc]: https://exoplayer.dev/doc/reference/index.html 38