Skip to content

Commit a869acd

Browse files
authored
Update media3 to 1.4.1 + mux data to 1.6.0 (#70)
* Update media3 + mux data * automatedtests don't even need that dep * automated tests should usually fail if there's playback errors * Maybe 1 retry would be enough * Ignore livestream metrics test until we have an available stream * turn the test back on
1 parent f56b238 commit a869acd

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

.sauce/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: espresso
33
sauce:
44
region: us-west-1
55
concurrency: 2
6-
retries: 3
6+
retries: 1
77

88
metadata:
99
tags:

automatedtests/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ dependencies {
7373
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
7474
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
7575

76-
api("com.mux.stats.sdk.muxstats:data-media3:${project.ext.get("muxDataVersion")}")
77-
7876
api 'org.checkerframework:checker-qual:3.33.0'
7977
// Automated tests should always test the local module and not the maven dependency.
8078
implementation project(":library")

automatedtests/src/androidTest/java/com/mux/player/media3/automatedtests/LatencyTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.json.JSONException;
99
import org.json.JSONObject;
1010
import org.junit.Before;
11+
import org.junit.Ignore;
1112
import org.junit.Test;
1213

1314
public class LatencyTests extends TestBase {

automatedtests/src/androidTest/java/com/mux/player/media3/automatedtests/SimplePlayerTestActivity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import androidx.core.graphics.drawable.DrawableCompat;
2020
import androidx.media3.common.MediaItem;
2121
import androidx.media3.common.MediaMetadata;
22+
import androidx.media3.common.PlaybackException;
2223
import androidx.media3.common.Player;
2324
import androidx.media3.datasource.DefaultDataSource;
2425
import androidx.media3.exoplayer.DefaultRenderersFactory;
@@ -165,6 +166,14 @@ public void initExoPlayer() {
165166
.build();
166167

167168
player.addAnalyticsListener(this);
169+
170+
player.addListener(new Player.Listener() {
171+
@Override
172+
public void onPlayerError(PlaybackException error) {
173+
throw new RuntimeException("Playback error while trying to test", error);
174+
}
175+
});
176+
168177
playerView.setPlayer(player);
169178
}
170179

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ plugins {
77

88
allprojects {
99
ext {
10-
set("muxDataVersion", "1.1.0")
10+
set("muxDataVersion", "1.6.0")
1111
}
1212
}

library/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,18 @@ muxDistribution {
7777

7878
dependencies {
7979

80-
def media3Version = "1.1.1";
80+
def media3Version = "1.4.1"
81+
def media3DataSdk = "at_1_4"
8182
api "androidx.media3:media3-common:${media3Version}"
8283
api "androidx.media3:media3-exoplayer:${media3Version}"
8384
api "androidx.media3:media3-ui:${media3Version}"
8485
api "androidx.media3:media3-exoplayer-hls:${media3Version}"
85-
api "androidx.media3:media3-exoplayer-dash:${media3Version}"
8686
api "androidx.media3:media3-exoplayer-ima:${media3Version}"
8787
api "androidx.media3:media3-cast:${media3Version}"
88-
api "androidx.media3:media3-extractor:${media3Version}"
8988

90-
api("com.mux.stats.sdk.muxstats:data-media3:${project.ext.get("muxDataVersion")}")
89+
api("com.mux.stats.sdk.muxstats:data-media3-$media3DataSdk:${project.ext.get("muxDataVersion")}")
9190

92-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
91+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"
9392

9493
testImplementation 'junit:junit:4.13.2'
9594
testImplementation 'androidx.test.ext:junit:1.1.5'

0 commit comments

Comments
 (0)