Attach ExoMediaCryptoType for progressive streams
PiperOrigin-RevId: 311628160
This commit is contained in:
parent
932a8fcf3d
commit
f91cfb12e8
@ -781,6 +781,11 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
trackFormat = trackFormat.buildUpon().setAverageBitrate(icyHeaders.bitrate).build();
|
||||
}
|
||||
}
|
||||
if (trackFormat.drmInitData != null) {
|
||||
trackFormat =
|
||||
trackFormat.copyWithExoMediaCryptoType(
|
||||
drmSessionManager.getExoMediaCryptoType(trackFormat.drmInitData));
|
||||
}
|
||||
trackArray[i] = new TrackGroup(trackFormat);
|
||||
}
|
||||
trackState = new TrackState(new TrackGroupArray(trackArray), trackIsAudioVideoFlags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user