Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 5 of 50 FirstFirst ... 3456715 ... LastLast
Results 61 to 75 of 742
  1. #61
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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??

  2. #62
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What url are you referencing? Its the https url that is calling up the warning. This url however doesn't return the warning

  3. #63
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  4. #64
    New to the CF scene
    Join Date
    May 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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??

  5. #65
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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>

  6. #66
    New to the CF scene
    Join Date
    May 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh..
    I was wondering if I could keep the drop down list AND have a song started playing in the beginning..
    thanks anyway though!!!

  7. #67
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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 09:41 PM.

  8. #68
    New to the CF scene
    Join Date
    May 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm so sorry....
    but thanks for the big help!!!

  9. #69
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  10. #70
    New Coder
    Join Date
    Feb 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 03:15 AM.

  11. #71
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>

  12. #72
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.

  13. #73
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 03:20 AM.

  14. #74
    Regular Coder
    Join Date
    May 2005
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer

    FYI, HTML+TIME is more useful than the media player control for such things...
    Thanks in advance!

  15. #75
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.


 
Page 5 of 50 FirstFirst ... 3456715 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •