In visual studio code the output not showing videos | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In visual studio code the output not showing videos

Video is not support ing

7th Nov 2020, 1:46 AM
Webber
Webber - avatar
18 Answers
+ 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
7th Nov 2020, 4:23 AM
Shreyansh
Shreyansh - avatar
+ 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
7th Nov 2020, 4:09 AM
Shreyansh
Shreyansh - avatar
+ 5
Please show your code here so that we can help you https://www.sololearn.com/post/75089/?ref=app
7th Nov 2020, 1:58 AM
Gordon
Gordon - avatar
+ 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🙃
7th Nov 2020, 4:00 AM
Shreyansh
Shreyansh - avatar
+ 2
Ya ok then audio have the same problem
7th Nov 2020, 4:10 AM
Webber
Webber - avatar
+ 2
Try this code <video> <source src="video.mp4" type="video/mp4"> </video>
7th Nov 2020, 7:01 AM
Satheesh Kumar
Satheesh Kumar - avatar
+ 1
My syntax are correct but there was showing a notification (file format does not supported ..) What is the reason.??
7th Nov 2020, 2:21 AM
Webber
Webber - avatar
+ 1
There is no code in my hand but i can write the syntax <video> <a href="video.mp4" > type="video/mp4"</a> </video>
7th Nov 2020, 2:42 AM
Webber
Webber - avatar
+ 1
It is just example
7th Nov 2020, 2:55 AM
Webber
Webber - avatar
+ 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.
7th Nov 2020, 2:58 AM
Shadoff
Shadoff - avatar
+ 1
Ya i really want to show output on browser not on vs code
7th Nov 2020, 3:16 AM
Webber
Webber - avatar
+ 1
All other file was showing but audio and video format does not ..
7th Nov 2020, 3:54 AM
Webber
Webber - avatar
+ 1
I have used live server
7th Nov 2020, 4:04 AM
Webber
Webber - avatar
+ 1
Or give autoplay
7th Nov 2020, 7:01 AM
Satheesh Kumar
Satheesh Kumar - avatar
+ 1
Ok thanks
7th Nov 2020, 10:12 AM
Webber
Webber - avatar
+ 1
Did it shows now
7th Nov 2020, 11:06 AM
Satheesh Kumar
Satheesh Kumar - avatar
0
On browser only control was seen
7th Nov 2020, 4:02 AM
Webber
Webber - avatar
- 1
No
7th Nov 2020, 2:19 AM
Webber
Webber - avatar