You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2018. It is now read-only.
You need to initialize ImoSPC using ImoSPC.init in order to use it. The initialization process is asynchrous, so you need to add event listeners for the init and initerror events, using ImoSPC.addEventListener.
functionmyInitFailproc(e){// This isn't a good way to handle initerror, but it demonstrates the idea.alert("Failed to initialize!");}
Once ImoSPC is initialized, you can now load metadata using ImoSPC.open.
functionmyInitproc(){// Passing autostart: true here will cause the opened file to play immediately.// You can also pass autostart: true to ImoSPC.init to use this behaviour by default.// You can also listen for the 'load' event instead of using autostart.ImoSPC.open("url/to/file.spc",{autostart: true});}