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: 1 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cifkao
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-server
orlive-server
from NPM. Or you can upload your file somewhere.