Our FamilyForum

FamilyForum Documentation & Help => FamilyForum Features & Guidelines => Code & Stuff => Topic started by: Ken on September 15, 2006, 08:34:11 PM

Title: Embeded Sound File Test
Post by: Ken on September 15, 2006, 08:34:11 PM
This is an embed sound test.
We are working out the operational details for an up comming project that G-GrandMother Mallie is getting ready to do.
I think that you are going to like it.  :bigtmb:

... for this test you should be hearing Little Queenie by Chuck Berry, it should play one time and then stop.
You can make it stop by clicking the 'Esc' button on your keyboard or clicking the Stop button on your browser.
If you want to hear it again click the Refresh button on your browser.


Go down to test #3 to see the finished version of the sound player.









Title: Re: Embeded Sound File Test
Post by: Ken on September 15, 2006, 09:47:21 PM
Test #2


[html<!This code for IE>
<EMBED SRC="http://www.mykimbrell.com/sound_files/chuck_berry_little_queenie" HIDDEN="true" AUTOSTART="true" width="128" height="128">
<!This code for Netscape>
<OBJECT ID="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" width="239" height="179">

<PARAM NAME="FileName" VALUE="http://www.mykimbrell.com/sound_files/chuck_berry_little_queenie">
<PARAM NAME="AnimationatStart" VALUE="false">
<PARAM NAME="TransparentatStart" VALUE="true">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM NAME="ShowControls" VALUE="0">

<Embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
SRC="http://www.mykimbrell.com/sound_files/chuck_berry_little_queenie"
Name=MediaPlayer
ShowControls=0
Width=2
Height=2
</embed>
</OBJECT>[/html]


Title: Re: Embeded Sound File Test
Post by: Ken on September 15, 2006, 10:25:35 PM
Test #3

Lookin goood!  :disted:
The only issue at this point is that you have to click the play button twice to start the sound file.


Title: Re: Embeded Sound File Test
Post by: Ken on September 16, 2006, 05:23:42 AM
Just in case you thought all this was easy here is some of the .php & HTML code I had to wade through and rewrite before getting to the final version of the 'embeded' MP3 player you see above.  :disted:

Code: [Select]
<!This code for IE>
<EMBED SRC="http://www.mykimbrell.com/sound_files/music.m3u" HIDDEN="false" AUTOSTART="false" width="128" height="40">
<Embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
SRC="http://www.mykimbrell.com/sound_files/music.m3u"
Name=MediaPlayer
ShowControls=0
Width=2
Height=2
</embed>
</OBJECT>



[!This code for IE]
[EMBED SRC="http://yourdomian.com/sound/music.m3u" HIDDEN="true" AUTOSTART="true" width="128" height="128"]
[!This code for Netscape]
[OBJECT ID="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" width="239" height="179"]

[PARAM NAME="FileName" VALUE="http://server/path/your-file.asx"]
[PARAM NAME="AnimationatStart" VALUE="false"]
[PARAM NAME="TransparentatStart" VALUE="true"]
[PARAM NAME="AutoStart" VALUE="true"]
[PARAM NAME="ShowControls" VALUE="0"]

[Embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
SRC="http://Yourdomain.com/sound/music.m3u"
Name=MediaPlayer
ShowControls=0
Width=2
Height=2
[/embed]
[/OBJECT]