Topic: About the online music player!

How can I make a embeded online player through BBCODE when I post my topic!

Dose anybody have any ideas??

Thanks a lot!

2

Re: About the online music player!

http://www.sortons.net/forum/viewtopic. … 89#p101489

like this ?

3 (edited by Ocucsu 2005-09-16 09:06)

Re: About the online music player!

Nope,    what I mean is there will be a mediaplayer interface embeded on the post and you can control the player by pressing the pause or stop button directly, not just a link!

4

Re: About the online music player!

hum smile but I don't see the difference : people with my mod can "press / pause / play" : it's not a popup, but a dhtml layer. Now you can by playing with parser.php do appear directly the player inside your thread : but warning it becomes easy for the final user.

Re: About the online music player!

<code>
<OBJECT
  ID="mediaPlayer"
  CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
  CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/
    nsmp2inf.cab#Version=5,1,52,701"
  // (The above two lines should be joined as one line.
  // They have been split for formatting purposes.)
  STANDBY="Loading Microsoft Windows Media Player components..."
  TYPE="application/x-oleobject">
  <PARAM NAME="fileName" VALUE="http://msdn.microsoft.com/
    downloads/samples/Internet/imedia/netshow/smedia/NS3/JavaScript/
    Buttons/control.asx">
  // (The above three lines should be joined as one line.
  // They have been split for formatting purposes.)
  <PARAM NAME="animationatStart" VALUE="true">
  <PARAM NAME="transparentatStart" VALUE="true">
  <PARAM NAME="autoStart" VALUE="true">
  <PARAM NAME="showControls" VALUE="true">
</OBJECT>
</code>

I don't HAVE a signature, ok?

6

Re: About the online music player!

OK .... so .... I see you like options smile

1. open parser.php


2. after

    '#\[email\](.*?)\[/email\]#',
    '#\[email=(.*?)\](.*?)\[/email\]#',

Add

    '#\[player=(.*?)\](.*?)\[/player\]#',

3. Find

    '<a href="mailto:$1">$1</a>',
    '<a href="mailto:$1">$2</a>',

Add after

'<OBJECT ID="mediaPlayer" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject"><PARAM NAME="fileName" VALUE="http://msdn.microsoft.com/downloads/samples/Internet/imedia/netshow/smedia/NS3/JavaScript/Buttons/control.asx"><PARAM NAME="animationatStart" VALUE="true"><PARAM NAME="transparentatStart" VALUE="true"><PARAM NAME="autoStart" VALUE="true"><PARAM NAME="showControls" VALUE="true"></OBJECT>',

BUT BUT BUT ...

As I don't see the code to put the value of the url of media ... can do nomore.

7

Re: About the online music player!

This is very cool.

How could this be arranged so that what's between the bbcode markers would become the file or stream to be played?

example:

[player]http://www.domain.org/music/file.mp3[/player]

this would indeed be a superb addition to punbb!

8

Re: About the online music player!

I have done this ... example http://www.sortons.net/forum/viewtopic. … 42#p104242

I use [wmv] url of my mp3 [/wmv]  ... but you can do all you want (Quicktime / Flash ...)