-3

I have this video:

<video src='videos/StressedOut.mp4' class='prize_video' controls></video>

I've checked, the URL is working. .prize_video doesn't affect the function of the video, only the style:

.prize_video {
  width: 800px;
  height: 480px;
  position: relative;
  left: 22px;
}

I can click play, but the video won't start...

  • 1
    Please don't ask [same questions](http://stackoverflow.com/questions/36993990/i-can-click-play-but-no-video-plays) multiple times, and why multiple accounts ? Instead, edit the first one, it will go back at top of streams. Now, you didn't answered to the comments that were posted on yesterday's one : – Kaiido May 04 '16 at 01:00
  • Could you share the video file as well? – PseudoAj May 04 '16 at 01:05
  • @JeffPuckettII I'm not using YouTube... – Matthew Malan May 04 '16 at 01:26

3 Answers3

0

check the direct link of the video file in the web browser, could be the file permissions.

or could be an unsupported format such as HEVC

  • If it was one of these two possibilities, then I guess, *"I've checked, the URL is working"* wouldn't be part of the question. – Kaiido May 04 '16 at 01:01
0

As suggested by @David please check the video file permissions since I ran the html and css here with different video and it works fine.

HTML:

<video src='http://www.w3schools.com/html/mov_bbb.mp4' class='prize_video' controls></video>

CSS:

.prize_video {
  width: 800px;
  height: 480px;
  position: relative;
  left: 22px;
}

Also verify following:

  • Correct file name
  • File format(any variation of mp4?)
  • Relative file location

P.S. It can be something very trivial causing problem too.

PseudoAj
  • 5,234
  • 2
  • 17
  • 37
0

try adding the mime type as an attribute in the video tag, to select the correct video codec by the web browser.

<video src='videos/StressedOut.mp4' type="video/mp4" class='prize_video' controls></video>