englercj / resource-loader

A middleware-style generic resource loader built with web games in mind.
http://englercj.github.io/resource-loader/
MIT License
424 stars 77 forks source link

Add *.mov video files support #142

Closed lekzd closed 4 years ago

lekzd commented 4 years ago

Unfortunately no ways to use webm videos on iOS and no perspectives that it should works in near future. It needs fallback video encoded using HEVC codec in mov container. That's a main reason why we need mov files support here.

englercj commented 4 years ago

I'm OK with merging this in, but just so you know you can add any extension to use any strategy in your own code with no library changes necessary. The list in here is just the default strategies.

You can call Resource.setLoadStrategy('mov', VideoLoadStrategy); to have the same effect as this PR, but just in your code.