mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
b7af879583
If a key status is 'output-restricted', treat the key as unusable. In many cases it is, and we have no way of differentiating when it is or is not. So our treatment of this status should be conservative, and we should treat the key as unusable. This will prevent HDCP-related failures that may be caused by adapting to a stream whose output restrictions may not be met. The hasOutputRestrictions flag on streams and tracks is now gone. The caveat to this change is that if content is encoded with the same key for SD and HD, and HD streams have HDCP restrictions that cannot be met, we will now consider both the SD and HD streams to be unplayable, even though we could still play the SD streams. Because we can't separate the status of the two streams, we don't know for sure if the SD streams can be played. We will no longer support such content due to the complexity of doing so, and due to the risk of playback failures on adaptation to restricted streams. Streams with different security requirements should always be encrypted with different keys. Content which does not follow this best practice will no longer be playable in Shaka without modifying the player. Change-Id: Ia29db8efa0b6f83c0376199dea5210c9b468bc40