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 04-22-2005, 06:27 AM   PM User | #61
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
I took out all references to https and replaced with http, but still get the message.

I though the OBJECT tags were causing the message. I'll check back on the file later to see if the message dissapears, since I recal that happening before. Is it possible my server needs time to authenticate or something??
kippekai is offline  
Old 04-22-2005, 06:48 AM   PM User | #62
_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
What url are you referencing? Its the https url that is calling up the warning. This url however doesn't return the warning
_Aerospace_Eng_ is offline  
Old 04-22-2005, 07:17 AM   PM User | #63
kippekai
New to the CF scene

 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
kippekai is an unknown quantity at this point
Yeah, I'm all screwed up, but I think I got right now. I took out the HTTPS and replaced the urls with HTTP. So now it seems to be working fine.

I'm trying out different codes for embedding, so this link may get screwy.

Thanks for helpin such a noob.
kippekai is offline  
Old 05-01-2005, 11:50 AM   PM User | #64
riech520
New to the CF scene

 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
riech520 is an unknown quantity at this point
I really luv your code!!
and I just have one question, but I don't know if you answered it yet.
Is there a way to randomly play a song in the beginning when the webpage is opened instead of having the person choose a song from the list??
riech520 is offline  
Old 05-01-2005, 12:04 PM   PM User | #65
_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
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">
<title>Random mp3 Music Player</title>
<script type="text/javascript">
<!--
nummp3 = 10
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1))
mp3=("song1.mp3")
if (x == (2))
mp3=("song2.mp3")
if (x == (3))
mp3=("song3.mp3")
if (x == (4))
mp3=("song4.mp3")
if (x == (5))
mp3=("song5.mp3")
if (x == (6))
mp3=("song6.mp3")
if (x == (7))
mp3=("song7.mp3")
if (x == (8))
mp3=("song8.mp3")
if (x == (9))
mp3=("song9.mp3")
if (x == (10))
mp3=("song10.mp3")
//-->
</script>
</head>

<body>
<script type="text/javascript">
<!--
document.write('<embed type="application/x-mplayer2" '
+'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" '
+'src="'+mp3+'" '
+'name="MediaPlayer1" '
+'width="300" '
+'height="69" '
+'controltype="2" '
+'showcontrols="1" '
+'showstatusbar="1" '
+'autostart="true">'
+'</embed>');
//-->
</script>
</body>
</html>
_Aerospace_Eng_ is offline  
Old 05-01-2005, 08:30 PM   PM User | #66
riech520
New to the CF scene

 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
riech520 is an unknown quantity at this point
Oh..
I was wondering if I could keep the drop down list AND have a song started playing in the beginning..
thanks anyway though!!!
riech520 is offline  
Old 05-01-2005, 08:38 PM   PM User | #67
_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
Quote:
Originally Posted by riech520
I really luv your code!!
and I just have one question, but I don't know if you answered it yet.
Is there a way to randomly play a song in the beginning when the webpage is opened instead of having the person choose a song from the list??
I had a feeling you were going to say that, in the future, please be clear on what exactly it is that you want. This could have saved both of us another post.
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">
<title>Random mp3 Music Player</title>
<style type="text/css">
<!--
#jukebox {
text-align:center;
}
-->
</style>
<script type="text/javascript">
<!--
nummp3 = 10
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1))
mp3=("song1.mp3")
if (x == (2))
mp3=("song2.mp3")
if (x == (3))
mp3=("song3.mp3")
if (x == (4))
mp3=("song4.mp3")
if (x == (5))
mp3=("song5.mp3")
if (x == (6))
mp3=("song6.mp3")
if (x == (7))
mp3=("song7.mp3")
if (x == (8))
mp3=("song8.mp3")
if (x == (9))
mp3=("song9.mp3")
if (x == (10))
mp3=("song10.mp3")
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='69' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>

<body>
<div id="jukebox">JUKEBOX<br><br>
<select  id="cancion" onchange="song()" size="1"> 
   <option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
   <option value="http://song1.mp3">Song 1</option>
   <option value="http://song2.mp3">Song 2</option>
   <option value="http://song3.mp3">Song 3</option>
   <option value="http://song4.mp3">Song 4</option>
   <option value="http://song5.mp3">Song 5</option>	
   <option value="http://song6.mp3">Song 6</option>	
   <option value="http://song7.mp3">Song 7</option>	
   <option value="http://song8.mp3">Song 8</option>	
   <option value="http://song9.mp3">Song 9</option>
   <option value="http://song10.mp3">Song 10</option>	
</select><br><br>
<span id="music1">
<script type="text/javascript">
<!--
document.write('<embed type="application/x-mplayer2" '
+'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" '
+'src="'+mp3+'" '
+'name="MediaPlayer1" '
+'width="300" '
+'height="69" '
+'controltype="2" '
+'showcontrols="1" '
+'showstatusbar="1" '
+'autostart="true">'
+'</embed>');
//-->
</script>
</span>
</div>
</body>
</html>

Last edited by _Aerospace_Eng_; 05-01-2005 at 08:41 PM..
_Aerospace_Eng_ is offline  
Old 05-01-2005, 08:46 PM   PM User | #68
riech520
New to the CF scene

 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
riech520 is an unknown quantity at this point
I'm so sorry....
but thanks for the big help!!!
riech520 is offline  
Old 05-10-2005, 12:33 PM   PM User | #69
ogmium
New to the CF scene

 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ogmium is an unknown quantity at this point
M3U v ASX

I have been trying to set up a player which can be used in Active Desktop to play back local files from a playlist held on the local drive as a screensaver/desktop and am experiencing some issues:

I have seen that the M3U format for the playlist is recommended earlier. I have been using ASX type in the format which Microsoft show on their web site along the lines of:

<ASX version = "3.0">
<TITLE>Basic Playlist Demo</TITLE>
<REPEAT>

<ENTRY>
<TITLE>LIST1</TITLE>
<AUTHOR>LANDSCAPE</AUTHOR>
<COPYRIGHT>(c)2005 Landscape Channel</COPYRIGHT>
<REF HREF = "c:\screensaver\L0036.MPG" />
</ENTRY>
<ENTRY>
<TITLE>LIST1</TITLE>
<AUTHOR>LANDSCAPE</AUTHOR>
<COPYRIGHT>(c)2005 Landscape Channel</COPYRIGHT>
<REF HREF = "c:\screensaver\L0006DVD.MPG" />
</ENTRY>
<ENTRY>
<TITLE>LIST1</TITLE>
<AUTHOR>LANDSCAPE</AUTHOR>
<COPYRIGHT>(c)2005 Landscape Channel</COPYRIGHT>
<REF HREF = "c:\screensaver\L0005DVD.MPG" />
</ENTRY>

</REPEAT> </ASX>

What is the benefit of M3U as against ASX?

However this has a number of problems - fade to black flips through white at the end of every clip and we use MPG and WMV files. We want to deliver a new list every day to our users who cache the files on their local hard drive using some management software.

Second problem is startup is at the same point if you stop the player again. We would like it to start where you left off - is that possible?

regards

Nick
Landscape
ogmium is offline  
Old 05-11-2005, 09:39 PM   PM User | #70
aaroncavanaugh2
New Coder

 
Join Date: Feb 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
aaroncavanaugh2 is an unknown quantity at this point
Hi AerospaceEng,

Hi AerospaceEng,
The original post you made with the dropdown list. I want to use this but with WMV files. The version posted there does not work with WMV files. I tried changing the classID and that does not work it won't even start playing the files. Will you help me?

Obviously I changed the height and width. Can play mpeg just not wmv.

Nevermind. I uploaded it to the server and it worked fine.

Thanks. God Bless.

Aaron.

Last edited by aaroncavanaugh2; 05-12-2005 at 02:15 AM..
aaroncavanaugh2 is offline  
Old 05-12-2005, 01:07 PM   PM User | #71
bluedoglov
New to the CF scene

 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
bluedoglov is an unknown quantity at this point
Hi,
I am using this code on my web site. I would like to ramdomly continue to have songs play after the first song. How is this done??

Thanks,

Michele

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">
<title>Random mp3 Music Player</title>
<style type="text/css">
<!--
#jukebox {
text-align:center;
}
-->
</style>
<script type="text/javascript">
<!--
nummp3 = 10
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1))
mp3=("song1.mp3")
if (x == (2))
mp3=("song2.mp3")
if (x == (3))
mp3=("song3.mp3")
if (x == (4))
mp3=("song4.mp3")
if (x == (5))
mp3=("song5.mp3")
if (x == (6))
mp3=("song6.mp3")
if (x == (7))
mp3=("song7.mp3")
if (x == (8))
mp3=("song8.mp3")
if (x == (9))
mp3=("song9.mp3")
if (x == (10))
mp3=("song10.mp3")
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='69' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>

<body>
<div id="jukebox">JUKEBOX<br><br>
<select  id="cancion" onchange="song()" size="1"> 
   <option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
   <option value="http://song1.mp3">Song 1</option>
   <option value="http://song2.mp3">Song 2</option>
   <option value="http://song3.mp3">Song 3</option>
   <option value="http://song4.mp3">Song 4</option>
   <option value="http://song5.mp3">Song 5</option>	
   <option value="http://song6.mp3">Song 6</option>	
   <option value="http://song7.mp3">Song 7</option>	
   <option value="http://song8.mp3">Song 8</option>	
   <option value="http://song9.mp3">Song 9</option>
   <option value="http://song10.mp3">Song 10</option>	
</select><br><br>
<span id="music1">
<script type="text/javascript">
<!--
document.write('<embed type="application/x-mplayer2" '
+'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" '
+'src="'+mp3+'" '
+'name="MediaPlayer1" '
+'width="300" '
+'height="69" '
+'controltype="2" '
+'showcontrols="1" '
+'showstatusbar="1" '
+'autostart="true">'
+'</embed>');
//-->
</script>
</span>
</div>
</body>
</html>
bluedoglov is offline  
Old 05-16-2005, 11:29 PM   PM User | #72
_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
Random after play time huh? This isn't easy, if I have the time I might be able to work something up, but I can set you off in the right direction. A minor drawback for what you want to do is you would need to know the length of each song, because this length will be the deciding factor on when the function song() needs to run again. Look into the random function and how it is used. Also look into the setTimeout() in javascript.
_Aerospace_Eng_ is offline  
Old 05-17-2005, 02:16 AM   PM User | #73
leopold
New to the CF scene

 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
leopold is an unknown quantity at this point
hello,

i've read this entire topic and it was definetely useful but i was wondering about something else:

i want to have a non-visible embedded media player on my website linked to a m3u playlist, with my own custom-made previous-play-pause-next buttons that control the media player, i tried it with a code like this and when i press play it does work but when i press next it does go to the next song but i have to press play again before the song starts...

also: is there any way i can have the title of the song (as stated in the m3u file) displayed on my site?

i hope anyone can help me, thanks in advance!

here is the code i have been using:

<body>
<OBJECT ID="WinMedia" width=0 height=0
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="playlist.m3u">
<PARAM NAME="AutoStart" Value="True">
<PARAM NAME="ShowControls" VALUE="False">
<PARAM NAME="ShowStatusBar" VALUE="True">
<EMBED type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/
MediaPlayer/" SRC="yourfile.asx" name="WinMedia"
autostart=1 width=160 height=120 ShowStatusBar=true
ShowControls=false>
</EMBED>
</OBJECT>

<A HREF="javascript:document.WinMedia.Previous()">
<IMG SRC="previous.gif" BORDER="0"</A>

<A HREF="javascript:document.WinMedia.Play()">
<IMG SRC="play.gif" BORDER="0"
ALT="PLAY BUTTON"></A>

<A HREF="javascript:document.WinMedia.Pause()">
<IMG SRC="pause.gif" BORDER="0"
ALT="PAUSE BUTTON"> </A>

<A HREF="javascript:document.WinMedia.Next()">
<IMG SRC="next.gif" BORDER="0"></A>

</body>

Last edited by leopold; 05-17-2005 at 02:20 AM..
leopold is offline  
Old 05-18-2005, 12:34 AM   PM User | #74
enumerator
Regular Coder

 
Join Date: May 2005
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
enumerator is an unknown quantity at this point
Internet Explorer

FYI, HTML+TIME is more useful than the media player control for such things...
__________________
Thanks in advance!
enumerator is offline  
Old 05-18-2005, 12:38 AM   PM User | #75
_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
In reference to leopold's post, you have some conflicting filename values, your embed src is different from the filename parameter value. Also you should be using quotes around your values. This embedded media player generator should prove helpful, to avoid any coding errors on the player that you might make.
_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 01:12 PM.


Advertisement
Log in to turn off these ads.