-
GitHub Pages not Playing AudioHello! I am new to programing and just recently started uploading my first repositories to GitHub. Unfortunately today, I encountered a problem when I created a GitHub page for a virtual piano I coded in html and javascript. The problem is the same aplication runs perfectly on VS Code's live preview, so I have no Idea what to do to debug this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I just swapped the whole script file with someone else's who did the same course but it did not make a difference. Their web page was playing properly tho, so I think it must be something wrong with the HTMl |
Beta Was this translation helpful? Give feedback.
-
Hi @Dev-Jago, URLs are generally case-sensitive. So to access the 'Audio' directory: const playTune = (key) => {
- const audioSrc = `src/audio/${key}.wav`;
+ const audioSrc = `src/Audio/${key}.wav`; Proof: gh_pages_custom_virtual_keyboard.mp4 |
Beta Was this translation helpful? Give feedback.
-
Oh mano, you are my angel!! I cannot describe how thankfull I am! As a beginner theese small projects have a great meaning to me and I so happy you went out your way to help me out! My code works now and I am really proud of it, thanks to you! Cheers from Brazil seylu!!! |
Beta Was this translation helpful? Give feedback.
Hi @Dev-Jago,
URLs are generally case-sensitive.
So to access the 'Audio' directory:
Proof:
gh_pages_custom_virtual_keyboard.mp4