ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
<video src="http://robots.arsc.edu/video/boe-bot-emptiness.ogv" controls>
<b>There is supposed to be a video here, but your browser does not support the Ogg Vorbis video format. These videos can be viewed natively from within the Firefox web browser, versions 3.5 and greater.</b>
</video>
This displays the OGV video natively in Firefox just fine, like it is supposed to do. In other browsers it is supposed to just display the error message contained inside the bold tags. The error message displays correctly in Internet Explorer, but when I open the page in Safari, instead of the error message Safari displays a frozen, empty video box.
What would be the simplest solution to this? I'm okay with the video only being viewable in Firefox, but I don't want people visiting with Safari to think that the videos are simply broken.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
Why don't you convert to a format most browsers support, like windows AVI (i know. i know)
I have never even heard of ogv but AVI is supported in FF, IE and probably safari.
Why don't you convert to a format most browsers support, like windows AVI (i know. i know)
I have never even heard of ogv but AVI is supported in FF, IE and probably safari.
Thank you for your suggestion, but in the future please do not use up the zero-reply status of my post unless you have an answer to the question I asked.
I use Ogg Theora because it is my small way of promoting freedom. Mozilla had the courage to support it, and by giving it native support in a popular, cross-platform browser, they made it practically possible for a truly open, patent-free video compression format to be exposed to millions of people. But that doesn't make much difference if none of us developers actually use it.
I don't always have the freedom to support my ideals as I would like, but this time I do.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
Code:
<script language="javascript”>
if (navagator.appName==”Safari”) //Or was it apple Safari?
{
document.write(’Sorry, the video is not supported on your browser’)
}
else {
document.write('<video src="http://robots.arsc.edu/video/boe-bot-emptiness.ogv" controls>
<b>There is supposed to be a video here, but your browser does not support the Ogg Vorbis video format. These videos can be viewed natively from within the Firefox web browser, versions 3.5 and greater.</b>
</video>');
}
</script>
Last edited by smeezekitty; 01-05-2010 at 01:18 AM.
Reason: !!!!!!!!!
<script language="javascript”>
if (navagator.appName==”Safari”) //Or was it apple Safari?
{
document.write(’Sorry, the video is not supported on your browser’)
}
else {
document.write('<video src="http://robots.arsc.edu/video/boe-bot-emptiness.ogv" controls>
<b>There is supposed to be a video here, but your browser does not support the Ogg Vorbis video format. These videos can be viewed natively from within the Firefox web browser, versions 3.5 and greater.</b>
</video>');
}
</script>
Thanks. Correct me if I'm wrong, though: a consequence of the fix is that if the user has javascript turned off, nothing will display at all. (Not even an error message.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.