0
In visual studio code the output not showing videos
Video is not support ing
25 Respuestas
+ 7
<audio controls>
<source src="<src>" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
Here it is
Everything is available on internet... Just google and copy and paste
https://www.w3schools.com/tags/tag_audio.asp
+ 6
Only controls are showing 👀
Looks like you are doing it wrong
<video width="320" height="240"controls>
<source src="<your src> "type="video/mp4">
Your browser does not support the video tag.
</video>
If that doesn't work... Make sure that video is in correct format..
Try manually opening the video using media player
+ 5
Please show your code here so that we can help you
https://www.sololearn.com/post/75089/?ref=app
+ 5
By looking at answers... I guess you are checking output in the output section
You need something to open it in browser...
And there are couple of ways of doing it
You can go to the directory where you created the .html file
You will see a chrome or any browser logo
Click on that and you will have your code loaded on browser...
Another way you can do is use a extension...
Just go to extension section pf vs code
And search "live server"
Click on the first one and install that...
Then click on the ".html" file and you will find a option of open with live server... Click on that and there you go
Everytime you make changes and save it will automatically reload
You can also find video tutorials for that🙃
+ 2
Ya ok then audio have the same problem
+ 2
Try this code
<video>
<source src="video.mp4" type="video/mp4">
</video>
+ 1
My syntax are correct but there was showing a notification (file format does not supported ..)
What is the reason.??
+ 1
There is no code in my hand but i can write the syntax
<video>
<a href="video.mp4" > type="video/mp4"</a>
</video>
+ 1
It is just example
+ 1
))) file format does not support... Of course vscode is advanced text editor. Not video player! it can show all the files in the project folder but, will correctly open and show only supported format files such us with programming language extensions and json, txt and maybe, jpg, png.
video files it can't open.
+ 1
Ya i really want to show output on browser not on vs code
+ 1
All other file was showing but audio and video format does not ..
+ 1
I have used live server
+ 1
Or give autoplay
+ 1
Ok thanks
+ 1
Did it shows now
0
On browser only control was seen
- 1
No