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
8/5/2020 7:28:03 AMAarif Elegance
19 AnswersNew Answer
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.
Aarif Elegance Hope it helps you https://code.sololearn.com/WV796n6dPtJe/?ref=app
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 🌝
See, this feature of uploading audio on sololearn(from an Android device) is not that straightforward. Even I had the same problem a few days ago. But eventually I found the way. Do this: 1. Go to the place where you have stored your audio. 2. Click 'share' and press the Google drive option in it. Now the music will get uploaded to your drive. 3. Go to google drive, find out that music, and press the share option. Now comes the main part. You need to change your settings to 'editor mode'. Doing so will give you a link of that music, which will actually be accessible to anyone who clicks on that link (no don't worry, there aren't any security issues!!!🤩) 4. Copy paste that link in your code. It should work (did in my case.) I'll upload my code here, for you to be able to see the link. https://code.sololearn.com/W3mJzM6KNBzq/?ref=app Hope this helps. the link of the audio file should be somewhat similar to the format of the first part of my audio link (docs, google stuff).
Use audio tag
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.
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🤷🏻..?
Aarif Elegance in solo learn it creates such problems but if you try from PC in any updated browser then it will work.
Simba Okay, I will try
Check if their is some mistake in your previous code.. Try debugging it
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
This issue has been solved. Aarif Elegance , please mention properly that it is solved.
The prblm is already sorted out... Anyway...... really thanks for responding 🤗🤗🤗
Edit your question and add [solved] if it is solved.then save.
Use embed HTML tags....🤔
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
It can be added with help of .mp3 extension