HTML file strippen voor Radio 3 online stream

Pagina: 1
Acties:
  • 596 views sinds 30-01-2008
  • Reageer

  • Helsie
  • Registratie: Januari 2000
  • Niet online
Allereerst weet ik niet of dit het juiste forum is voor deze vraag, maar ik zit met het volgende probleem.
Op http://3fm.omroep.nl/ staat links onder in de hoek een player waarmee je radio 3 kunt luisteren via internet. Dat vind ik zelf wel interessant, maar de hele dag een volledig internet explorer venster open vind ik irritant. Daarom wil ik dus een html file maken die alleen die player bevat. Blijkbaar is de pagina in verschillende frames:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html>
 <head>
  <title>Radio 3FM</title>
  <meta http-equiv="keywords" content="Radio 3,Radio, Muziek, Music, Drie, FM, Muziekinformatie, Musicinformation, DJ, Disc Jockey, Live, Drie FM, Artiesten, Artists, Frequentie, Ruud de Wild, Ruud, Stenders, Stenders Vroeg, Hilversum, MP3, Wav, Audio, Chart, Charts">
 </head>

 <frameset rows="74,*" border="0" FRAMEBORDER="NO" FRAMESPACING="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" NORESIZE>
  <frame name="topframe" border='0' src="topX.htm" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" SCROLLING="NO" NORESIZE>
  <frameset cols="186,*,12" border="0" FRAMEBORDER="NO" FRAMESPACING="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" NORESIZE>
   <frame name="menu" border='0' src="menux.asp" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" scrolling="no" NORESIZE>
   <frame name="content" border='0' src="fmSite/index.asp" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" SCROLLING="AUTO" NORESIZE>
   <frame name="schuin" border='0' src="Schuin.htm" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" SCROLLING="NO" NORESIZE>
  </frameset>
 </frameset>
</html>

De code van het frame met de player is als volgt:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<html>
 <head>
  <title>Area 3FM</title>
  <style type="text/css">
  <!--
    #mnuBottomLayer{position:absolute;visibility:visible;top:20px;left:0px;z-index:12;}
    #mnuImageMap{position:absolute;visibility:visible;top:0xp;left:0px;z-index:10;}
    #mnuR2D{position:absolute;visibility:visible;top:25px;left:0px;}
    #mnuBackstage{position:absolute;visibility:visible;top:60px;left:0px;}
    #mnuMusic{position:absolute;visibility:visible;top:96px;left:0px;}
    #mnuShop{position:absolute;visibility:visible;top:132px;left:0px;}
    #mnuChat{position:absolute;visibility:visible;top:168px;left:0px;}
    #mnuArrow{position:absolute;visibility:hidden;left:110px;top:45px;}
    #divBottom{position:absolute;visibility:visible;top:0px;left:-2px;height:100%;z-index:10;}
    #tckCnt{clip:rect(0,88,20,0);position:absolute;visibility:visible;z-index:20;height:18px;width:90px;font-family:verdana;font-size:10px;color:white;}
    #ticker{position:absolute;visibility:visible;top:0px;left:0px;z-index:2;height:16px;font-family:verdana;font-size:10px;color:white;}

    #tckProgram{clip:rect(0,168,20,0);position:absolute;visibility:visible;z-index:20;height:18px;width:168px;font-family:verdana;font-size:10px;color:white;}
    #mnuLogoDiv{position:absolute;visibility:visible;top:0px;left:0px;z-index:30;}
    #MainMNU{position:absolute;visibility:visible;left:60px;top:0px;font-family:verdana,arial;font-size:10px;color:red;z-index:50;}

    .NoLine{text-decoration:underline;}
    TD.emptyBG{background:url(images/bono.gif);}
    TD.BG{background:url();}
    .txtSmall{font-family:"verdana,arial";color:white;font-size:9px;}
    SELECT,INPUT{font-family:verdana,arial;font-size:10px;background-color:black;color:white;}
    A{font-family:Verdana;font-size:10px;color:#FF0000;text-decoration:none;}
    A:hover{text-decoration:underline;}
  //-->
  </style>
  <style type="text/css" disabled>
  <!--
    #mnuImageMap{position:absolute;visibility:visible;top:0xp;left:0px;z-index:10;}
    #mnuR2D{position:absolute;visibility:visible;top:25px;left:0px;}
    #mnuBackstage{position:absolute;visibility:visible;top:60px;left:0px;}
    #mnuMusic{position:absolute;visibility:visible;top:96px;left:0px;}
    #mnuShop{position:absolute;visibility:visible;top:132px;left:0px;}
    #mnuChat{position:absolute;visibility:visible;top:169px;left:0px;}
    .txtSmall{font-family:verdana,arial;color:white;font-size:10px;}
  //-->
  </style>
  <base target="content">

  <script language="javascript" src="js/images.js"></script>
  <script>
  <!--
    function setTickerPosition()
    {
        x = 85;
        y = (document.layers)?document.layers["divBottom"].document.anchors["placeHolder"].y+3:document.all["myT"].offsetTop+46;
        LayerMove("tckCnt", x, y);

        x = 5;
        y = (document.layers)?document.layers["divBottom"].document.anchors["placeHolder2"].y-2:document.all["myT"].offsetTop+63;
        LayerMove("tckProgram", x, y);
    }

    function resize(){location.replace(location.href + "?" + Math.random());}
    function shmnu(lname,visstr)
    {
        obj = (document.layers)?document.layers[lname]:document.all[lname].style;
        if(obj) obj.visibility=visstr;
    }

    if(document.all) window.onresize = setTickerPosition;
    else window.onresize = resize;

    function document_onload()
    {
        var imgname = "imgRadiotoday|imgBackstage|imgMusic|imgShop|imgChat|imgEMPTY"
        var normalstate = "images/hmnu_radioToday.gif|images/hmnu_backstage.gif|images/hmnu_music.gif|images/hmnu_shop.gif|images/hmnu_chat.gif|images/spacer.gif"
        var mouseoverstate = "images/hmnu_radioTodayMO.gif|images/hmnu_backstageMO.gif|images/hmnu_musicMO.gif|images/hmnu_shopMO.gif|images/hmnu_chatMO.gif|images/spacer.gif"
        var clickedstate = "images/hmnu_radioTodayMO.gif|images/hmnu_backstageMO.gif|images/hmnu_musicMO.gif|images/hmnu_shopMO.gif|images/hmnu_chatMO.gif|images/spacer.gif"
        iPreload(imgname, normalstate, mouseoverstate, clickedstate);

        setTickerPosition();
        //tickerText(whiteText("test string"));
        tickerMove()
        fillPlayList();
    }

    function LayerMove(Layername,x,y)
    {
        obj = (document.layers)?document.layers[Layername]:document.all[Layername].style;
        if(obj && x) obj.left=x;
        if(obj && y) obj.top=y;
    }

    var tmrTicker = null;
    function tickerMove()
    {
        clearTimeout(tmrTicker);
        obj = (document.layers)?document.layers["tckCnt"].document.layers["ticker"]:document.all["ticker"]
        objS = (document.layers)?obj:obj.style;
        width = (document.layers)?obj.document.width:obj.offsetWidth;
        curLeft = (document.layers)?obj.left:obj.offsetLeft;
        parentWidth = 90;
        if(curLeft<=-width)
        {
            // should set the left coordinate again
            objS.left = parentWidth;
        }
        else
        {
            // slide
            objS.left = --curLeft;
        }
        tmrTicker = setTimeout("tickerMove()", 100);
    }

    function whiteText(txt)
    {
        return "<font style='font-family:verdana,arial;font-size:10px;color:white;' face='verdana,arial' size=1 color='white'>"+txt+"</font>"
    }

    function tickerText(txt)
    {
        obj = (document.layers)?document.layers["tckCnt"].document.layers["ticker"]:document.all["ticker"]
        if(document.layers)
        {
            obj.document.write(txt);
            obj.document.close();
        }
        else
            obj.innerHTML = txt;
    }

    function layerText(txt, Layername)
    {
        obj = (document.layers)?document.layers[Layername]:document.all[Layername];
        if(document.layers)
        {
            obj.document.write(txt)
            obj.document.close()
        }
        else
            obj.innerHTML = txt;
    }

    function DoPlayer(iSongTime, iTrackID, iArtistID, sTrackName, sArtistName, bPopupLink, sOmroepNaam, sOmroepURL, sProgramNaam, sProgramURL)
      {
          var sStr = "";
          sStr += "<nobr>"
          if(sTrackName!="" || sArtistName!="")
          {
              if(iArtistID && iArtistID!="0" && iArtistID!="") sStr += "<a href='fmSite/System/ArtistInfo.asp?id=" + iArtistID + "' class='NoLine'>" + whiteText(sArtistName) + "</a>"
              else sStr += whiteText(sArtistName);
              sStr += " - "
              if(iTrackID && iTrackID!="0" && iTrackID!="") sStr += "<a href='fmSite/System/SongInfo.asp?id=" + iTrackID + "' class='NoLine'>" + whiteText(sTrackName) + "</a>"
              else sStr += whiteText(sTrackName);
          }
          else
          {
              sStr += "Er is momenteel geen song / artist info"
          }
          sStr += "</nobr>"
          tickerText(whiteText(sStr))

          sStr = "<nobr>";
          if(sProgramNaam!="" || sOmroepNaam!="")
          {
              if(sProgramURL && sProgramURL!="") sStr += "<a href='fmSite/Radiotoday/index.asp?id=" + sProgramURL + "' style='text-decoration:none;'>" + whiteText(sProgramNaam) + "</a>"
              else sStr += whiteText(sProgramNaam);
              sStr += " | "
              if(sOmroepURL && sOmroepURL!="") sStr += "<a href='" + sOmroepURL + "' target='_blank' style='text-decoration:none;'>" + whiteText(sOmroepNaam) + "</a>"
              else sStr += whiteText(sOmroepNaam);
          }
          else
          {
              sStr += "Er is momenteel geen programma / omroep info";
          }
          sStr += "</nobr>"
          layerText(whiteText(sStr), "tckProgram")
      }

      function gotoProgram(id)
      {
          if(id>0) parent.content.location = "fmSite/Radiotoday/index.asp?program=" + id
      }

      function PlayMusic(bPlay)
      {
          (bPlay)?parent.schuin.MPlay():parent.schuin.MStop();
          var iObjOn = null, iObjOff = null;
          var newSrcOn = "";
          var newSrcOff = "";
          iKuiken = (document.layers)?document.layers["divBottom"].document.images["playerKuiken"]:document.all["playerKuiken"];
          iObjOn = (document.layers)?document.layers["divBottom"].document.images["plOn"]:document.all["plOn"];
          iObjOff = (document.layers)?document.layers["divBottom"].document.images["plOff"]:document.all["plOff"];
          if(bPlay)
          {
            newSrcOn =   "images/img_playerOn.gif";
            newSrcOff = "images/img_PlayerOffSelected.gif";
          }
          else
          {
            newSrcOn = "images/img_PlayerOnSelected.gif";
            newSrcOff = "images/img_playerOff.gif";
          }
          if(iObjOn) iObjOn.src = newSrcOn;
          if(iObjOff) iObjOff.src = newSrcOff;
          if(iKuiken) iKuiken.src = (bPlay)?"images/aanKuiken.gif":"images/uitKuiken.gif";
      }

      function form_submit(fObj)
      {
          if(fObj["fSearch"].value!="" && fObj["fSearch"].value!=". . .") return true;
          return false;
      }

      function playListItem(programID, programName)
      {
          this.id = programID;
          this.name = programName;
          return this;
      }

      var aPL = new Array();
      aPL[aPL.length] = new playListItem(78, '3FM Nieuws');
aPL[aPL.length] = new playListItem(21, 'Arbeidsvitaminen');
aPL[aPL.length] = new playListItem(53, 'BuZz');
aPL[aPL.length] = new playListItem(80, 'Club Klooster');
aPL[aPL.length] = new playListItem(49, 'Cybertop 50');
aPL[aPL.length] = new playListItem(48, 'De Heer Zij Met U');
aPL[aPL.length] = new playListItem(85, 'De NPS op 3FM met Giel ');
aPL[aPL.length] = new playListItem(22, 'Denk Aan Henk');
aPL[aPL.length] = new playListItem(41, 'DierOpDrie');
aPL[aPL.length] = new playListItem(44, 'Elementaal');
aPL[aPL.length] = new playListItem(32, 'Freak-O-Lympics');
aPL[aPL.length] = new playListItem(38, 'Gouden Uren');
aPL[aPL.length] = new playListItem(37, 'Havermoutshow');
aPL[aPL.length] = new playListItem(65, 'Het Lek');
aPL[aPL.length] = new playListItem(26, 'Isabelle');
aPL[aPL.length] = new playListItem(68, 'JAcobus');
aPL[aPL.length] = new playListItem(25, 'Kort en Klijn');
aPL[aPL.length] = new playListItem(42, 'Leidsekade Live');
aPL[aPL.length] = new playListItem(63, 'Leuk Is Anders');
aPL[aPL.length] = new playListItem(84, 'Maud en Maurice');
aPL[aPL.length] = new playListItem(39, 'Mega Top 100');
aPL[aPL.length] = new playListItem(70, 'NachtBuzz');
aPL[aPL.length] = new playListItem(12, 'Patrick Kicken');
aPL[aPL.length] = new playListItem(45, 'Poster');
aPL[aPL.length] = new playListItem(10, 'Pyjama FM');
aPL[aPL.length] = new playListItem(83, 'Razende Roeland');
aPL[aPL.length] = new playListItem(24, 'Ruuddewild.nl');
aPL[aPL.length] = new playListItem(14, 'Stenders Vroeg');
aPL[aPL.length] = new playListItem(50, 'ThatŽs Live');
aPL[aPL.length] = new playListItem(79, 'The Essential Selection Mix');
aPL[aPL.length] = new playListItem(52, 'Top Of The Pops');
aPL[aPL.length] = new playListItem(73, 'Winston');
aPL[aPL.length] = new playListItem(57, 'X-alt');
aPL[aPL.length] = new playListItem(54, 'X-ion');
aPL[aPL.length] = new playListItem(9, 'Xite');
aPL[aPL.length] = new playListItem(72, 'Xodus');
aPL[aPL.length] = new playListItem(71, 'Xperience');


      function fillPlayList()
      {
          fObj = (document.layers)?document.layers["divBottom"].document.forms["fForm"]:document.all["fForm"];
          fObj["fQuickLinks"][0] = new Option("Kies programma . . .",0)
        for(i=0;i<aPL.length;i++)
            fObj["fQuickLinks"][i+1] = new Option(aPL[i].name, aPL[i].id);
        fObj["fQuickLinks"].selectedIndex=0;
      }
  //-->
  </script>
 </head>

 <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" background="images/bg_left.gif" onLoad="document_onload()" scroll="NO">
  <div id="MainMNU"><a href="fmSite/index.asp">3FM HOME</a> | <a href="fmSite/System/Mail.asp">MAIL 3FM</a></div>

 <div id="tckCnt"><div id="ticker"></div></div>
 <div id="tckProgram"></div>

 <!--<map id="mnuLogo" name="mnuLogo">
     <area SHAPE="POLY" COORDS="20, 5, 90, 50, 5, 80,15,5" HREF="fmSite/index.asp">
 </map>

 <div id="mnuLogoDiv">
   [img]"images/spacer.gif"[/img]
 </div>//-->


  <map id="mnuMap" name="mnuMap">
     <area SHAPE="POLY" COORDS="20, -20, 90, 25, 5, 55,15,-20" HREF="fmSite/index.asp">
     <area SHAPE="POLY" COORDS="0, 65, 84, 25,110, 25,110, 46, 84, 46,  0, 86,  0, 65" HREF="fmSite/Radiotoday/index.asp" onMouseover="iSwap('imgRadiotoday',1)" onMouseout="iSwap('imgRadiotoday',0)" onClick="iClick('imgRadiotoday');LayerMove('mnuArrow',null,45);">
     <area SHAPE="POLY" COORDS="0,102, 84, 60,110, 60,110, 81, 84, 81,  0,123,  0,103" HREF="fmSite/Backstage/index.asp" onMouseover="iSwap('imgBackstage',1)" onMouseout="iSwap('imgBackstage',0)" onClick="iClick('imgBackstage');LayerMove('mnuArrow',null,80);">
     <area SHAPE="POLY" COORDS="0,139, 84, 97,110, 97,110,118, 84,118,  0,160,  0,160" HREF="fmSite/Music/index.asp" onMouseover="iSwap('imgMusic',1)" onMouseout="iSwap('imgMusic',0)" onClick="iClick('imgMusic');LayerMove('mnuArrow',null,116);">
     <area SHAPE="POLY" COORDS="0,176, 84,134,110,134,110,155, 84,155,  0,197,  0,197" HREF="fmSite/Shop/index.asp" onMouseover="iSwap('imgShop',1)" onMouseout="iSwap('imgShop',0)" onClick="iClick('imgShop');LayerMove('mnuArrow',null,152);">
<area SHAPE="POLY" COORDS="0,213, 84,171,110,171,110,192, 84,192,  0,234,  0,234" HREF="http://www.chattv.nl/3fm" TARGET="_blank" onMouseover="iSwap('imgChat',1)" onMouseout="iSwap('imgChat',0)" onClick="iClick('imgChat');LayerMove('mnuArrow',null,188);">
  </map>

  <div id="mnuArrow">
   [img]"images/img_arrowClickedState.gif"[/img]
  </div>

[img]"images/spacer.gif"[/img]
  <div id="mnuBottomLayer">
   <div id="mnuR2D">
    [img]"images/hmnu_radioToday.gif"[/img]
   </div>
   <div id="mnuBackstage">
    [img]"images/hmnu_backstage.gif"[/img]
   </div>
   <div id="mnuMusic">
    [img]"images/hmnu_music.gif"[/img]
   </div>
   <div id="mnuShop">
    [img]"images/hmnu_shop.gif"[/img]
   </div>
    <div id="mnuChat">
    [img]"images/hmnu_chat.gif"[/img]
   </div>
   <div id="mnuImageMap">
    [img]"images/spacer.gif"[/img]
   </div>
  </div>

  <div id="divBottom">
   <form method="post" name="fForm" onSubmit="return form_submit(this)" action="fmSite/System/search.asp">
   <table cellspacing="0" cellpadding="0" height="100%" width="181">
    <tr height="100%" valign="bottom">
    <td valign="bottom">
     <table id="myT" border="0" cellspacing="0" cellpadding="0" width="181" background="images/bg_bottomPlayerZoek.gif" height="134">
      <tr>
       <td height="134" valign="top">
       <script><!--
        document.write("<table border='0' cellspacing='0' cellpadding='0' width='181' height='"+(document.all?152:134)+"'>");
       //--></script>
         <tr>
        <td height="43" width="165" align="right" background>[img]"images/uitKuiken.gif"[/img][img]"images/spacer.gif"[/img]</td>
        <td width="16" valign="middle" background align="right"><a href="javascript:;" onMouseover="window.status=&quot;Play&quot;;return true;" onMouseout="window.status=&quot;&quot;;return true;" onClick="PlayMusic(true);return false;" ALT="Play">[img]"images/img_PlayerOnSelected.gif"[/img]</a><br>
         <a href="javascript:;" onMouseover="window.status=&quot;Stop&quot;;return true;" onMouseout="window.status=&quot;&quot;;return true;" onClick="PlayMusic(false);return false;" ALT="Stop">[img]"images/img_playerOff.gif"[/img]</a>&nbsp;
        </td>
         </tr>
         <tr>
        <td background colspan="2" align="center" valign="top" height="12">
          [img]"images/img_nowOnAir.gif"[/img]<a name="placeHolder"></a>
             </td>
         </tr>
         <tr>
        <td colspan="2" background align="left" valign="top" class="txtSmall" height="22">&nbsp;<a name="placeHolder2"></a></td>
         </tr>
         <tr>
            <td align="right" background colspan="2" valign="bottom" height="12" class="txtSmall"><a href='javascript:;' onMouseover='window.status="Zoek";return true;' onMouseout='window.status="";return true;' onCLick='if(form_submit(document.forms[0])) document.forms[0].submit();return false;'><font style="font-family:verdana,arial;font-size:10px;color:yellow;">Zoek</font></a> <input type="text" size="7" name="fSearch" value=". . ." onFocus="if(this.value=='. . .')this.value=''">&nbsp;</td>
         </tr>
         <tr>
        <td height="25" background colspan="2" align="right" class="txtSmall"><select name="fQuickLinks" style="width:130px;" onChange="gotoProgram(this[this.selectedIndex].value)">
          <option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
          <option></option>
          <option></option>
          <option></option>
         </select>&nbsp;</td>
         </tr>
         <tr><td></td></tr>
        </table>
       </td>
      </tr>
     </table>
    </td>
    </tr>
   </table>
   </form>
  </div>

<script language="javascript">
<!--
    var sString = "";
    if(navigator.platform.indexOf("Mac")>=0 && navigator.appName.indexOf("Explorer")>=0)
    {
           sString = "<IFRAME FRAMEBORDER=0 SCROLLING=NO SRC='Player_ClientMAC.asp' width='0' height='0'></IFRAME>";
    }
    else
    {
        sString = "<APPLET code='PlayerApplet.class' width='0' height='0' MAYSCRIPT>"
        sString += "<PARAM name='interval' value='30'></PARAM>"
        sString += "<param name='JSFunction' value='DoPlayer'></param>"
        sString += "<param name='url' value='Player_Client.asp'></param>"
        sString += "<param name='frame' value='menu'></param>"
        sString += "</APPLET>"
    }
    document.write(sString);


//-->
</script>
 </body>
</html>

Ik zal zometeen even mijn eerste probeersel plaatsen (anders wordt het topic begin zo lang).

  • Marcj
  • Registratie: November 2000
  • Laatst online: 17:21
Om af te spelen verwijst hij naar schuin.htm, om daar de functio MPlay te starten:
code:
1
2
3
4
5
6
7
8
9
10
11
function MPlay()
   {
        if(MSIE||!Mac) document.MediaPlayer.Play();
        else document.MediaPlayer.DoPlayPause();
   }

   function MStop()
   {
        if(MSIE||!Mac) document.MediaPlayer.Stop();
        else document.MediaPlayer.DoStop();
   }

Ook dit is belangrijk
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if(MSIE || !Mac)
    {
        str += '<OBJECT ID="MediaPlayer" WIDTH=1 HEIGHT=1 CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE="http://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=5,1,51,415" standby="Loading Microsoft Media Player components..." type="application/x-oleobject">'
        str += '<PARAM NAME="AutoStart" VALUE=false>'
        str += '<PARAM NAME="FileName" VALUE="http://www.omroep.nl/radio3/live20.asx">'
        str += '<PARAM NAME="ControlType" VALUE=0>'
        str += '<EMBED Type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp" src="http://www.omroep.nl/radio3/live20.asx" name="MediaPlayer" AutoStart=0 ShowControls=0 width=2 height=2>'
        str += '</EMBED>'
        str += '</OBJECT>'
    }
    else
    {
        str += '<object id="MediaPlayer" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=2 width=2 border=0>'
        str += '<param name="AutoStart" value=false>'
        str += '<param name="SRC" value="pnm://streams.omroep.nl:7090/radio3/3fmleader.ra">'
        str += '<param name="controls" value="StatusField">'
        str += '<embed src="pnm://streams.omroep.nl:7090/radio3/live.ra" console="VMH" type="audio/x-pn-realaudio-plugin" name="MediaPlayer" controls="StatusField" autostart="false" hidden=false height=2 width=2>'
        str += '</embed>'
        str += '</object>'
    }

hopelijk kun je er wat uit wijs worden :)

  • Helsie
  • Registratie: Januari 2000
  • Niet online
Op dinsdag 19 februari 2002 08:49 schreef Marcj het volgende:
Om af te spelen verwijst hij naar schuin.htm, om daar de functio MPlay te starten:

hopelijk kun je er wat uit wijs worden :)
Die schuin.htm kan ik niet openen, dan crasht mijn IE...
Hoe kan ik bijv een frame maken dat schuin meteen opent met de parameters dat ie moet playen?
Ik heb nu bijv al zonder ook maar 1 html file te wijzigen:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
 <head>
  <title>Radio 3FM</title>
  <meta http-equiv="keywords" content="Radio 3,Radio, Muziek, Music, Drie, FM, Muziekinformatie, Musicinformation, DJ, Disc Jockey, Live, Drie FM, Artiesten, Artists, Frequentie, Ruud de Wild, Ruud, Stenders, Stenders Vroeg, Hilversum, MP3, Wav, Audio, Chart, Charts">
 </head>

 <frameset rows="74,*" border="0" FRAMEBORDER="NO" FRAMESPACING="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" NORESIZE>
  <frameset cols="186,*,12" border="0" FRAMEBORDER="NO" FRAMESPACING="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" NORESIZE>
   <frame name="menu" border='0' src="http://3fm.omroep.nl/menux.asp" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" scrolling="no" NORESIZE>
   <frame name="schuin" border='0' src="http://3fm.omroep.nl/Schuin.htm" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" SCROLLING="NO" NORESIZE>
  </frameset>
 </frameset>
</html>

Het resultaat staat hier.
Zoals je ziet staat dan het java menu dat in menux.asp wordt opgeroepen er nog overheen. Maar wat ik nu heb gedaan is dus al vrij aardig, zonder ook maar 1 file van 3fm (behalve de frameset ;)) aan te passen.

  • Helsie
  • Registratie: Januari 2000
  • Niet online
Shit, nu kan ik die schuin.htm wel openen.
Alle moeite voor niks dus, aangezien de locatie van de stream gewoon http://www.omroep.nl/radio3/live20.asx is. :)
Die kan ik gewoon in mediaplayer openen :)
Marcj, Bedankt voor de moeite in elk geval!

Voor de geïnteresseerden, die van ID&T radio is:
mms://213.133.38.55/id-t

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

P&W -> W&G lijkt me een html ding, niet programmeren...