A JavaScript polyfill to translate the media information available in HLS playlists and DASH manifests in to the appropriate CSS and MediaCapabilities API queries to determine if the device is capable of decoding and presenting the described content.
Reference material