|
|
|
|
![]() ![]() |
Jan 3 2007, 08:36 AM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 31-August 06 From: Singapore Member No.: 29,189 |
There is a problem with internet radio streaming in firefox, it seems to be working well in IE but in firefox it just does not play at all. This is the code I am using:
CODE <object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="player" width="280" height="50"> <param name="url" value="someurl"/> <param name="src" value="someurl"/> <param name="showcontrols" value="true"/> <param name="showstatusbar" value="true"/> <param name="autostart" value="true"/> </object> <object type="video/x-ms-wmv" data="someurl" width="280" height="50"> <param name="src" value="someurl"/> <param name="autostart" value="true"/> <param name="controller" value="true"/> <param name="showstatusbar" value='1'/> </object> someurl in the link stands for the streaming .asx file. Can some expert in media API tell me what can I do to make this code work for Firefox and IE 7? Thanks in advance. This post has been edited by darran: Jan 4 2007, 10:49 AM |
|
|
|
Jan 4 2007, 05:44 AM
Post
#2
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 95 Joined: 4-October 06 Member No.: 31,075 |
Try using another tag, like embed, and see if that will then play on FF. That's normally what I use with Quicktime files. Yes, not fancy, but it plays on any browser.
|
|
|
|
Jan 4 2007, 10:50 AM
Post
#3
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 31-August 06 From: Singapore Member No.: 29,189 |
<Embed> instead of <Object>?
Is <Embed> recognised on other browsers such as Safari and Opera? I do know that it works for IE though |
|
|
|
Jan 5 2007, 01:46 AM
Post
#4
|
|
|
-=Hybrid Bus=- ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 744 Joined: 2-November 05 From: My hybrid bus (in NYC), a computer Member No.: 13,709 ![]() |
The <object> tag works specifically in IE (and Netscape, which incudes and activeX plugin). The main reason it doesn't work in Firefox is because of the same reason Firefox is safer than IE: Firefox just doesn't support ActiveX controls, which are embedded in a document with the <object> tag.
This post has been edited by jlhaslip: Jan 5 2007, 04:23 AM |
|
|
|
Jan 6 2007, 03:26 AM
Post
#5
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 31-August 06 From: Singapore Member No.: 29,189 |
So <object> is containing a plugin which is not viewable for Firefox I presume? What does <embed> contain? Does it contain ActiveX as well which will not be viewable by Firefox too?
|
|
|
|
Jan 6 2007, 11:27 PM
Post
#6
|
|
|
-=Hybrid Bus=- ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 744 Joined: 2-November 05 From: My hybrid bus (in NYC), a computer Member No.: 13,709 ![]() |
So <object> is containing a plugin which is not viewable for Firefox I presume? What does <embed> contain? Does it contain ActiveX as well which will not be viewable by Firefox too? I don't know exactly how Firefox handles the <object> tag, but the basic idea is that Firefox won't render it. I am guessing that if you load a page that contains an <object>, then Firefox will just ignore it. The alternative to <object> for firefox is probably <embed>, whose usage I am not totally familiar with. |
|
|
|
Jan 7 2007, 12:41 AM
Post
#7
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,993 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Although this Embed an Object Hack tutorial deals with Flash, use a similar approach and you should get the audio to work regardless of the Browser.
The Hack is to use both an object and an embed tag together. Unfortunately, this seems to be a universally acceptable method of incorporating "embedded objects". The downside is that the page won't validate, so unless it is imperative that the page is (x)html valid, this seems to be the method to use. |
|
|
|
Jan 7 2007, 04:49 AM
Post
#8
|
|
|
-=Hybrid Bus=- ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 744 Joined: 2-November 05 From: My hybrid bus (in NYC), a computer Member No.: 13,709 ![]() |
Although this Embed an Object Hack tutorial deals with Flash, use a similar approach and you should get the audio to work regardless of the Browser. The Hack is to use both an object and an embed tag together. Unfortunately, this seems to be a universally acceptable method of incorporating "embedded objects". The downside is that the page won't validate, so unless it is imperative that the page is (x)html valid, this seems to be the method to use. That method does work. I have seen that done many times. I may look into this a bit more for you; I'll probably try find a site that uses one or the other implementation of embedded objects. |
|
|
|
Jan 7 2007, 01:55 PM
Post
#9
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 31-August 06 From: Singapore Member No.: 29,189 |
What is the difference between flash and asx? Is it simply the file extension? I don't think people want to validate a web player page. Hopefully you can find a site which uses this
|