Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Problems With Media Player Plugin and Firefox
Old 02-11-2007, 06:10 AM Problems With Media Player Plugin and Firefox
Junior Talker

Posts: 2
Trades: 0
Hello all,
at the moment I'm working at a Private website, and I want to insert a livestream of a radio station, there for I used the ActiveX Plugin of the Windows Media Player. With Internet Explorer the wohloe thing works perfect, but in Firefox it plays the music and you can't see the player properly.

the website is: http://home.arcor.de/eggat

and the code for the plugin is:
Code:
OBJECT ID="WMPlayer" CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" width="160" height="27" CODEBASE= "http://activex.microsoft.com/activex...sion=6,4,5,715">
                      <PARAM NAME="FileName" VALUE="http://www.radiogong.de/live/live.m3u" />
                      <PARAM NAME="TransparentAtStart" Value="true" />
                      <PARAM NAME="AutoStart" Value="true" />
                      <PARAM NAME="AnimationatStart" Value="false" />
                      <PARAM NAME="ShowControls" Value="true" />
                      <PARAM NAME="ShowStatusBar" Value="false" />
                      <PARAM NAME="autoSize" Value="false" />
                      <PARAM NAME="displaySize" Value="false">
                      <PARAM NAME="ShowAudioControls" Value="true" />
                      <PARAM NAME="ShowPositionControls" Value="false" />
                      <PARAM NAME="AutoRewind" Value="true">
                      <embed type="application/x-mplayer2" 
pluginspage="http://www.microsoft.com/windows/med...ad/default.asp" 
name="MediaPlayer"
width="160" 
height="27"
src="http://www.radiogong.de/live/live.m3u" 
allowchangedisplaysize="0" 
animationatstart="0" 
autorewind="1" 
autosize="0" 
autostart="1" 
balance="0" 
baseurl="" 
clicktoplay="0"  
enablecontextmenu="0" 
enablefullscreencontrols="0" 
enablepositioncontrols="1" 
enabletracker="0" 
invokeurls="0"
mute="0" 
selectionend="-1" 
selectionstart="0" 
showaudiocontrols="1" 
showcaptioning="1" 
showcontrols="1" 
showdisplay="0" 
showgotobar="0" 
showpositioncontrols="0" 
showstatusbar="0" 
showtracker="0" 
transparentatstart="0" 
volume="0" 
> </embed>
</OBJECT>
Would be nice if someone could help me.
And sorry for my bad English...

Eggat
Eggat is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-11-2007, 09:31 AM Re: Problems With Media Player Plugin and Firefox
Super Talker

Posts: 136
Location: Michigan
Trades: 1
Your answer is here
http://forums.mozillazine.org/viewtopic.php?t=206213

Its an ActiveX plugin issue with firefox

Hope this helps you
killerbud99 is offline
Reply With Quote
View Public Profile Visit killerbud99's homepage!
 
Old 02-11-2007, 11:43 AM Re: Problems With Media Player Plugin and Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yeah.. and having the ActiveX plugin then exposes FF to ALL the nasty viruses, worms and malicious drive-by browser hi-jacking that plagues IE. I would NEVER install that plugin !

Why not use a player that does NOT require a potentially dangerous plugin - or offer a different alternative for non-IE users.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-11-2007, 12:33 PM Re: Problems With Media Player Plugin and Firefox
Super Talker

Posts: 136
Location: Michigan
Trades: 1
I have to agree with the Lady on this one.

The minute you browse a site that uses ActiveX plugins to install viruses to your pc your going to hate yourself unstopable popups that you cant get rid of.
killerbud99 is offline
Reply With Quote
View Public Profile Visit killerbud99's homepage!
 
Old 02-11-2007, 05:28 PM Re: Problems With Media Player Plugin and Firefox
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
I'm not saying this is a perfect solution, but it works. It's an shtml conditional include, which tests whether the browser is IE, FF or something else, and gives the appropriate code for that browser. I've also made the link to our radio feed open in a popup, so the stream doesn't have to reload when people move from page to page. I've also created an M3U playlist file, which contains the link to the source of the stream.

JS to include in header of every page the link is on, or external JS file:
Code:
<script type="text/javascript">
<!--
function popup(mylink, windowname){if (! window.focus)return true;var href;if (typeof(mylink) == 'string') href=mylink;else href=mylink.href;window.open(href, windowname, 'width=300,height=50,scrollbars=yes');return false;}
//-->
</script>
Link:
Code:
<a href="url_of_browser_test_file_here" 
   onclick="return popup(this, 'notes')"> Radio</a>
SSI for bowser test file (I use index.shtml in subfolder media)

Code:
<!--#if expr="${HTTP_USER_AGENT} = /MSIE/" -->
<!--#set var="ret" value="ie" -->
<!--#elif expr="${HTTP_USER_AGENT} = /Mozilla/ && $brtype !=/msie/" -->
<!--#set var="ret" value="ff" -->
<!--#else -->
<!--#set var="ret" value="ob" -->
<!--#endif -->
<!--#include file="$ret.txt" -->
Now 3 text files are required: ie.txt (with settings for IE), ff.txt (with settings for FF) and ob.txt (with settings for other browsers).

M3U file simply contains the IP of the stream, or URL thereof.

my ff.txt file simply says:
Code:
<embed src="stream.m3u" autostart="true" loop="0" type="application/x-mplayer2" height="45" width="300">
</embed>
Above will replace the whole SSI conditional statement for any browser which tests true for returning Mozilla as the user agent.

Yes, I like SSI. And no, this is probably not the perfect solution.

Last edited by RanaD; 02-11-2007 at 05:31 PM..
RanaD is offline
Reply With Quote
View Public Profile
 
Old 02-12-2007, 05:49 AM Re: Problems With Media Player Plugin and Firefox
Junior Talker

Posts: 2
Trades: 0
Thx, first of all for all answers :-)
The reason why I used the Windows Media Plugin was just because everybody who has Windows could use it, without Downloading anything. But as I see there are some problems with it
Is there any other Player I could use (Flash Player?) that supports live streams of webradios, that most people have, or is there no alternative?
The thing with the popup perhaps wouldn't be that bad, but I'd perfer to integrate the player in the website...
Eggat is offline
Reply With Quote
View Public Profile
 
Old 02-12-2007, 04:40 PM Re: Problems With Media Player Plugin and Firefox
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
Ah! I found the original place from which I adapted my code

http://www.scriptwell.net/howtoplaysound.htm

Also found another site which looked interesting, but I don't like too much JS

http://www.phon.ucl.ac.uk/home/mark/audio/play.htm
RanaD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problems With Media Player Plugin and Firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24907 seconds with 12 queries