mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Attach ExoMediaCryptoType for progressive streams
PiperOrigin-RevId: 311628160
This commit is contained in:
parent
bc96d3a93c
commit
4736a102f8
1 changed files with 5 additions and 0 deletions
|
|
@ -730,6 +730,11 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|
||||||
trackFormat = trackFormat.copyWithBitrate(icyHeaders.bitrate);
|
trackFormat = trackFormat.copyWithBitrate(icyHeaders.bitrate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (trackFormat.drmInitData != null) {
|
||||||
|
trackFormat =
|
||||||
|
trackFormat.copyWithExoMediaCryptoType(
|
||||||
|
drmSessionManager.getExoMediaCryptoType(trackFormat.drmInitData));
|
||||||
|
}
|
||||||
trackArray[i] = new TrackGroup(trackFormat);
|
trackArray[i] = new TrackGroup(trackFormat);
|
||||||
}
|
}
|
||||||
isLive = length == C.LENGTH_UNSET && seekMap.getDurationUs() == C.TIME_UNSET;
|
isLive = length == C.LENGTH_UNSET && seekMap.getDurationUs() == C.TIME_UNSET;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue