+ 1

Can anyone help me, How can I get audio or Image URL?!

Beginner Question

27th May 2019, 2:16 PM
Umnia Mustafa
Umnia Mustafa - avatar
11 Answers
+ 2
Do you mean get the source of an image/audio or how to put it in HTML?
27th May 2019, 2:28 PM
Airree
Airree - avatar
+ 2
Using files that are on your device is kind of an unforunate idea, because you cannot make it public, it will only work for you. Maybe you should upload the file somewhere first, then use it.
27th May 2019, 2:47 PM
Airree
Airree - avatar
+ 2
I don't know what kind of phone do you have, but at some files there probably is an information button, and there should be the source of the file
27th May 2019, 3:19 PM
Airree
Airree - avatar
+ 1
Well, you can just search what you want and copy its link, I'm pretty sure that'll work
27th May 2019, 2:33 PM
Airree
Airree - avatar
+ 1
For audio you need to define a source using "src" like the following <audioĀ controls> Ā Ā <sourceĀ src="horse.ogg"type="audio/ogg"> Ā Ā <sourceĀ src="horse.mp3"type="audio/mpeg"> Ā  Your browser does not support the audio tag. </audio> Here the browser will first try to play the ogg audio. If it fails then the browser will try to play the mp3 file. If it fails booth cases, then the browser will show the following text. As for image you need to do the following <imgĀ src="img_girl.jpg"Ā alt="Girl in a jacket"> The alt text is for providing better usability and in case the image fails to load the this text will appear. Note: the image element doesn't have a closing tag
27th May 2019, 3:10 PM
Saifur Rahman Khan Saif
Saifur Rahman Khan Saif - avatar
+ 1
I'm guessing you're using an Android phone. Go to the File Manager ( or any othy file managing app like ES File Explorer) > find your song (or image) > click and hold to select > click on the Details (or properties) button. It will show you some information along with the source. Something like this /storage/emulated/0/Download/FildoDownloads/Alessia Cara/Stay.mp3
27th May 2019, 3:48 PM
Saifur Rahman Khan Saif
Saifur Rahman Khan Saif - avatar
0
Get a source, Airree
27th May 2019, 2:30 PM
Umnia Mustafa
Umnia Mustafa - avatar
0
Okay, and If this Image or audio on my phone, then how can I get it's URL??
27th May 2019, 2:41 PM
Umnia Mustafa
Umnia Mustafa - avatar
0
I absolutely get more information from you, that's so goodšŸ˜šŸ˜˜, but I still have no answer on my question. šŸ˜£ How can I get the URL of the audio if the audio on my phone?!šŸ¤”
27th May 2019, 3:17 PM
Umnia Mustafa
Umnia Mustafa - avatar
0
Okay. Thank you so much Airree
27th May 2019, 3:25 PM
Umnia Mustafa
Umnia Mustafa - avatar
0
I do that but It's not working. What's wrong with this Code?! <img src="storage/emulated/0/DCIM/Screenshots/Screenshot_Ł¢Ł Ł”Ł©-Ł Ł„-Ł¢Ł§-Ł¢Ł -Ł¤Ł¢-Ł„Ł„-Ł¦Ł”Ł£_com.facebook.katana.png" alt="storage/emulated/0/DCIM/Camera/IMG_Ł¢Ł Ł”Ł©Ł Ł„Ł¢Ł¦_Ł”Ł„Ł Ł„Ł¢Ł©.jpg"> Saifur Rahman Khan Saif
27th May 2019, 7:12 PM
Umnia Mustafa
Umnia Mustafa - avatar