treehe
Goto Top

object Mediaplayer mit Javascript steuern

Wer kann mir helfen.
Folgendes html file funktioniert mit dem IE ohne problem
mit dem NetScape oder Firefox jedoch nicht.
Weder document.mediaPlayer.URL = url noch document.mediaPlayer.SetFileName(url); gehen bei Netscape und Firefox.


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Webradio</title>
</head>


<p align="center">
<object id="mediaPlayer"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
type="application/x-oleobject"
height="50"
standby="Loading Windows Media Player components..."
width="150"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">
<param NAME="filename" VALUE="http://webradio.246.ch/start.mp3">
<param NAME="autoStart" VALUE="true">
<param NAME="TransparentAtStart" VALUE="false">
<param NAME="AnimationatStart" VALUE="false">
<param NAME="ShowStatusBar" VALUE="true">
<param NAME="ShowControls" VALUE="true">
<param NAME="autoSize" VALUE="false">
<param NAME="displaySize" VALUE="false">
<param NAME="ShowAudioControls" VALUE="true">
<param NAME="ShowPositionControls" VALUE="false">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
id=mediaPlayer
name="mediaPlayer"
src="http://webradio.246.ch/start.mp3"
width="150"
height="50"
transparentatstart="0"
autostart="1"
animationatstart="0"
showcontrols="true"
showaudiocontrols="1"
showpositioncontrols="0"
autosize="0"
showstatusbar="1"
displaysize="false">
</object>

</p>

<form name="meinFormular">
<style="margin-top: 0; margin-bottom: 0">
<p align="center">
<select size="1" name="meinSender" onchange="wechsleSender(this.value)">

<option value="http://webradio.246.ch/start.mp3" > Wählen Sie ein Sender aus der Liste! --------></option>
<option value="http://asx.skypro.ch/radio/internet-128/DRS1.asx" >Schweizer Radio DRS 1</option>
<option value="http://asx.skypro.ch/radio/internet-128/DRS2.asx" >Schweizer Radio DRS 2</option>
<option value="http://asx.skypro.ch/radio/internet-128/DRS3.asx" >Schweizer Radio DRS 3</option>
<option value="http://asx.skypro.ch/radio/internet-128/MW531.asx" >Musikwälle 531</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiocapitalfm.asx" >Capital FM</option>
<option value="http://beemy.catatec.ch:8000/radio_rabe_95.6_fm" >Radio RaBe</option>
<option value="http://dms-cl-011.skypro-media.net/r32-128" >Radio 32</option>
<option value="http://radiobeo.stream.green.ch/radiobeo.wax" >Radio BEO</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiobasel1.asx" >Radio Basel 1</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiobasilisk.asx" >Radio Basilisk</option>
<option value="http://broadcast.infomaniak.net/radiofreiburg-high.mp3" >Radio Freiburg Schweiz</option>
<option value="http://radio.kaiseregg.ch/stream.asx" >Radio Kaiseregg - Sense-Oberland</option>
<option value="http://rottu.stream.green.ch/rottu.wax" >Radio Rottu</option>
<option value="mms:81.201.201.50/iischers" >Iischers Radio - Grüsse aus dem Wallis!</option>
<option value="http://radiori.stream.green.ch/radiori.wax" >Radio Ri</option>
<option value="http://argovia.stream.green.ch/argovia.wax" >Radio Agrovia</option>
<option value="http://195.210.0.134:8000" >Radio Lora</option>
<option value="http://grischa.stream.green.ch/grischa.wax" >Radio Grischa</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiocentral.asx" >Radio Central</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiopilatus.asx" >Radio Pilatus</option>
<option value="http://zuerisee.stream.green.ch/zuerisee.wax" >Radio Zürisee</option>
<option value="http://asx.skypro.ch/radio/internet-128/radio24.asx" >Radio 24</option>
<option value="http://broadcast.infomaniak.ch/energyzuerich-high.mp3" >Energy Zürich</option>
<option value="http://broadcast.infomaniak.ch/energyblack-high.mp3" >Energy Black</option>
<option value="http://broadcast.infomaniak.ch/energylove-high.mp3" >Energy Love</option>
<option value="http://broadcast.infomaniak.ch/energyhot-high.mp3" >Energy Hot</option>
<option value="http://broadcast.infomaniak.ch/energygreat-high.mp3" >Energy Great</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiotop.asx" >Radio TOP</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiotoptwo.asx" >Radio TOP TWO</option>
<option value="http://live-one.dmd2.ch/virus/virus_hi.m3u" >VIRUS Livestream</option>
<option value="http://streaming.sunrise.ch/virus/sha/shake.php" >VIRUS Virus Shake</option>
<option value="http://streaming.sunrise.ch/virus/bou/bounce.php" >VIRUS Virus Bounce</option>
<option value="http://wms01.green.ch/djradio" >DJ Radio Zürich</option>
<option value="http://212.40.5.105/shoutcast/streaming_classic.php" >Radio 105 Classic</option>
<option value="http://212.40.5.105/shoutcast/streaming_105.php" >Radio 105 Orginal</option>
<option value="http://212.40.5.105/shoutcast/streaming_dope.php" >Radio 105 Dope </option>
<option value="http://streaming.sunrise.ch/musicworld/pl/swisspop.m3u" >Radio Swiss Pop</option>
<option value="http://stream1.sunrise.ch:8015" >20 Minuten iP-radio</option>
<option value="mms:
stream.green.ch/lounge-radio" >LOUNGE-RADIO.COM ... this is how we lounge</option>
<option value="http://www.radiocool.ch/live.asx" >Radio Cool</option>
<option value="http://live-two.dmd2.ch:8080/rbp_hi" >Radio Blind Power</option>
<option value="mms:81.201.201.50/kiwi" >KiWi Radio - 40 Jahre Rock & POP</option>
<option value="http://radiochemnitz.stream.green.ch/radiochemnitz.wax" >Radio Chemnitz</option>
<option value="http://funfiles.cc:8000/" >German ULC Radio - Just4fun!</option>
<option value="http://62.75.176.40:80/bigfm-cbr-128" >BIG FM - JugendRadio</option>
<option value="http://dms-cl-011.skypro-media.net/lifechannel-hi?MSWMExt=.asf" >Life Chanal</option>
<option value="http://www.wunsch-radio.de/listen.wax" >WunschRadio</option>
<option value="http://www.radio-wave.ch/radio-wave128.asx" >Radio Wave</option>
<option value="http://lsd.newmedia.tiscali-business.com/bb/redirect.lsc?stream=swr3/livestream.wma&content=live&media=ms" >SWR3 Live</option>
<option value="http://sc1.24server.com:12270" >Lets Hit It - Hits from the 80's 90's and today!</option>
<option value="http://www.lynxradionetwork.com/crikisdn.wax" >The Lynx Classic Hits - 60s,70s,80s,90s and Today!</option>
<option value="http://shoutcast.westmancom.com:8002/" >CKLQ-High Country Channel</option>
<option value="http://www.abc.net.au/streaming/digcountry.asx" >dig Country 1 - Music With Depth</option>
<option value="http://www.1club.fm/go/asx.aspx?station=classcountry&bitrate=hi" >Classic Country</option>
<option value="http://radioio-classical-lo.wm.llnwd.net/radioio_classical_hi" >Radio Classical</option>
<option value="http://www.swissclassic.ch/live/mp3.m3u" >Radio Swiss Classic</option>
<option value="http://www.abc.net.au/streaming/classic/classicfm.asx" >ABC Classic Radio</option>
<option value="http://www.swissradio.ch/streams/6034.asx" >RadioCrezy Classical</option>
<option value="http://www.swissradio.ch/streams/6060.asx" >RadioCrazy Opera</option>
<option value="http://broadcast.infomaniak.net/radiojazz-high.mp3" >Radio Jazz International</option>
<option value="http://stream-1.ssatr.ch:80/rsj/mp3" >Radio Swiss Jazz</option>
<option value="http://smoothjazz.com/scast_hi.m3u" >SMOOTHJAZZ.COM - Smoothest Jazz 24/7</option>
<option value="mms:
arrowfmjazz.atinet.nl/arrowfmjazz" >Arrow fm Jazz - Holland</option>
<option value="http://www.specialradio.ru/10_64k.asx" >Special Radio Jazz - Russland</option>
<option value="http://release.theplatform.com/content.select?pid=MF_N9SByd8YP47_AINhnccWVPkS_6zJ_" >radioioJazz 128k ASX *A1* Stream</option>
<option value="http://www.swissradio.ch/streams/6054.asx" >RadioCrazy Jazz </option>
<option value="http://www.swissradio.ch/streams/6092.asx" >RadioCrazy Modern Jazz</option>
<option value="http://64.236.34.97:80/stream/1012" >Smooth Beats</option>
<option value="http://heydrumnbass.free.fr/drum-and-bass.asx" >Drum And Bass Breakbeat</option>
<option value="http://cocoradio.24server.com/listen128.wmx" >Cocco Radio - The Reggae Channel</option>
<option value="http://64.236.98.50:80/stream/1017" >SKY.FM - Roots Reggae</option>
<option value="http://asx.skypro.ch/radio/internet-128/radiotropic.wax" >Radio Tropic</option>
<option value="http://listen.bmradio.de" >BlackBeats - Rap RnB Hip Hop Soul Regga</option>
<option value="http://213.168.78.212:8000/stream2.m3u" >Rockland - Klassik Rock </option>
<option value="http://160.79.128.61:7724" >SKY.fm - Alternative Diagnosis</option>
<option value="http://streamserver1.radiomelodienet.de:8022" >RMN Radio</option>
<option value="http://s1.global-streaming.de:11600" >Radio 700 - Schlager und Oldies - die richtige Mischung!</option>
<option value="http://www.oldie-radio.de/Files/oldie.asx" >Oldie Radio</option>
<option value="http://www.memoryradio.de:4000/" >memory-Radio</option>
<option value="http://live-one.dmd2.ch/buureradio/buureradio.m3u" >BuureRadio</option>
<option value="http://anjie.adfinis.com:80/" >Volksmusik Net</option>
<option value="http://www.surfmusik.de/media/gfm128.asx" >Radio VHR</option>
<option value="http://205.188.215.231:8010" >SKY.FM - Salsa Stream</option>
<option value="http://radio.batanga.com/WMStream.asx" >Batanga Tango-Argentina Live</option>
<option value="mms:a1202.l2007642484.c20076.g.lm.akamaistream.net/D/1202/20076/v0001/reflector:42484" >WHAL Hallelujah FM 95.7 FM</option>
<option value="http://a198.l1989043698.c19890.g.lm.akamaistream.net/D/198/19890/v0001/reflector:43698" >WGRB Gospel 1390 AM</option>
</p>
</form>
</body>
</html>

<script>
function wechsleSender(url)
{
document.mediaPlayer.URL = url
document.mediaPlayer.SetFileName(url);
}

</script>

Content-ID: 60674

Url: https://administrator.de/forum/object-mediaplayer-mit-javascript-steuern-60674.html

Ausgedruckt am: 22.12.2024 um 07:12 Uhr

treehe
treehe 02.02.2008 um 23:51:10 Uhr
Goto Top
habe mitlerweile eine lösung gefunden die mit jedem browser funktioniert
die lautstärke muss am browser selber verändert werden aber sonst klapt es.

wenn jemand meine lösung möchte schreibe er mir unter

http://webradio.246.ch eine e-mail