Skip to content

Commit 80d93f2

Browse files
authored
Merge pull request #17 from newrelic/update-exoplayer-to-androidxmedia3
Update exoplayer to androidxmedia3
2 parents 2f24c61 + a8284a9 commit 80d93f2

File tree

23 files changed

+252
-180
lines changed

23 files changed

+252
-180
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NRExoPlayerTracker/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
android {
6-
compileSdkVersion 31
6+
compileSdkVersion 33
77

88
defaultConfig {
99
minSdkVersion 16
@@ -33,14 +33,15 @@ android {
3333
sourceCompatibility JavaVersion.VERSION_1_8
3434
targetCompatibility JavaVersion.VERSION_1_8
3535
}
36+
namespace 'com.newrelic.videoagent.exoplayer'
3637
}
3738

3839
dependencies {
3940

4041
implementation 'androidx.appcompat:appcompat:1.2.0'
4142
implementation 'com.google.android.material:material:1.2.1'
4243
implementation project(path: ':NewRelicVideoCore')
43-
implementation 'com.google.android.exoplayer:exoplayer:2.17.0'
44+
implementation 'androidx.media3:media3-exoplayer:1.1.0'
4445
testImplementation 'junit:junit:4.+'
4546
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
4647
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.newrelic.videoagent.exoplayer">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
</manifest>

NRExoPlayerTracker/src/main/java/com/newrelic/videoagent/exoplayer/tracker/NRTrackerExoPlayer.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
import android.net.Uri;
44

5-
import com.google.android.exoplayer2.ExoPlayer;
6-
import com.google.android.exoplayer2.PlaybackException;
7-
import com.google.android.exoplayer2.Player;
8-
import com.google.android.exoplayer2.SimpleExoPlayer;
9-
import com.google.android.exoplayer2.TracksInfo;
10-
import com.google.android.exoplayer2.analytics.AnalyticsListener;
11-
import com.google.android.exoplayer2.source.LoadEventInfo;
12-
import com.google.android.exoplayer2.source.MediaLoadData;
13-
import com.google.android.exoplayer2.video.VideoSize;
5+
import androidx.media3.common.PlaybackException;
6+
import androidx.media3.common.Player;
7+
import androidx.media3.common.Tracks;
8+
import androidx.media3.common.VideoSize;
9+
import androidx.media3.exoplayer.ExoPlayer;
10+
import androidx.media3.exoplayer.analytics.AnalyticsListener;
11+
import androidx.media3.exoplayer.source.LoadEventInfo;
12+
import androidx.media3.exoplayer.source.MediaLoadData;
13+
1414
import com.newrelic.videoagent.core.tracker.NRVideoTracker;
1515
import com.newrelic.videoagent.core.utils.NRLog;
1616
import com.newrelic.videoagent.exoplayer.BuildConfig;
@@ -448,7 +448,7 @@ public void onPositionDiscontinuity(Player.PositionInfo oldPosition, Player.Posi
448448
}
449449

450450
@Override
451-
public void onTracksInfoChanged(EventTime eventTime, TracksInfo tracksInfo) {
451+
public void onTracksChanged(EventTime eventTime, Tracks tracksInfo) {
452452
NRLog.d("onTracksChanged analytics");
453453

454454
// Next track in the playlist

NRIMATracker/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
android {
6-
compileSdkVersion 31
6+
compileSdkVersion 33
77

88
defaultConfig {
99
minSdkVersion 16
@@ -33,14 +33,15 @@ android {
3333
sourceCompatibility JavaVersion.VERSION_1_8
3434
targetCompatibility JavaVersion.VERSION_1_8
3535
}
36+
namespace 'com.newrelic.videoagent.ima'
3637
}
3738

3839
dependencies {
3940

4041
implementation 'androidx.appcompat:appcompat:1.2.0'
4142
implementation 'com.google.android.material:material:1.3.0'
4243
implementation project(path: ':NewRelicVideoCore')
43-
implementation 'com.google.android.exoplayer:extension-ima:2.17.0'
44+
implementation 'androidx.media3:media3-exoplayer-ima:1.1.0'
4445
testImplementation 'junit:junit:4.+'
4546
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
4647
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.newrelic.videoagent.ima">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
</manifest>

NewRelicVideoCore/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
android {
6-
compileSdkVersion 31
6+
compileSdkVersion 33
77

88
defaultConfig {
99
minSdkVersion 16
@@ -33,13 +33,14 @@ android {
3333
sourceCompatibility JavaVersion.VERSION_1_8
3434
targetCompatibility JavaVersion.VERSION_1_8
3535
}
36+
namespace 'com.newrelic.videoagent.core'
3637
}
3738

3839
dependencies {
3940

4041
implementation 'androidx.appcompat:appcompat:1.1.0'
4142
implementation 'com.google.android.material:material:1.1.0'
42-
implementation 'com.newrelic.agent.android:android-agent:+'
43+
implementation 'com.newrelic.agent.android:android-agent:7.0.0'
4344
testImplementation 'junit:junit:4.+'
4445
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
4546
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.newrelic.videoagent.core">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
</manifest>

0 commit comments

Comments
 (0)