How to use audio file from local folder in android phone? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How to use audio file from local folder in android phone?

<audio src="/SD card/bluetooth/Dontleavemealone.mp3" type="audio/mpeg" controls/></audio>

6th Oct 2020, 10:14 AM
minal mukarande
minal mukarande - avatar
24 Answers
+ 1
Step 1. Create a folder Step 2. Create a html file under the folder( .html extension) Step 3. Copy your audio/MP3 file and paste under the folder Step 4. <Audio src="filename.mp3 control></audio> copy this code and paste it (rename the file name)
8th Oct 2020, 2:56 AM
Hriday Kalita
+ 8
Drop that song first in dropbox then copy it's URL https://code.sololearn.com/W0lz7wOrE1SX/?ref=app
6th Oct 2020, 10:22 AM
ÃKR
ÃKR - avatar
+ 6
Pandya martina abdallah Do not post your question in someone others question Make a new question so we can help you with that https://www.sololearn.com/discuss/1316935/?ref=app
8th Oct 2020, 6:01 AM
ÃKR
ÃKR - avatar
+ 4
For a valid url link of device memory files: First you need to upload image to a cloud site like Dropbox if your files is in your mobile. It won't access local storage.. So upload and then copy that link and paste as src value. It can't directly from your mobile. Link need absolute path. Can't access your local storage. Follow this link to know how upload and import to Program.. Or you can try by a valid link from copying any Web file link. Run this codes and see steps to follow to upload files: https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app https://code.sololearn.com/WW6t4B73kJVz/?ref=app
6th Oct 2020, 10:19 AM
Jayakrishna 🇮🇳
+ 2
Ok i'll try it first whether its working or not....Thank you
6th Oct 2020, 10:22 AM
minal mukarande
minal mukarande - avatar
+ 2
Its working 😃👏👏👏👏Thank you everyone
6th Oct 2020, 10:41 AM
minal mukarande
minal mukarande - avatar
+ 2
<!-- This audio code is working --> <audio src="https://dl.dropbox.com/s/n1hl4d6w0fwtfzy/galliyan%20.mp3?raw=1.mp3" type="audio/mpeg" controls/></audio>
6th Oct 2020, 10:43 AM
minal mukarande
minal mukarande - avatar
+ 2
Okay
6th Oct 2020, 11:11 AM
minal mukarande
minal mukarande - avatar
+ 2
It not working for the video tag....need help
6th Oct 2020, 11:53 AM
minal mukarande
minal mukarande - avatar
+ 2
How can I add an image in html and to be displayed when I search in browser
8th Oct 2020, 5:39 AM
martina abdallah
martina abdallah - avatar
+ 2
OK, it's was a mistake. Sorry
8th Oct 2020, 6:19 AM
martina abdallah
martina abdallah - avatar
+ 1
In case you just want to open and use it on the same phone: storage/emulated/0/path to mp3 file. in case you want it to be accessible online, upload mp3 file to any cloud platform as mentioned above, e.g. dropbox. And then use it's url
6th Oct 2020, 10:26 AM
Shadoff
Shadoff - avatar
+ 1
Is it same for the video tag also?
6th Oct 2020, 11:06 AM
minal mukarande
minal mukarande - avatar
+ 1
minal mukarande , yeeees 😏 you can even put youtube video url!!!
6th Oct 2020, 11:10 AM
Shadoff
Shadoff - avatar
+ 1
Add your try.. The link you are using..?
6th Oct 2020, 11:57 AM
Jayakrishna 🇮🇳
+ 1
Did same changed "www to dl" and ?dl=0 to raw=1 same for video?
6th Oct 2020, 11:59 AM
minal mukarande
minal mukarande - avatar
+ 1
It works but Web playground not responding now.. May be Server slowness.. Sharing the link if any problem so some one try and reply working one.. Vedio farmat also matters.. May not support all... For YouTube vedios add it in frames..
6th Oct 2020, 1:21 PM
Jayakrishna 🇮🇳
+ 1
Issues solved...thank you by the way
6th Oct 2020, 3:02 PM
minal mukarande
minal mukarande - avatar
+ 1
Don't code on your phone...
7th Oct 2020, 8:33 PM
Bhavya
Bhavya - avatar
+ 1
I tried it in my phone and that to in sololearn and.... its working
8th Oct 2020, 5:10 AM
minal mukarande
minal mukarande - avatar