These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:11 pm Advanced search

<video> src Problem

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

<video> src Problem

Postby oylesine » Tue Feb 01, 2011 9:58 am

Hello,
I am trying to create a video player with <video> HTML5.
My source is determined dynamically by javascript.
It works perfectly if I use a web link for src like:

document.getElementById("my_video").src=http://html5demos.com/assets/dizzy.ogv;

But I need to play a file on my localhost and following line is not working :

document.getElementById("my_video").src=http://localhost:7000/Videos/dizzy.ogv ;

There is just a gray box with X on it and when I click play the video, It gives me a popup window for downloading the video to pc.

What can be the problem ? I don't seem to understand
Please I need a quick help.
Thanks
oylesine
<h6>
 
Posts: 1
Joined: Tue Feb 01, 2011 9:51 am

Postby zcorpan » Wed Feb 02, 2011 3:23 pm

does your local web server serve your video file with the mime type video/ogg?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests