11
Kolibri
Re: Streaming Audio Mod
  • 2003/9/18 20:38

  • Kolibri

  • Just popping in

  • Posts: 17

  • Since: 2003/9/5 1


A few questions about Kitsou's streaming audio block.

1) How can I get a pulldown menu under the player in which some channels are predefined?

2)How to add an option to load the player into a new frame which will continue the channel/music while browsing the site.

3)Howto make the media player not start automatically.

4)Can I change the skin of the player?

Thanks in advance.

I already posted a module request at the Module Development Team based on a existing PHPNuke Module...

12
JackJ
Re: Streaming Audio Mod
  • 2003/9/18 21:09

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Quote:

Kolibri wrote:
A few questions about Kitsou's streaming audio block.

1) How can I get a pulldown menu under the player in which some channels are predefined?

2)How to add an option to load the player into a new frame which will continue the channel/music while browsing the site.

3)Howto make the media player not start automatically.

4)Can I change the skin of the player?

Thanks in advance.

I already posted a module request at the Module Development Team based on a existing PHPNuke Module...


I have a radio mod called xp-radio on my site which I downloaded from some XOOPS Site, german or french I think, which you can customise.. Search on google for xp-radio

It has pop up selection etc, add as many stations as you like, although I customised my block not to play on the main page, no point in that, when users browse to other pages the radio goes off..popups are far better..if this is of any use to you let me know if I can help

You can make the block look like you wish with html

macambridge.com


13
JackJ
Re: Streaming Audio Mod
  • 2003/9/18 21:29

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


More for previous

I did not install this as a module, here is my customisation, I am no coder, but it works for me

Edited this, I posted wrong code a min ago

I called this popup.php

<?php
/****************************************************************
* Block XP-Radio Adapté à XOOPS par LLaumgui pour XPerience-Fr *
* http://www.xperience-fr.net *
* *
* Module sous licence gpl *
****************************************************************/
?>
<script language="JavaScript" type="text/JavaScript">
function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;}</script>
<?php
if ($station == capitalfm){$staradio = "www.radio-now.co.uk/l/capitalfmlo.asx";;}
elseif ($station == classicgold) {$staradio = "62.25.96.7/classicgold";}
elseif ($station == powerfm) {$staradio = "streaming.capitalinteractive.co.uk/power_low";}
elseif ($station == smoothjazz) {$staradio = "smoothjazz.com/smooth.asx";}
elseif ($station == radiostorm) {$staradio = "64.236.34.141:80/stream/1023";}
elseif ($station == talksport) {$staradio = "194.162.227.149/audio/talksport.asx";}
elseif ($station == studentbroadcast) {$staradio = "www.sbn.co.uk/SBNLive.asx";;}
elseif ($station == premierchristian) {$staradio = "www.premier.org.uk/streaming/premier.asx";;}
elseif ($station == radioscotland) {$staradio = "62.25.96.7/rrs/";}
elseif ($station == talkgospel) {$staradio = "www.premier.org.uk/streaming/premierg.asx";;}
elseif ($station == rtl2) {$staradio = "cache.yacast.fr/V4/rtl2/rtl2.asx";}
elseif ($station == crfm) {$staradio = "audio.musicradio.com/2CR.asx";}
elseif ($station == ucbeurope) {$staradio = "62.25.96.7/ucbinspiration";}
elseif ($station == ucbbible) {$staradio = "62.25.96.7/ucbbible";}
echo "
<title>$station</title><body bgcolor=\"#000033\"><body oncontextmenu=\"return false\" ondragstart=\"return false\" onselectstart=\"return false\">
<center><img src=\"radio.gif\"><p><p>
<object id=\"NSPlay\" width=\"180\" height=\"50\"
classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"
codebase=\"http://activex.microsoft.com/activex/ ... en/nsmp2inf.cab#Version=5,1,52,701\"
standby=\"Chargement...\"
type=\"application/x-oleobject\" align=\"middle\">
<param name=\"AudioStream\" value=\"-1\">
<param name=\"AutoSize\" value=\"0\">
<param name=\"AutoStart\" value=\"-1\">
<param name=\"AnimationAtStart\" value=\"-1\">
<param name=\"AllowScan\" value=\"-1\">
<param name=\"AllowChangeDisplaySize\" value=\"-1\">
<param name=\"AutoRewind\" value=\"0\">
<param name=\"Balance\" value=\"0\">
<param name=\"BufferingTime\" value=\"5\">
<param name=\"ClickToPlay\" value=\"-1\">
<param name=\"CursorType\" value=\"0\">
<param name=\"CurrentPosition\" value=\"-1\">
<param name=\"CurrentMarker\" value=\"0\">
<param name=\"DisplayBackColor\" value=\"0\">
<param name=\"DisplayForeColor\" value=\"16777215\">
<param name=\"DisplayMode\" value=\"0\">
<param name=\"DisplaySize\" value=\"4\">
<param name=\"Enabled\" value=\"-1\">
<param name=\"EnableContextMenu\" value=\"-1\">
<param name=\"EnablePositionControls\" value=\"-1\">
<param name=\"EnableFullScreenControls\" value=\"0\">
<param name=\"EnableTracker\" value=\"-1\">
<param name=\"Filename\" value=http://".$staradio.">
<param name=\"InvokeURLs\" value=\"-1\">
<param name=\"Language\" value=\"-1\">
<param name=\"Mute\" value=\"0\">
<param name=\"PlayCount\" value=\"1\">
<param name=\"PreviewMode\" value=\"0\">
<param name=\"Rate\" value=\"1\">
<param name=\"SelectionStart\" value=\"-1\">
<param name=\"SelectionEnd\" value=\"-1\">
<param name=\"SendOpenStateChangeEvents\" value=\"-1\">
<param name=\"SendWarningEvents\" value=\"-1\">
<param name=\"SendErrorEvents\" value=\"-1\">
<param name=\"SendKeyboardEvents\" value=\"0\">
<param name=\"SendMouseClickEvents\" value=\"0\">
<param name=\"SendMouseMoveEvents\" value=\"0\">
<param name=\"SendPlayStateChangeEvents\" value=\"-1\">
<param name=\"ShowCaptioning\" value=\"-1\">
<param name=\"ShowControls\" value=\"-1\">
<param name=\"ShowAudioControls\" value=\"-1\">
<param name=\"ShowDisplay\" value=\"0\">
<param name=\"ShowGotoBar\" value=\"0\">
<param name=\"ShowPositionControls\" value=\"0\">
<param name=\"ShowStatusBar\" value=\"-1\">
<param name=\"ShowTracker\" value=\"0\">
<param name=\"TransparentAtStart\" value=\"0\">
<param name=\"VideoBorderWidth\" value=\"0\">
<param name=\"VideoBorderColor\" value=\"0\">
<param name=\"VideoBorder3D\" value=\"0\">
<param name=\"Volume\" value=\"-650\">
<param name=\"WindowlessVideo\" value=\"0\">
<embed type=\"application/x-mplayer2\"pluginspage=\"http://www.microsoft.com/Windows/Down ... nts/Products/MediaPlayer/\"filename=http://62.25.96.7/classicgold src= showcontrols=\"1\" showdisplay=\"0\" showstatusbar=\"1\" width=\"100\" height=\"50\" align=\"middle\">
</embed>
</object><br>
<form name=\"form1\">
<select name=\"Radios\" onChange=\"MM_jumpMenu('parent',this,0)\">
<option selected>Stations</option>
<option value=\"popup.php?station=crfm\">2CRFM</option>
<option value=\"popup.php?station=premierchristian\">Premier Christian</option>
<option value=\"popup.php?station=capitalfm\">Capital FM</option>
<option value=\"popup.php?station=radioscotland\">Radio Scotland</option>
<option value=\"popup.php?station=powerfm\">Power FM</option>
<option value=\"popup.php?station=radiostorm\">Radio Storm 80's</option>
<option value=\"popup.php?station=talkgospel\">Talk Gospel</option>
<option value=\"popup.php?station=smoothjazz\">smooth jazz</option>
<option value=\"popup.php?station=studentbroadcast\">Student Broadcast</option>
<option value=\"popup.php?station=classicgold\">ClassicGold</option>
<option value=\"popup.php?station=talksport\">Talk Sport</option>
<option value=\"popup.php?station=ucbeurope\">UCB Europe</option>
<option value=\"popup.php?station=ucbbible\">UCB Bible</option>

</select>
</form>

<FORM>
<INPUT type=\"button\" value=\"Radio 4 Player\" onClick=\"window.open('http://www.bbc.co.uk/radio/aod/radio4.shtml?fm')\">
</FORM>
<FORM>
<INPUT type=\"button\" value=\"Close Window\" onClick=\"window.close()\">
</FORM><br>


";


?>

//End of popup.php



My Custom Block:-- Hashed code, I am sure you can improve



<center><img border="0" src="radio.gif" width="108" height="96"></p>
<br<br>

<FORM>
<INPUT type="button" value="Popup Select" onClick="window.open('http://www.macambridge.com/popup.php','mywindow','width=220,height=330',scrollbars=0)">
</FORM><br>
<FORM>
<INPUT type="button" value="Radio4 Player" onClick="window.open('http://www.bbc.co.uk/radio/aod/radio4.shtml?fm')">
</FORM>
<br>
<hr>
</center>

//end of hashed code

//copy radio.gif from my site if you wish

A lot of the stuff in the code is not needed, I just pasted it all from the module with my changes. Some of the french stations listed don't have matching "option value=", so they won't appear as a selection. Perhaps a coder could improve this and include real player etc. Internet_Radio for Postnuke is very good if someone could port it

A couple of the radio links are not functional because the stations are off, but you get the idea, nice one to play with?


14
Kolibri
Re: Streaming Audio Mod
  • 2003/9/18 23:14

  • Kolibri

  • Just popping in

  • Posts: 17

  • Since: 2003/9/5 1


JackJ, a big thank you for you!

This code meets the requirements for this moment. Right now I'm fitting it to my needs.

Couldn't mention it enough:

There are two brilliant streaming modules out there for PHPNuke »»» Internet Radio and Internet TV, as well as total admin control, popups, blocks and module...

They can be seen/found on http://www.just4me.nl/

So if anyone has some knowledge and time left to port it...
(Please check the module development team first, they might have accepted this port as a project!, otherwise it's a waste of your precious time!)

15
Kolibri
Re: Streaming Audio Mod
  • 2003/9/21 17:57

  • Kolibri

  • Just popping in

  • Posts: 17

  • Since: 2003/9/5 1


Anyone out there who knows how I can make this work for streaming videos?

Is this just as simple as redefining some of the player settings in the audio block and if so, which settings need to be changed?

Again thanks in advance for all XOOPS users in the XOOPS community reading this question and possibly answering this question!


16
JackJ
Re: Streaming Audio Mod
  • 2003/9/21 21:50

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Glad it helped

I will try playing about with this. I think the current window size needs made bigger, and some other settings changed from 0 to -1

4images gallery integrated into XOOPS by Koudanshi is not just a gallery, but a fairly sophisticated media; mp3; and movie; film, and you name it media streamer as well

I put one small example simple "mov" file on my site gallery in the folder called "Media".

A link to his site is is at the bottom of the gallery page

macambridge.com


For install tips if you are interested try This thread

regards

17
Kolibri
Re: Streaming Audio Mod
  • 2003/9/22 0:21

  • Kolibri

  • Just popping in

  • Posts: 17

  • Since: 2003/9/5 1


Hooyah,

I have it working right now, never thought it would be this easy.

I've changed the window size to 320x240 and changed the rate setting of 1 to 0, it was causing a weird frame inside the window...

JackJ, thanks for the inspiration and your help/suggestions!!

18
snow77
Re: Streaming Audio Mod
  • 2003/9/22 2:43

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Jack, I found it interesting to put 4images in my site, I followed all the steps and added the patch. When I install it says unable to write config file download the install file and upload again. I did this. But that install file just has this line of code:

25 $db_servertype =

After uploading this file I get this error:

Parse error: parse error in /home/infoenla/public_html/bennett2/modules/4images/install.php on line 25

Please,do you know how I can fix this? What should I do?


19
snow77
Re: Streaming Audio Mod
  • 2003/9/22 4:28

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Jack, thanks for the info of 4images, it´s great, I fixed the problem I had, I had to configure the database manually, and so far it works well, now I´m trying to fix the width of how the "module" appears inserted in my theme.

20
limecity
Re: Streaming Audio Mod
  • 2003/9/22 7:17

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


hmm..
anyone got chinese radio stations links?

I got lots of Winamp Shoutcast links
but one question..can it be implement into the script?

Thanks..

Login

Who's Online

65 user(s) are online (30 user(s) are browsing Support Forums)


Members: 0


Guests: 65


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits