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!
You are not logged in. Please login or register.
PunBB Forums → Feature requests → 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!
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!
hum 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.
<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>
OK .... so .... I see you like options
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.
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!
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 ...)
PunBB Forums → Feature requests → About the online music player!
Powered by PunBB, supported by Informer Technologies, Inc.