[opensuse] html5 problem
Hello, I have a curious problem. I try to make an html5 page work with video if I try the very same index and video file on my local computer, the video runs. On the server it don't http://dodin.org/uploads/ source is below the video file is test2.ogv. I have a lot of video codecs installed idea? I don't know where are logs (nothing in apache logs) thanks jdd <html> <head> <title></title> <meta content=""> <style></style> </head> <body> <h1>test</h1> <p><video width="480" height="270" controls="controls" poster=""> <source src="test2.ogv" type="video/ogg" /> <source src="test2.mp4" type="video/mp4" /> <source src="test2.webm" type="video/webm" /> <img src="/.jpg" width="480" height="270" /> <br />Your browser does not allow HTML5 video. </video> </p> </div> </body> </html> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/09/12 11:01, jdd-gmane pecked at the keyboard and wrote:
Hello,
I have a curious problem.
I try to make an html5 page work with video
if I try the very same index and video file on my local computer, the video runs. On the server it don't
source is below
the video file is test2.ogv. I have a lot of video codecs installed
idea? I don't know where are logs (nothing in apache logs)
thanks jdd
<html> <head> <title></title> <meta content=""> <style></style> </head> <body>
<h1>test</h1> <p><video width="480" height="270" controls="controls" poster=""> <source src="test2.ogv" type="video/ogg" /> <source src="test2.mp4" type="video/mp4" /> <source src="test2.webm" type="video/webm" /> <img src="/.jpg" width="480" height="270" /> <br />Your browser does not allow HTML5 video. </video> </p> </div>
Where is the corresponding <div> ?
</body> </html>
-- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I saw a discussion here http://stackoverflow.com/questions/2643447/html5-video-mp4-and-ogv-problems-... which indicates in one of the replies that you should add the mime types to your .htaccess file Quote from above: Add these lines in your .htaccess file and it will work for all browsers. Works for me. |AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm | If you dun have .htaccess file in your site then create new one :) its obvious i guess. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/05/2012 17:24, Martin Helm a écrit :
I saw a discussion here http://stackoverflow.com/questions/2643447/html5-video-mp4-and-ogv-problems-... which indicates in one of the replies that you should add the mime types to your .htaccess file
Quote from above:
Add these lines in your .htaccess file and it will work for all browsers. Works for me.
|AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm |
If you dun have .htaccess file in your site then create new one :) its obvious i guess.
what I don't understand is why this file works locally on my desktop (no apache) and not on the server. I don't like .htaccess, but I guess there is a syntax for virtual server?? (and the div is a copy/paste error, can be removed) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd-gmane wrote:
Le 09/05/2012 17:24, Martin Helm a écrit :
I saw a discussion here
http://stackoverflow.com/questions/2643447/html5-video-mp4-and-ogv-problems-...
which indicates in one of the replies that you should add the mime types to your .htaccess file
Quote from above:
Add these lines in your .htaccess file and it will work for all browsers. Works for me.
|AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm |
If you dun have .htaccess file in your site then create new one :) its obvious i guess.
what I don't understand is why this file works locally on my desktop (no apache) and not on the server.
Different server mechanisms.
I don't like .htaccess, but I guess there is a syntax for virtual server??
Yep. (it's the same). -- Per Jessen, Zürich (20.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/05/2012 18:11, Per Jessen a écrit :
Yep. (it's the same).
like this: <VirtualHost *:80> ServerName www.dodin.org ServerAlias dodin.org ServerAlias dodin.net ServerAlias www.dodin.net ServerAlias 91.121.202.36 DocumentRoot /data/srv/www/htdocs/ Options +Includes FollowSymLinks AddType text/html .shtml DirectoryIndex index.shtml index.html index.php AddOutputFilter INCLUDES .shtml AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm </VirtualHost> no change in file reading (still mime type error) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/05/2012 18:51, jdd-gmane a écrit :
Le 09/05/2012 18:11, Per Jessen a écrit :
Yep. (it's the same).
anyway it's always easy to try, and the .htaccess file solved the problem. So good, just to find the virtual server solution now :-) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd-gmane wrote:
Le 09/05/2012 18:51, jdd-gmane a écrit :
Le 09/05/2012 18:11, Per Jessen a écrit :
Yep. (it's the same).
anyway it's always easy to try, and the .htaccess file solved the problem. So good, just to find the virtual server solution now :-)
.htaccess is directory specific, maybe your virtual host config doesn't look at the right directory? You may need a <directory> section. -- Per Jessen, Zürich (18.5°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/05/2012 19:13, Per Jessen a écrit :
jdd-gmane wrote:
Le 09/05/2012 18:51, jdd-gmane a écrit :
Le 09/05/2012 18:11, Per Jessen a écrit :
Yep. (it's the same).
anyway it's always easy to try, and the .htaccess file solved the problem. So good, just to find the virtual server solution now :-)
.htaccess is directory specific, maybe your virtual host config doesn't look at the right directory? You may need a<directory> section.
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/05/2012 19:14, jdd-gmane a écrit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot)
well... I have my html5 web page perfectly working in firefox, but this page: http://www.apple.com/html5/showcase/video/ Apple demo, do not work at all in openSUSE firefox. Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 11.05.2012 11:50, schrieb jdd-gmane:
Le 09/05/2012 19:14, jdd-gmane a écrit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot)
well...
I have my html5 web page perfectly working in firefox, but this page:
http://www.apple.com/html5/showcase/video/
Apple demo, do not work at all in openSUSE firefox.
Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too
Apple is evil! The above site you mentioned does add a layer above the video for Firefox users by intention to hide the actual video running behind it. The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari. Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 11/05/12 20:00, Wolfgang Rosenauer wrote:
Am 11.05.2012 11:50, schrieb jdd-gmane:
Le 09/05/2012 19:14, jdd-gmane a �crit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot) well...
I have my html5 web page perfectly working in firefox, but this page:
http://www.apple.com/html5/showcase/video/
Apple demo, do not work at all in openSUSE firefox.
Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too Apple is evil!
The above site you mentioned does add a layer above the video for Firefox users by intention to hide the actual video running behind it.
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Is there a way to overcome this? If it can be applied by Apple then it presumably can be applied by others. BC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Friday, 11 May 2012 05:31 Basil Chupin wrote:
On 11/05/12 20:00, Wolfgang Rosenauer wrote:
Am 11.05.2012 11:50, schrieb jdd-gmane:
Le 09/05/2012 19:14, jdd-gmane a �crit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot)
well...
I have my html5 web page perfectly working in firefox, but this page:
http://www.apple.com/html5/showcase/video/
Apple demo, do not work at all in openSUSE firefox.
Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too
Apple is evil!
The above site you mentioned does add a layer above the video for Firefox users by intention to hide the actual video running behind it.
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Is there a way to overcome this?
If it can be applied by Apple then it presumably can be applied by others.
BC
I was able to get to it with konqueror after I'd set it to tell a website that it was 'safari on MacOS', but being on dial-up I didn't wait around to see if the video would play. -- Powered by Slackware 13.37 10:07:45 up 2 days, 16:30, 2 users, load average: 0.57, 0.68, 0.76 Properly read, the Bible is the most potent force for atheism ever conceived. - Isaac Asimov Registered Linux user #214117 at http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
well... thanks you all for your answers My last tests shows that the ogv video file is read by any firefox (linux or vista at least), but no webphone (I couldn't test firefox on webphone because for some week ff do not work anymore on my samsung s - I have a discussion open on FF fourm, so no need to start this here). but then I wonder How I can have a web site as general as possible. My html5 soft (pmwiki) allows ogv, mp4 and webm formats. I'm reluctant to upload all the three formats using 3x the bandwith and disk space :-( webm do not seems to be very compressed (my tests did it twice the ogg size), I'll try the mp4... thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* jdd-gmane <jdd@dodin.org> [05-11-12 12:32]:
My last tests shows that the ogv video file is read by any firefox (linux or vista at least), but no webphone (I couldn't test firefox on webphone because for some week ff do not work anymore on my samsung s - I have a discussion open on FF fourm, so no need to start this here).
the apple video shows on my Motorola Atrix in Dolphin but not Firefox. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 11/05/12 18:38, Patrick Shanahan wrote:
* jdd-gmane<jdd@dodin.org> [05-11-12 12:32]:
My last tests shows that the ogv video file is read by any firefox (linux or vista at least), but no webphone (I couldn't test firefox on webphone because for some week ff do not work anymore on my samsung s - I have a discussion open on FF fourm, so no need to start this here).
the apple video shows on my Motorola Atrix in Dolphin but not Firefox.
It's OK on Android vertical up until the opening title. Then it freezes (as in have to take the battery out) solid. In horizontal it plays the whole show. Aspect ratio? L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hallo Patrick Shanahan, op 11-05-12 18:38 schreef je:
* jdd-gmane<jdd@dodin.org> [05-11-12 12:32]:
My last tests shows that the ogv video file is read by any firefox (linux or vista at least), but no webphone (I couldn't test firefox on webphone because for some week ff do not work anymore on my samsung s - I have a discussion open on FF fourm, so no need to start this here).
the apple video shows on my Motorola Atrix in Dolphin but not Firefox.
Konqueror v. 4.7.2 on oS 12.1/KDE 4.7.3... ... just rules! First I switched Fx to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10" Most of the demos at https://developer.apple.com/safaridemos/ worked, but video, audio and VR (3D) didn't. Then I started good old Konqueror. (You never know.) It's u-a string /was already/ "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.7.3 Safari/534.34" Amazing! All demos worked, except for VR. -- Harrie Baken - Tekstbureau TekstBaken www.tekstbaken.nl | Registered Linux-user #366560 openSUSE 12.1 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 11.05.2012 12:31, schrieb Basil Chupin:
On 11/05/12 20:00, Wolfgang Rosenauer wrote:
Am 11.05.2012 11:50, schrieb jdd-gmane:
Le 09/05/2012 19:14, jdd-gmane a �crit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot) well...
I have my html5 web page perfectly working in firefox, but this page:
http://www.apple.com/html5/showcase/video/
Apple demo, do not work at all in openSUSE firefox.
Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too Apple is evil!
The above site you mentioned does add a layer above the video for Firefox users by intention to hide the actual video running behind it.
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Is there a way to overcome this?
If it can be applied by Apple then it presumably can be applied by others.
While further testing for something similar I found that this Apple demo site is horribly broken in favour of Safari :-( At first glance it looks basically correct and should work in Firefox as well as it includes a link to a WebM video. But then again they are hiding the video container for Firefox users (probably not by intention though) because their webserver is returning the WebM video as text/plain which makes it unusable by Firefox :-( The reason why on my system I could just override the display:none for the video container and see (and hear) a running video nevertheless is because I'm running our Aurora 14 Firefox build which is able support H.264 if setup correctly. So now it's not clear if Apple intentionally broke Firefox or if they just screwed up setting up their WebM stuff correctly. Probably the latter and they don't care because of the former? Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 11/05/2012 12:00, Wolfgang Rosenauer a écrit :
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Grrrrrrrr and of course ogg do not work on iphones ;-( why do so many people use them :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 11.05.2012 12:59, schrieb jdd-gmane:
Le 11/05/2012 12:00, Wolfgang Rosenauer a écrit :
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Grrrrrrrr
and of course ogg do not work on iphones ;-(
why do so many people use them :-(
thanks jdd
you could try to put safaris user agent string in your browser, so apple believes you're one of those few who use their privacy killer tool. (You can do so using prefbar, for example, or other plugins that allow to switch user agent strings) However, I did so, and the image of the video shows, but the video itself doesn't play... Daniel ----- b.t.w. I didn't investigate further, because apple lost all my sympathy when I bought a mac book pro recently and - after years of beeing a bit jealous on mac users because I "only" have Linux... - I was deeply disapointed by the mac OS. Everything is more complicated there than here, while I always thought, it was at reverse. Instead of telling the system what you want, you have to tell it exactly what you do NOT want, because of all those automatic "intelligent" settings. But the most annoying is apples way to deal with what they still call "privacy"... Apple, Microsoft, Google... all the same f****** s*** -- Daniel Bauer photographer Basel Barcelona professional photography: http://www.daniel-bauer.com personal facebook: http://www.facebook.com/mars.fotografo google+: https://plus.google.com/109534388657020287386 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/11/12 06:59, jdd-gmane pecked at the keyboard and wrote:
Le 11/05/2012 12:00, Wolfgang Rosenauer a écrit :
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Grrrrrrrr
and of course ogg do not work on iphones ;-(
why do so many people use them :-(
thanks jdd
They are lemmings. I fear Apple is becoming the new Microsoft. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Friday, 11 May 2012 07:35 Ken Schneider - openSUSE wrote:
On 05/11/12 06:59, jdd-gmane pecked at the keyboard and wrote:
Le 11/05/2012 12:00, Wolfgang Rosenauer a écrit :
The video is offered in three formats (MP4, WebM, Quicktime) in that order and therefore can play in Firefox but the dynamic code of the site hides the video from you to make you use Safari.
Grrrrrrrr
and of course ogg do not work on iphones ;-(
why do so many people use them :-(
thanks jdd
They are lemmings.
I fear Apple is becoming the new Microsoft.
It's starting to get crackers pissed-off at it enough that more and more viruses/malware/etc are being thrown at it. -- Powered by Slackware 13.37 10:06:33 up 2 days, 16:29, 2 users, load average: 0.61, 0.71, 0.78 Properly read, the Bible is the most potent force for atheism ever conceived. - Isaac Asimov Registered Linux user #214117 at http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* jdd-gmane <jdd@dodin.org> [05-11-12 05:52]:
Le 09/05/2012 19:14, jdd-gmane a écrit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot)
well...
I have my html5 web page perfectly working in firefox, but this page:
http://www.apple.com/html5/showcase/video/
Apple demo, do not work at all in openSUSE firefox.
Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too
Doesn't work in windoz firefox, either, but does in windoz chromium. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/11/2012 07:44 AM, Patrick Shanahan wrote:
* jdd-gmane <jdd@dodin.org> [05-11-12 05:52]:
Le 09/05/2012 19:14, jdd-gmane a écrit :
may be. This do not worry me as long as the main problem is understood (the path of the file have also to be relative to the ServerRoot) well...
I have my html5 web page perfectly working in firefox, but this page:
http://www.apple.com/html5/showcase/video/
Apple demo, do not work at all in openSUSE firefox.
Is this another Apple goddie or is there any free solution? Safari do not seems to exist for Linux and I would like to have my page work on iphone too Doesn't work in windoz firefox, either, but does in windoz chromium. works with chromium in linux
-- Hans Krueger hanskrueger007@roadrunner.com registered Linux user 289023 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (12)
-
Basil Chupin
-
Daniel Bauer
-
Hans Krueger
-
Harrie Baken
-
Insomniactoo
-
jdd-gmane
-
Ken Schneider - openSUSE
-
lynn
-
Martin Helm
-
Patrick Shanahan
-
Per Jessen
-
Wolfgang Rosenauer