+ 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> </
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
+ 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.
+ 3
Thank you guys :)
+ 3
It helped me so much. Thanks again