videojs / vhs-utils

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

Add media-types module with simpleTypeFromSourceType function #4

Closed gesinger closed 4 years ago

gesinger commented 4 years ago

Note that with this PR, the scope of this module changes to encompass more use-cases. See the README notes for details.

Also note that this includes functionality for https://github.com/videojs/http-streaming/pull/649, and helps to break that PR up into fewer code changes per PR. If this gets merged, those functions can be stripped from @videojs/http-streaming and simply reference this module's functions.

So long as the scope change of this module is acceptable, more PRs will be added soon with additional extracted functions from VHS.

Code derived from https://github.com/videojs/http-streaming/blob/master/src/videojs-http-streaming.js#L85