mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-27 17:56:23 +03:00
040ecf6978
This CL creates the "loaded with src=" node and its initial implementation. Adding this node required some changed to the routing logic as a new destination was created. We will use src= when given mp4 content or media source is unavailable. We detect mp4 content via the mimeType in |load| and/or the file extension. When media source is not available on a platform, we fall back to using src=. To do this, we check if media source is available whenever |load| is called, and will route to the src= branch if media source is not found. To avoid pre-initializing media source (when it is not available) we modify the |initializeMediaSource| flag in |attach| and |unload| when media source is not available. Doing this showed that we had inconsistent behaviour between |attach| and |unload|. |attach| would default to initializing media source whereas |unload| would not. This has been fixed. Issue #816 Issue #997 Change-Id: I00599832b49c9079e273e65a4b827fee736479cc