mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
commit
0935963771
10 changed files with 31 additions and 2142 deletions
22
README.md
22
README.md
|
|
@ -5,29 +5,29 @@
|
||||||
ExoPlayer is an application level media player for Android. It provides an
|
ExoPlayer is an application level media player for Android. It provides an
|
||||||
alternative to Android’s MediaPlayer API for playing audio and video both
|
alternative to Android’s MediaPlayer API for playing audio and video both
|
||||||
locally and over the Internet. ExoPlayer supports features not currently
|
locally and over the Internet. ExoPlayer supports features not currently
|
||||||
supported by Android’s MediaPlayer API (as of KitKat), including DASH and
|
supported by Android’s MediaPlayer API, including DASH and SmoothStreaming
|
||||||
SmoothStreaming adaptive playbacks, persistent caching and custom renderers.
|
adaptive playbacks. Unlike the MediaPlayer API, ExoPlayer is easy to
|
||||||
Unlike the MediaPlayer API, ExoPlayer is easy to customize and extend, and
|
customize and extend, and can be updated through Play Store application
|
||||||
can be updated through Play Store application updates.
|
updates.
|
||||||
|
|
||||||
## Blog ##
|
## News ##
|
||||||
|
|
||||||
Read news, hints and tips in the ExoPlayer [blog][].
|
Read news, hints and tips on the [news][] page.
|
||||||
|
|
||||||
[blog]: https://google.github.io/ExoPlayer/blog.html
|
[news]: https://google.github.io/ExoPlayer/news.html
|
||||||
|
|
||||||
## Developer guide ##
|
## Developer guide ##
|
||||||
|
|
||||||
The ExoPlayer [developer guide][] provides a wealth of information to help
|
The [developer guide][] provides a wealth of information to help you get
|
||||||
you get started.
|
started.
|
||||||
|
|
||||||
[developer guide]: https://google.github.io/ExoPlayer/guide.html
|
[developer guide]: https://google.github.io/ExoPlayer/guide.html
|
||||||
|
|
||||||
## Reference documentation ##
|
## Reference documentation ##
|
||||||
|
|
||||||
The Exoplayer [class reference][] documents the ExoPlayer library classes.
|
The [class reference][] documents the ExoPlayer library classes.
|
||||||
|
|
||||||
[class reference]: https://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer/package-summary.html
|
[class reference]: https://google.github.io/ExoPlayer/doc/reference
|
||||||
|
|
||||||
## Project branches ##
|
## Project branches ##
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ buildscript {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.2.2'
|
classpath 'com.android.tools.build:gradle:1.2.3'
|
||||||
classpath 'com.novoda:bintray-release:0.2.7'
|
classpath 'com.novoda:bintray-release:0.2.7'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,21 @@ android.libraryVariants.all { variant ->
|
||||||
artifacts.add('archives', task);
|
artifacts.add('archives', task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android.libraryVariants.all { variant ->
|
||||||
|
task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) {
|
||||||
|
title = "ExoPlayer library"
|
||||||
|
description "Generates Javadoc for $variant.name."
|
||||||
|
source = variant.javaCompile.source
|
||||||
|
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())
|
||||||
|
options {
|
||||||
|
links "http://docs.oracle.com/javase/7/docs/api/"
|
||||||
|
linksOffline "https://d.android.com/reference","${android.sdkDirectory}/docs/reference"
|
||||||
|
}
|
||||||
|
exclude '**/BuildConfig.java'
|
||||||
|
exclude '**/R.java'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
publish {
|
publish {
|
||||||
repoName = 'exoplayer'
|
repoName = 'exoplayer'
|
||||||
userOrg = 'google'
|
userOrg = 'google'
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 342 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
|
|
@ -52,7 +52,7 @@ import android.os.Looper;
|
||||||
* <h3>Threading model</h3>
|
* <h3>Threading model</h3>
|
||||||
*
|
*
|
||||||
* <p>The figure below shows the {@link ExoPlayer} threading model.</p>
|
* <p>The figure below shows the {@link ExoPlayer} threading model.</p>
|
||||||
* <p align="center"><img src="../../../../../doc_src/images/exoplayer_threading_model.png"
|
* <p align="center"><img src="../../../../../images/exoplayer_threading_model.png"
|
||||||
* alt="MediaPlayer state diagram"
|
* alt="MediaPlayer state diagram"
|
||||||
* border="0"/></p>
|
* border="0"/></p>
|
||||||
*
|
*
|
||||||
|
|
@ -79,14 +79,14 @@ import android.os.Looper;
|
||||||
* have been performed asynchronously by the playback thread. In contrast, the playback state
|
* have been performed asynchronously by the playback thread. In contrast, the playback state
|
||||||
* accessed by {@link #getPlaybackState()} is only ever changed as a result of operations
|
* accessed by {@link #getPlaybackState()} is only ever changed as a result of operations
|
||||||
* completing on the playback thread, as illustrated below.</p>
|
* completing on the playback thread, as illustrated below.</p>
|
||||||
* <p align="center"><img src="../../../../../doc_src/images/exoplayer_state.png"
|
* <p align="center"><img src="../../../../../images/exoplayer_state.png"
|
||||||
* alt="ExoPlayer state"
|
* alt="ExoPlayer state"
|
||||||
* border="0"/></p>
|
* border="0"/></p>
|
||||||
*
|
*
|
||||||
* <p>The possible playback state transitions are shown below. Transitions can be triggered either
|
* <p>The possible playback state transitions are shown below. Transitions can be triggered either
|
||||||
* by changes in the state of the {@link TrackRenderer}s being used, or as a result of
|
* by changes in the state of the {@link TrackRenderer}s being used, or as a result of
|
||||||
* {@link #prepare(TrackRenderer[])}, {@link #stop()} or {@link #release()} being invoked.</p>
|
* {@link #prepare(TrackRenderer[])}, {@link #stop()} or {@link #release()} being invoked.</p>
|
||||||
* <p align="center"><img src="../../../../../doc_src/images/exoplayer_playbackstate.png"
|
* <p align="center"><img src="../../../../../images/exoplayer_playbackstate.png"
|
||||||
* alt="ExoPlayer playback state transitions"
|
* alt="ExoPlayer playback state transitions"
|
||||||
* border="0"/></p>
|
* border="0"/></p>
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import com.google.android.exoplayer.util.Assertions;
|
||||||
* will transition its renderers through various states as the overall playback state changes. The
|
* will transition its renderers through various states as the overall playback state changes. The
|
||||||
* valid state transitions are shown below, annotated with the methods that are invoked during each
|
* valid state transitions are shown below, annotated with the methods that are invoked during each
|
||||||
* transition.
|
* transition.
|
||||||
* <p align="center"><img src="../../../../../doc_src/images/trackrenderer_state.png"
|
* <p align="center"><img src="../../../../../images/trackrenderer_state.png"
|
||||||
* alt="TrackRenderer state transitions"
|
* alt="TrackRenderer state transitions"
|
||||||
* border="0"/></p>
|
* border="0"/></p>
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue