Skip to content

Commit

Permalink
Update media3 to 1.4.1 + mux data to 1.6.0 (#70)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
daytime-em authored Nov 8, 2024
1 parent f56b238 commit a869acd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .sauce/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: espresso
sauce:
region: us-west-1
concurrency: 2
retries: 3
retries: 1

metadata:
tags:
Expand Down
2 changes: 0 additions & 2 deletions automatedtests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ dependencies {
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'

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

api 'org.checkerframework:checker-qual:3.33.0'
// Automated tests should always test the local module and not the maven dependency.
implementation project(":library")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class LatencyTests extends TestBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import androidx.core.graphics.drawable.DrawableCompat;
import androidx.media3.common.MediaItem;
import androidx.media3.common.MediaMetadata;
import androidx.media3.common.PlaybackException;
import androidx.media3.common.Player;
import androidx.media3.datasource.DefaultDataSource;
import androidx.media3.exoplayer.DefaultRenderersFactory;
Expand Down Expand Up @@ -165,6 +166,14 @@ public void initExoPlayer() {
.build();

player.addAnalyticsListener(this);

player.addListener(new Player.Listener() {
@Override
public void onPlayerError(PlaybackException error) {
throw new RuntimeException("Playback error while trying to test", error);
}
});

playerView.setPlayer(player);
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ plugins {

allprojects {
ext {
set("muxDataVersion", "1.1.0")
set("muxDataVersion", "1.6.0")
}
}
9 changes: 4 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,18 @@ muxDistribution {

dependencies {

def media3Version = "1.1.1";
def media3Version = "1.4.1"
def media3DataSdk = "at_1_4"
api "androidx.media3:media3-common:${media3Version}"
api "androidx.media3:media3-exoplayer:${media3Version}"
api "androidx.media3:media3-ui:${media3Version}"
api "androidx.media3:media3-exoplayer-hls:${media3Version}"
api "androidx.media3:media3-exoplayer-dash:${media3Version}"
api "androidx.media3:media3-exoplayer-ima:${media3Version}"
api "androidx.media3:media3-cast:${media3Version}"
api "androidx.media3:media3-extractor:${media3Version}"

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

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"

testImplementation 'junit:junit:4.13.2'
testImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down

0 comments on commit a869acd

Please sign in to comment.