Store DRM in the track.drm property in HLS and DASH

This commit is contained in:
rlaphoenix
2023-03-04 11:49:53 +00:00
parent f8166f098c
commit 318832e6b2
2 changed files with 3 additions and 1 deletions

View File

@@ -242,6 +242,7 @@ class HLS:
sys.exit(1)
else:
if drm:
track.drm = drm
drm = drm[0] # just use the first supported DRM system for now
log.debug("Got segment key, %s", drm)
if isinstance(drm, Widevine):