0
How do I get One of my Videos from my internal phone storage to play? and the same thing for internal phone storage for images?I have what I think code should look like but for some reason its not playing. My Codes Below
Video code ____________ <video controls> <source src="Path/storage/emulated/0/Mobizen/Sample.mp4" type="video/mp4"> </source> </video> Picture code _____________ <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src="Path:/storage/emulated/0/Pictures/LearnHTML/Certificate.jpg" height="160px" width="256px" alt=""></img> </body> </html>
2 Answers
+ 1
There are no closing tags for source, img , audio and video .
//same folder
<img src="smiley.gif"alt="Smiley face"height="42" width="42">
//different folder(fullpath/filename)
<audio src="c/desktop/smiley.mp3"alt="Smiley face"height="42" width="42">
//url
<video src="http:\\abc.com\smiley" alt="Smiley face"height="42" width="42">
alt means alternative name
height and width of box in which the img, audio and video is displayed
0
ok thx