Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Cast): Force TS content to be transmuxed on Chromecast (#6262)
Although Chromecast natively supports TS content, it does not work in all cases. In particular, we have some sample live streams where some TS segments can be parsed by external tools as valid TS, but cause the Chromecast to throw a parsing error. We should reject TS content on Chromecast, and allow the builtin transmuxer to take over parsing. This also removes the use of `cast.__platform__.canDisplayType` to patch MediaSource.isTypeSupported on Chromecast. Current versions of Shaka Player are doing very rough filtering with isTypeSupported before calling MediaCapabilities.decodingInfo. And our MediaCapabilities polyfill calls `cast.__platform__.canDisplayType` directly, bypassing any polyfill we might install on isTypeSupported. So there is no longer any purpose to canDisplayType in isTypeSupported. Closes #5278
- Loading branch information