Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MyCode] Audio Player
Author Message
Wolfgang2025 Offline
Member
***

Posts: 55
Joined: Apr 2009
Reputation: 0
Post: #1
[MyCode] Audio Player
Spinning kind of gave me the idea when he request a improvement for MyBlogs about adding background music. I came up with this since I think it is the easy way of doing this instead of a full blown plugin and this way HTML does not have to be enabled because it is all MyCode.

This is my 1st MyCode Angel

Admin CP / MyCodes / Add New MyCode

Name what you like ?

Regular Expression

Code:
\[media\](.*?)\[/media\]

Replacement

Code:
<OBJECT ID="MediaPlayer1" 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" width="280" height="46">
<param name="fileName" value="$1">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="$1" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>

Enabled?
Code:
Yes

Save

Some of the parameters can be changed to suit your needs.
07-03-2009, 08:01 AM
Find all posts by this user
krol Offline
Junior Member
**

Posts: 8
Joined: Jul 2009
Reputation: 0
Post: #2
RE: [MyCode] Audio Player
is ok! On a first work is realy good
07-04-2009, 04:33 AM
Find all posts by this user
ghazal Offline
Pluginer, Themer and MyCoder

Posts: 225
Joined: Jun 2009
Post: #3
RE: [MyCode] Audio Player
Very good work

Thanks
07-04-2009, 10:29 AM
Find all posts by this user
blood Offline
Junior Member
**

Posts: 44
Joined: Mar 2009
Reputation: 0
Post: #4
RE: [MyCode] Audio Player
Good, good.
I'm going test it on my fórum.
07-04-2009, 07:53 PM
Visit this user's website Find all posts by this user
faviouz Offline
Member
***

Posts: 231
Joined: Oct 2008
Reputation: 0
Post: #5
RE: [MyCode] Audio Player
Preview please?
07-08-2009, 06:36 AM
Find all posts by this user
Walkman 5.0 Offline
Member
***

Posts: 74
Joined: Mar 2009
Reputation: 0
Post: #6
RE: [MyCode] Audio Player
and where you download music
07-08-2009, 10:06 AM
Visit this user's website Find all posts by this user
Wolfgang2025 Offline
Member
***

Posts: 55
Joined: Apr 2009
Reputation: 0
Post: #7
RE: [MyCode] Audio Player
(07-08-2009 06:36 AM)faviouz Wrote:  Preview please?

Here is the screen shot when you use this MyCode
Code:
[media]http://your-domain.com/forum/music/song.mp3[/media]

Will produce a player like so

[Image: 30ho6pv.jpg]

(07-08-2009 10:06 AM)Walkman 5.0 Wrote:  and where you download music

Any where that you have space where you can live stream from most servers allow or have live streaming for videos or Mp3's I have unlimited bandwidth and more disk space than I could ever use so it is really not a problem.

On another note the player can be embedded and play in the background but I don't recommend doing that. The one thing I can not stand is going to a web site with music that I can not shut off Big Grin
07-08-2009, 11:46 AM
Find all posts by this user
dhfola Offline
Junior Member
**

Posts: 31
Joined: Oct 2008
Reputation: 0
Post: #8
RE: [MyCode] Audio Player
omg thx 001_smile i am going to use it on my forums
07-08-2009, 04:48 PM
Find all posts by this user
BluEditor Offline
Junior Member
**

Posts: 17
Joined: Jul 2009
Reputation: 0
Post: #9
RE: [MyCode] Audio Player
I've been looking for something like this for a long time, but I'm wondering, if I embed it to the background, will the music start over again when I click on a new link, or when I refresh a page?
07-11-2009, 01:46 AM
Find all posts by this user
offtopicpark Offline
Member
***

Posts: 56
Joined: Jul 2009
Reputation: 0
Post: #10
RE: [MyCode] Audio Player
IDK if I would want my members to be able to do that beacse of copyright
07-11-2009, 04:04 AM
Find all posts by this user




User(s) browsing this thread: 1 Guest(s)