vercel / modelfusion

The TypeScript library for building AI applications.
https://modelfusion.dev
MIT License
1.01k stars 76 forks source link

feat: added support to Apple managed media source #327

Closed lcsvcn closed 1 month ago

lcsvcn commented 2 months ago

Sources:

https://bitmovin.com/managed-media-source https://caniuse.com/?search=media%20source (partially supported, is supported fully only in ipadOS)

Proposal:

Since iOS doesn't support Media Source Extensions API (MSE), but supports Managed Media Source API (MMS). These changes are intended to make import { MediaSourceAppender } from "modelfusion-experimental/browser" to work even in iOS devices.

From the blog bitmovin: "As the MMS supports all methods the “old” MSE does, this is all to get you started (...)”

There are some new events exclusive to MMS that accordingly to the post can unleash the full potential of Apple API, but I did not implement in this PR for the sake of simplicity, since the goal of this PR is to support iOS devices.

lcsvcn commented 1 month ago

new PR: https://github.com/vercel/modelfusion/pull/341