+ 3
How to add audio file in html
I used the below process but I can't play the audio <html> <body> <audio src="phone/download/maskhari-dil bechara"controls> </audio> </Body> </html> https://code.sololearn.com/WDjB44ULzwMg/?ref=app https://code.sololearn.com/WDjB44ULzwMg/?ref=app
17 Respuestas
+ 6
Your Syntex for path of internal file is wrong.
See I have a Dil Bechara music file in internal storage /download
Then I would link it as
file:///storage/emulated/0/Download/Dil Bechara.mp3
file:///
is important link local files.
+ 5
https://www.sololearn.com/discuss/1730618/?ref=app
https://www.sololearn.com/discuss/2208373/?ref=app
https://www.sololearn.com/discuss/81627/?ref=app
https://www.sololearn.com/discuss/1134762/?ref=app
https://www.sololearn.com/discuss/2316175/?ref=app
https://www.sololearn.com/discuss/1425849/?ref=app
Please use the search bar from the best time 🌝
+ 3
Brother if you put your audio in the same file where you html page is then it will work.
Otherwise upload audio in Google Drive and then copy past it's link and try.
+ 3
Use audio tag
+ 2
Bro..
I hav given a try to both the processes...
Like (coping link from Google drive and also I tried to give a path
From my music) but it doesn't work...
"I not getting that where I'm committing a error🤷🏻..?
+ 2
Aarif Elegance in solo learn it creates such problems but if you try from PC in any updated browser then it will work.
+ 2
Simba
Okay, I will try
+ 2
Check if their is some mistake in your previous code.. Try debugging it
+ 2
If you put your audio file in the same folder only then it will work otherwise copy the link of audio from you-tube etc....
You can also learn it from HTML 5
+ 1
Okay bro..
+ 1
The prblm is already sorted out...
Anyway...... really thanks for responding 🤗🤗🤗
+ 1
Edit your question and add [solved] if it is solved.then save.
+ 1
Learn html5
+ 1
Use embed HTML tags....🤔
+ 1
I'll advise you put the audio file in the same folder as the html file, else use the html5 method or upload directly. If it still has issues check your code
+ 1
It can be added with help of .mp3 extension