1

I have a video website where users can upload videos. The problem is that the uploaded videos don't play.

I tried mp4, avi but they don't work.

<video id="myvideo">
<source scr="trial.mp4">
</video>

Videos are uploaded to the server but do not have playback controls.

Can anyone recommend some video players,format convert,etc.?

Rajneesh Gaikwad
  • 1,193
  • 2
  • 14
  • 30
user2120032
  • 51
  • 2
  • 8

3 Answers3

0

JWPlayer is a great video player, and the website has a lot of very useful (and well-written) advice for getting video to work on your website.

Neville Kuyt
  • 29,247
  • 1
  • 37
  • 52
0

You have a typo:
you must replace "scr" by "src", in your code.

sissi_luaty
  • 2,839
  • 21
  • 28
0

Edit: "Videos are uploaded to the server but do not have playback controls."

If you're using Video.js and you aren't getting any player controls appearing properly (assuming you're still using the code you specified in the reply to comments), it's most likely because you've not included the CSS file above the video.js include, as specified in the Videojs documentation

<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">

If that's not the issue, and videos aren't playing back at all (as you originally stated), then it may be potentially something else that's crossed my mind. Seeing as you're a Chrome user, if you right click on your video page, go to inspect element, then click the console tab.

If you've got anything to do with the wrong Mime type being sent, then information here may help:

HTML5 video (mp4 and ogv) problems in Safari and Firefox - but Chrome is all good

Specifically this reply

I'm not sure I can help anymore without further explanation / information.


Specify the type of video.

E.g.

<source scr="trial.mp4" type="video/mp4">
Community
  • 1
  • 1
Malcolm
  • 1
  • 1