videojs / vhs-utils

Objects and functions shared throughout @videojs/http-streaming code
MIT License
6 stars 7 forks source link

feat: Add check for ManagedMediaSource support #37

Closed mister-ben closed 7 months ago

mister-ben commented 7 months ago

Adds, optionally, a check for codec support by ManagedMediaSource in browserSupportsCodec().

VHS will not register itself as a source handler unless this returns true. Currently this is a test against MediaSource only. The new optional check allows this to work on new iOS on iPhones, which supports ManagedMediaSource but not MediaSource. The check is optional so that VHS would be able to choose whether to check for support, so playback with ManagedMediaSource can be made optional there, and this also retains backwards compatibility.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (88d6e10) 87.54% compared to head (c24d4a3) 87.60%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #37 +/- ## ========================================== + Coverage 87.54% 87.60% +0.05% ========================================== Files 18 18 Lines 1277 1283 +6 Branches 336 342 +6 ========================================== + Hits 1118 1124 +6 Misses 159 159 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.