mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
57ee23812e
In StreamUtils, use MediaCapabilities.decodingInfo() instead of MediaSource.isTypeSupported() to check if the stream is supported. MediaCapabilities.decodingInfo() takes an MediaDecodingConfiguration object as input, and returns a Promise with a MediaCapabilitiesInfo object. The returned object tells us whether decoding the media is supported, smooth, and powerefficient. Steps: 1. Create a MediaDecodingConfiguration object for each variant as the input. 2. Query the decodingInfo API with the config. 3. Get the 'supported' info from the decodingInfo result, to know whether the variant is supported. Issue #1391 Change-Id: I8fc2d3ec6a9868f38269d550d35f45c298faae98