- 2
How to use audio file from local folder in android phone?
<audio src="/SD card/bluetooth/Dontleavemealone.mp3" type="audio/mpeg" controls/></audio>
26 odpowiedzi
+ 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)
+ 8
Drop that song first in dropbox
then copy it's URL
https://code.sololearn.com/W0lz7wOrE1SX/?ref=app
+ 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
+ 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
+ 2
Ok i'll try it first whether its working or not....Thank you
+ 2
Its working 😃👏👏👏👏Thank you everyone
+ 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>
+ 2
Okay
+ 2
It not working for the video tag....need help
+ 2
How can I add an image in html and to be displayed when I search in browser
+ 2
OK, it's was a mistake. Sorry
+ 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
+ 1
Is it same for the video tag also?
+ 1
minal mukarande , yeeees 😏
you can even put youtube video url!!!
+ 1
Add your try..
The link you are using..?
+ 1
Did same changed "www to dl" and ?dl=0 to raw=1
same for video?
+ 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..
+ 1
Issues solved...thank you by the way
+ 1
Don't code on your phone...
+ 1
I tried it in my phone and that to in sololearn and.... its working