path from directory #16
Answered
by
cifkao
omkarprissoft
asked this question in
Q&A
-
|
sir how I gave midi file path from my local directory |
Beta Was this translation helpful? Give feedback.
Answered by
cifkao
Apr 6, 2021
Replies: 2 comments
-
|
The player unfortunately cannot play local files, they have to be loaded from a server. This is because JavaScript cannot access local files in modern browsers. For local development, you need to use an HTTP server, e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cifkao
-
|
Just wanted to write down a more concrete list of steps:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The player unfortunately cannot play local files, they have to be loaded from a server. This is because JavaScript cannot access local files in modern browsers.
For local development, you need to use an HTTP server, e.g.
http-serverorlive-serverfrom NPM. Or you can upload your file somewhere.