Login | Register | FAQ
Anonymous

HTML 5 Video didn't play on hosting server

+ Post a reply

4 posts Page 1 of 1


HTML 5 Video didn't play on hosting server

by yogeshthakekar » Thu Apr 16, 2015 12:38 pm

I have created HTML page with HTML 5 video control. This page will play one video on background. When i check it on local machine it works fine, but when i upload it on server the video is not get played.

Please find below code that i have used

<video autoplay loop poster="polina.jpg" id="bgvid">
<source src="Colors.webm" type="video/webm">
<source src="Colors.mp4" type="video/mp4">
<source src="Colors.ogv" type="video/ogg">
</video>

If anyone has solution to resolve this problem is highly appreciated. Thanks
User avatar

yogeshthakekar

  • Posts: 1
  • Joined: Thu Apr 16, 2015 12:27 pm

Re: HTML 5 Video didn't play on hosting server

by XainPro » Thu Apr 16, 2015 4:04 pm

share the online link ...
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: HTML 5 Video didn't play on hosting server

by Veeramanikandan » Wed May 06, 2015 3:16 pm

[quote="yogeshthakekar"]I have created HTML page with HTML 5 video control. This page will play one video on background. When i check it on local machine it works fine, but when i upload it on server the video is not get played.

<video width="320" height="240" controls>
<source src="file.mp4" type="video/mp4">
<source src="file.ogg" type="video/ogg">
</video>
give the correct resolution height and width and some browser not support video option on live
User avatar

Veeramanikandan

  • Posts: 20
  • Joined: Mon Sep 22, 2014 4:03 pm

Re: HTML 5 Video didn't play on hosting server

by brenko.web » Sat Jun 20, 2015 10:51 pm

Make sure that you put the right relative path for your links as well.

Here you have simple examples and they all work:

http://www.brenkoweb.com/tutorials/html ... ples#media

http://www.brenkoweb.com/tutorials/html ... lement.php
User avatar

brenko.web

  • Posts: 7
  • Joined: Sun Nov 25, 2012 11:42 pm
--
Free online web development tutorials and articles at

http://www.brenkoweb.com/


+ Post a reply

Page 1 of 1