Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Closed Thread
 
Thread Tools Rating: Thread Rating: 31 votes, 3.42 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-01-2005, 08:18 PM   PM User | #16
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
yes its possible, u can set up a link like this
Code:
<a href="yoursong.mp3" onclick="document.all.music.filename='yoursong.mp3';return false">Play Song</a>
that should work
_Aerospace_Eng_ is offline  
Old 03-05-2005, 11:51 PM   PM User | #17
_=DUFF=_
New to the CF scene

 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
_=DUFF=_ is an unknown quantity at this point
youll probably call me a noob but say i would like it to support video to under the same menu how would i do this???
_=DUFF=_ is offline  
Old 03-06-2005, 12:40 AM   PM User | #18
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
increase the height of the player and instead of songs just put values of the videos, when i have time i will try to make this player cross browser functional, i think i know how just haven't gotten around to it
_Aerospace_Eng_ is offline  
Old 03-06-2005, 01:18 AM   PM User | #19
_=DUFF=_
New to the CF scene

 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
_=DUFF=_ is an unknown quantity at this point
i tried to do that but without any succes the most i got was the player to show but it wouldent reload and play. if you want i can send you the code
_=DUFF=_ is offline  
Old 03-06-2005, 02:16 AM   PM User | #20
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
If you really wanna know "how to do" whatever with the media player, look no further than its SDK... find it here.
__________________
*this message will self destruct in n-seconds*
codegoboom is offline  
Old 03-15-2005, 07:29 PM   PM User | #21
Ferrence
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Ferrence is an unknown quantity at this point
play audio on an embedded wmp by clicking on links

Quote:
Originally Posted by _Aerospace_Eng_
yes its possible, u can set up a link like this
Code:
<a href="yoursong.mp3" onclick="document.all.music.filename='yoursong.mp3';return false">Play Song</a>
that should work
Hi i am having a specific problem with embedding Windows media player in my webpage.

I have the embedded player. And i have a few logo's.

What i want is that when i click on a certain logo the player starts to play a certain file.

If it is possible it should work like the following site. www.nederland.fm

Just to click on something and the music will start to play.

Can anybody help me? I have been googling for over a month now...
Ferrence is offline  
Old 03-15-2005, 07:46 PM   PM User | #22
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
use the same method as you have quoted that i wrote, rather than putting Play Song in between the a tags but your logo in between them using the image tag
_Aerospace_Eng_ is offline  
Old 03-15-2005, 08:57 PM   PM User | #23
Ferrence
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Ferrence is an unknown quantity at this point
Thanks for your reply

However when i do it like that, the song will open in wmp outside the webpage, and i want it to open in the embedded player

probably im doing it wrong, maybe you can help me

i have combined your post into the following code maybe we can work i out

<div align=center>
<p>
<OBJECT id=music height=44 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<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="-1">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="0">
<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>
<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="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<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="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="0">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="-1">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="0">
<param name="WindowlessVideo" value="0">
</OBJECT>
</p>
<p> <a href="rip.m3u" onclick="document.all.music.filename='C:\Documents and Settings\Jurgen\Bureaublad\mp3\';return false">Play Song</a></p>
</div>
Ferrence is offline  
Old 03-15-2005, 09:30 PM   PM User | #24
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
this isn't right
Code:
<a href="rip.m3u" onclick="document.all.music.filename='C:\Documents and Settings\Jurgen\Bureaublad\mp3\';return false">Play Song</a>
where is the m3u playlist relative in position to the page that has the player on it? the filename needs to equal an actual file not a directory, are u saying that doesn't work? try this instead
Code:
<a href="javascript:;" onclick="document.all.music.filename='rip.m3u';return false">Play Song</a>
_Aerospace_Eng_ is offline  
Old 03-16-2005, 07:37 AM   PM User | #25
Ferrence
New to the CF scene

 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Ferrence is an unknown quantity at this point
Thanks it works!!!
now i can build my site, this is what i needed

keep it up
Ferrence is offline  
Old 03-16-2005, 04:38 PM   PM User | #26
Scootertaj
Regular Coder

 
Join Date: Sep 2004
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Scootertaj is an unknown quantity at this point
Nice work Aerospace ! I never could have done that, have you had experience with this kinda stuff? How did you do it?
__________________
My Site
Scootertaj is offline  
Old 03-16-2005, 04:54 PM   PM User | #27
codegoboom
Regular Coder

 
Join Date: Aug 2004
Location: codegoboom@yahoo.com
Posts: 999
Thanks: 0
Thanked 0 Times in 0 Posts
codegoboom is an unknown quantity at this point
Indeed.
damn kids...
__________________
*this message will self destruct in n-seconds*
codegoboom is offline  
Old 03-16-2005, 05:05 PM   PM User | #28
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
do what have the drop down menu change the song of the player? its just simple javascript, i've been teaching myself javascript, and i know how certain things work and what not, but being pretty good in C Programming other programming languages come naturally to me, i've said i would make this cross browser functional just haven't had the time yet, i write a script thought that does the same thing but it doesn't use the object tag it uses the embed tag, here is one that works on most browsers that are on a windows OS, that have windows media player
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>
<div id="jukebox">JUKEBOX<br><br>
<select  id="cancion" onchange="song()" size="1"> 
   <option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
   <option value="http://urltosong1.mp3">Song 1</option>
   <option value="http://urltosong2.mp3">Song 2</option>
   <option value="http://urltosong3.mp3">Song 3</option>
   <option value="http://urltosong4.mp3">Song 4</option>
   <option value="http://urltosong5.mp3">Song 5</option>
   <option value="http://urltosong6.mp3">Song 6</option>
   <option value="http://urltosong7.mp3">Song 7</option>
   <option value="http://urltosong8.mp3">Song 8</option>
   <option value="http://urltosong9.mp3">Song 9</option>
   <option value="http://urltosong10.mp3">Song 10</option>	
</select><br> 
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" 
src="" 
name="MediaPlayer1" 
width="300"
height="70"
controltype="2" 
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</embed></span>
</div>
</body>
</html>
for some strange reason for it to work in the gecko browsers the value to the song file has to be absolute
_Aerospace_Eng_ is offline  
Old 03-17-2005, 04:23 PM   PM User | #29
wenwen8282
New to the CF scene

 
Join Date: Mar 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
wenwen8282 is an unknown quantity at this point
Smile How to play song by song automatically?

undefined
undefined

Hi hi, I would like to say that the above media player codes work miracles. U r really genius man!!! Hahaha :P I would like to enquire whether there are any codes to let the songs play automatically one by one without the users having to press any buttons? Tks a million!!!
wenwen8282 is offline  
Old 03-17-2005, 06:24 PM   PM User | #30
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
yes rather than having mp3 files as the values u can use an .m3u playlist, check out this site any m3u file can be opened in notepad.
_Aerospace_Eng_ is offline  
Closed Thread

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:50 PM.


Advertisement
Log in to turn off these ads.