Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playkit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tasks.withType(Javadoc) {

dependencies {

def exoPlayerVersion = '2.18.4'
def exoPlayerVersion = '2.18.7'
api "com.kaltura.playkit:kexoplayer:$exoPlayerVersion"

api 'com.google.code.gson:gson:2.8.6'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public void setLicenseUrl(String license) {
public void setPlayer(@NonNull Looper looper, @NonNull PlayerId playerId) {
playbackLooper = looper;
playbackPlayerId = playerId;
if (drmSessionManager != null) {
drmSessionManager.setPlayer(playbackLooper, playbackPlayerId);
}
}

@Nullable
Expand Down Expand Up @@ -143,8 +146,6 @@ public DrmSession acquireSession(@Nullable EventDispatcher eventDispatcher, @Non
drmSessionListener.onError(error);
}
}

drmSessionManager.setPlayer(playbackLooper, playbackPlayerId);
return drmSessionManager.acquireSession(eventDispatcher, format);
}

Expand Down