• Home
Name Date Size #Lines LOC

..--

src/main/03-May-2024-273159

README.mdD03-May-20241.5 KiB4530

build.gradleD03-May-20241.7 KiB5244

README.md

1# ExoPlayer GVR extension #
2
3**DEPRECATED - If you still need this extension, please contact us by filing an
4issue on our [issue tracker][].**
5
6The GVR extension wraps the [Google VR SDK for Android][]. It provides a
7GvrAudioProcessor, which uses [GvrAudioSurround][] to provide binaural rendering
8of surround sound and ambisonic soundfields.
9
10[Google VR SDK for Android]: https://developers.google.com/vr/android/
11[GvrAudioSurround]: https://developers.google.com/vr/android/reference/com/google/vr/sdk/audio/GvrAudioSurround
12[issue tracker]: https://github.com/google/ExoPlayer/issues
13
14## Getting the extension ##
15
16The easiest way to use the extension is to add it as a gradle dependency:
17
18```gradle
19implementation 'com.google.android.exoplayer:extension-gvr:2.X.X'
20```
21
22where `2.X.X` is the version, which must match the version of the ExoPlayer
23library being used.
24
25Alternatively, you can clone the ExoPlayer repository and depend on the module
26locally. Instructions for doing this can be found in ExoPlayer's
27[top level README][].
28
29## Using the extension ##
30
31* If using `DefaultRenderersFactory`, override
32  `DefaultRenderersFactory.buildAudioProcessors` to return a
33  `GvrAudioProcessor`.
34* If constructing renderers directly, pass a `GvrAudioProcessor` to
35  `MediaCodecAudioRenderer`'s constructor.
36
37[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md
38
39## Links ##
40
41* [Javadoc][]: Classes matching `com.google.android.exoplayer2.ext.gvr.*`
42  belong to this module.
43
44[Javadoc]: https://exoplayer.dev/doc/reference/index.html
45