+ 1
Can anyone help me, How can I get audio or Image URL?!
Beginner Question
11 odpowiedzi
+ 2
Do you mean get the source of an image/audio or how to put it in HTML?
+ 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.
+ 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
+ 1
Well, you can just search what you want and copy its link, I'm pretty sure that'll work
+ 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
+ 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
0
Get a source, Airree
0
Okay, and If this Image or audio on my phone, then how can I get it's URL??
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?!🤔
0
Okay. Thank you so much Airree
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