File tree Expand file tree Collapse file tree 6 files changed +16
-9
lines changed
src/androidTest/java/com/mux/player/media3/automatedtests Expand file tree Collapse file tree 6 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: espresso
3
3
sauce :
4
4
region : us-west-1
5
5
concurrency : 2
6
- retries : 3
6
+ retries : 1
7
7
8
8
metadata :
9
9
tags :
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ dependencies {
73
73
androidTestImplementation ' androidx.test.uiautomator:uiautomator:2.2.0'
74
74
androidTestImplementation ' androidx.test.ext:junit:1.1.2'
75
75
76
- api(" com.mux.stats.sdk.muxstats:data-media3:${ project.ext.get("muxDataVersion")} " )
77
-
78
76
api ' org.checkerframework:checker-qual:3.33.0'
79
77
// Automated tests should always test the local module and not the maven dependency.
80
78
implementation project(" :library" )
Original file line number Diff line number Diff line change 8
8
import org .json .JSONException ;
9
9
import org .json .JSONObject ;
10
10
import org .junit .Before ;
11
+ import org .junit .Ignore ;
11
12
import org .junit .Test ;
12
13
13
14
public class LatencyTests extends TestBase {
Original file line number Diff line number Diff line change 19
19
import androidx .core .graphics .drawable .DrawableCompat ;
20
20
import androidx .media3 .common .MediaItem ;
21
21
import androidx .media3 .common .MediaMetadata ;
22
+ import androidx .media3 .common .PlaybackException ;
22
23
import androidx .media3 .common .Player ;
23
24
import androidx .media3 .datasource .DefaultDataSource ;
24
25
import androidx .media3 .exoplayer .DefaultRenderersFactory ;
@@ -165,6 +166,14 @@ public void initExoPlayer() {
165
166
.build ();
166
167
167
168
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
+
168
177
playerView .setPlayer (player );
169
178
}
170
179
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ plugins {
7
7
8
8
allprojects {
9
9
ext {
10
- set(" muxDataVersion" , " 1.1 .0" )
10
+ set(" muxDataVersion" , " 1.6 .0" )
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -77,19 +77,18 @@ muxDistribution {
77
77
78
78
dependencies {
79
79
80
- def media3Version = " 1.1.1" ;
80
+ def media3Version = " 1.4.1"
81
+ def media3DataSdk = " at_1_4"
81
82
api " androidx.media3:media3-common:${ media3Version} "
82
83
api " androidx.media3:media3-exoplayer:${ media3Version} "
83
84
api " androidx.media3:media3-ui:${ media3Version} "
84
85
api " androidx.media3:media3-exoplayer-hls:${ media3Version} "
85
- api " androidx.media3:media3-exoplayer-dash:${ media3Version} "
86
86
api " androidx.media3:media3-exoplayer-ima:${ media3Version} "
87
87
api " androidx.media3:media3-cast:${ media3Version} "
88
- api " androidx.media3:media3-extractor:${ media3Version} "
89
88
90
- api(" com.mux.stats.sdk.muxstats:data-media3:${ project.ext.get("muxDataVersion")} " )
89
+ api(" com.mux.stats.sdk.muxstats:data-media3- $m edia3DataSdk :${ project.ext.get("muxDataVersion")} " )
91
90
92
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3 "
91
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1 "
93
92
94
93
testImplementation ' junit:junit:4.13.2'
95
94
testImplementation ' androidx.test.ext:junit:1.1.5'
You can’t perform that action at this time.
0 commit comments