Click here to Skip to main content
15,920,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
actually i am trying to show and play video on webform but video is not playing.
its showing me on browser like:

No video with supported format and mime type found

as well as when i m going to add window media player in com componmmet. it will not add in toolbox...showing fade title in toolbox

What I have tried:

<video width="400" controls>
  <source src="mov_bbb.mp4" type="video/mp4">
  <source src="mov_bbb.ogg" type="video/ogg">
  Your browser does not support HTML5 video.
</video>
Posted
Updated 11-Jan-17 23:01pm
Comments
F-ES Sitecore 12-Jan-17 4:12am    
Most likely problem is that it can't find a video with those names in the same folder your page is in. Or it can find files with those names but they are not mp4 or ogg video files.

1 solution

That is because, likely, the code was captured from W3Schools[^] and you didn't bother considering the fact that they are providing the video from their own server (the path is relative to their own environment), and that will not work in your own computer.

There are many ways that you can make it run, first of them is to change the path to a video that you have on your own machine. Try this instead,
<video width="400" controls>
  <source src="http://www.w3schools.com/html/movie.mp4" type="video/mp4">
  <source src="http://www.w3schools.com/html/movie.ogg" type="video/ogg">
  Your browser does not support HTML5 video.
</video>

This will work even from your own computer, because it will try to load the file from their server.

For a sample, see, Tryit Editor v3.3[^]
 
Share this answer
 
Comments
Member 12300036 12-Jan-17 23:22pm    
still not showing video
Afzaal Ahmad Zeeshan 13-Jan-17 6:52am    
What error does it show now?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900