+ 2

How to insert a video

I want to insert a video in my HTML document that its source video is in my phone storage. I do not know the way to do it. I have tried it but the video does not play. The code looks like this. <!DOCTYPE html> <html> <head> <title>First Page </title> </head> <body> <div> <p>This is the Bhagavad Gita Enjoy </p> </di> <video controls> <source src="/storage/sdcard1/bluetooth/VID-20161224-WA0031.mp4" type="video/mp4"></source></video> </body> </

3rd Jan 2017, 4:37 AM
NEVEN RAJ KAUNDER A/L SIVA RAJA -
NEVEN RAJ KAUNDER A/L SIVA RAJA - - avatar
4 Antworten
+ 4
to play it in code playground you will have to upload it somewhere then share and use the sharable link as srcofvideo
3rd Jan 2017, 6:47 AM
Sandeep Chatterjee
+ 3
you are using an online editor: it's unlikely that your local files are accessible by the server hosting the Code Playground. try to upload the files online (ex. via dropbox) and link them in your page via their url. see one of my codes regarding html video background.
3rd Jan 2017, 5:20 AM
seamiki
seamiki - avatar
+ 3
Thank you guys :)
8th Jan 2017, 4:05 PM
NEVEN RAJ KAUNDER A/L SIVA RAJA -
NEVEN RAJ KAUNDER A/L SIVA RAJA - - avatar
+ 3
It helped me so much. Thanks again
8th Jan 2017, 4:06 PM
NEVEN RAJ KAUNDER A/L SIVA RAJA -
NEVEN RAJ KAUNDER A/L SIVA RAJA - - avatar