muxinc / videojs-mux-kit

MIT License
33 stars 11 forks source link

[Bug fix] allow script tags to work correctly #23

Closed james-mux closed 3 years ago

james-mux commented 3 years ago

This change fixes an issue where calling the videojs setup function directly in a browser, where videojs-kit is included via a <script> tag currently throws an error. If you callvideojs.default instead of just videojs this will work at present. This PR aims to solve that problem, and keep operations the same as regular videojs.