Skip to content

Commit

Permalink
Update Exoplayer to 1.5.8
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Rui <[email protected]>
  • Loading branch information
devslava authored and bbcallen committed May 31, 2016
1 parent 149c392 commit 423bc24
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion android/ijkplayer/ijkplayer-exo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile 'com.google.android.exoplayer:exoplayer:r1.5.7'
compile 'com.google.android.exoplayer:exoplayer:r1.5.8'

compile project(':ijkplayer-java')
// compile 'tv.danmaku.ijk.media:ijkplayer-java:0.5.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ private static final class AsyncRendererBuilder implements ManifestCallback<HlsP

private final Context context;
private final String userAgent;
private final String url;
private final DemoPlayer player;
private final ManifestFetcher<HlsPlaylist> playlistFetcher;

Expand All @@ -100,7 +99,6 @@ private static final class AsyncRendererBuilder implements ManifestCallback<HlsP
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
this.context = context;
this.userAgent = userAgent;
this.url = url;
this.player = player;
HlsPlaylistParser parser = new HlsPlaylistParser();
playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
Expand Down Expand Up @@ -145,8 +143,8 @@ public void onSingleManifest(HlsPlaylist manifest) {

// Build the video/id3 renderers.
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
HlsChunkSource chunkSource = new HlsChunkSource(true /* isMaster */, dataSource, url,
manifest, DefaultHlsTrackSelector.newDefaultInstance(context), bandwidthMeter,
HlsChunkSource chunkSource = new HlsChunkSource(true /* isMaster */, dataSource, manifest,
DefaultHlsTrackSelector.newDefaultInstance(context), bandwidthMeter,
timestampAdjusterProvider, HlsChunkSource.ADAPTIVE_MODE_SPLICE);
HlsSampleSource sampleSource = new HlsSampleSource(chunkSource, loadControl,
MAIN_BUFFER_SEGMENTS * BUFFER_SEGMENT_SIZE, mainHandler, player, DemoPlayer.TYPE_VIDEO);
Expand All @@ -161,7 +159,7 @@ public void onSingleManifest(HlsPlaylist manifest) {
if (haveAudios) {
DataSource audioDataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
HlsChunkSource audioChunkSource = new HlsChunkSource(false /* isMaster */, audioDataSource,
url, manifest, DefaultHlsTrackSelector.newAudioInstance(), bandwidthMeter,
manifest, DefaultHlsTrackSelector.newAudioInstance(), bandwidthMeter,
timestampAdjusterProvider, HlsChunkSource.ADAPTIVE_MODE_SPLICE);
HlsSampleSource audioSampleSource = new HlsSampleSource(audioChunkSource, loadControl,
AUDIO_BUFFER_SEGMENTS * BUFFER_SEGMENT_SIZE, mainHandler, player,
Expand All @@ -181,7 +179,7 @@ public void onSingleManifest(HlsPlaylist manifest) {
if (haveSubtitles) {
DataSource textDataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
HlsChunkSource textChunkSource = new HlsChunkSource(false /* isMaster */, textDataSource,
url, manifest, DefaultHlsTrackSelector.newSubtitleInstance(), bandwidthMeter,
manifest, DefaultHlsTrackSelector.newSubtitleInstance(), bandwidthMeter,
timestampAdjusterProvider, HlsChunkSource.ADAPTIVE_MODE_SPLICE);
HlsSampleSource textSampleSource = new HlsSampleSource(textChunkSource, loadControl,
TEXT_BUFFER_SEGMENTS * BUFFER_SEGMENT_SIZE, mainHandler, player, DemoPlayer.TYPE_TEXT);
Expand Down
2 changes: 1 addition & 1 deletion init-android-exo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

IJK_EXO_UPSTREAM=https://github.com/google/ExoPlayer.git
IJK_EXO_FORK=https://github.com/google/ExoPlayer.git
IJK_EXO_COMMIT=r1.5.7
IJK_EXO_COMMIT=r1.5.8
IJK_EXO_LOCAL_REPO=extra/ExoPlayer

set -e
Expand Down

0 comments on commit 423bc24

Please sign in to comment.