mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Attach ExoMediaCryptoType for progressive streams
PiperOrigin-RevId: 311628160
This commit is contained in:
parent
932a8fcf3d
commit
f91cfb12e8
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Reference in a new issue