Re: Playing music files




From: "Shelly" <sheldonlg.news@xxxxxxxxxxxxxxxx>
Subject: Re: Playing music files
Date: Monday, July 11, 2005 10:16 PM

"juglesh" <jugleshjunk@xxxxxxxxxxx> wrote in message
news:1121130331.609139.108940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> try this, it used to work on my old server, but now its a bit wonky,
> does work though. link to:
> script.php?song=coolsong.mp3 ,
>
> and make this the contents thereof:
>
> header("Cache-control: private");
> header("Content-type: audio/x-mpegurl");
> header("Content-disposition: inline;filename=stream.m3u");
> echo "http://www.yourdomain.com/mp3z/".$_get['song'];

Thanks. I tried this. It brought up the windows media player skin, but the
message I got was that it was unable to play any of the playlist.

First, it asked for a login to the server.
Second, it said it was unable to play that type even though it plays that
file locally on my machine.

More info:
After trials and errors, here is what is in my ssPlayMusic.php file:

<?php
header("Cache-control: private");
header("Content-type: audio/x-mpegurl");
header("Content-disposition: inline;filename=stream.m3u");
echo "http://www.singingsingles.net/".$_GET['song'];
?>
<!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>Untitled Document</title>
</head>

<body>

</body>
</html>

When I comment out the first three header lines here is what I get:

http://www.mydomain.net/tmp_music/1jul4_AHardDaysNight.mid

so I know that the filename and location are being passed correctly. The
file does exist at that location.

My windows media player plays *.mid files.

So:
1 - Why am I being asked to log into the site?
and
2 - Why doesn't the WMP recognize the *.mid type?

Shelly





.



Relevant Pages

  • Re: Where to play Backgammon now?
    ... I am conctantly looking for servers backgammon great game to play to become a great at it requires incredible concentration. ... OTPG (web based group that played there went to Hardwood and then faded away while a lot of the players from OTPG continued to play on Gammon Site. ... Gammon Site then consolidated the rooms to 1 now money players, leagues and tournaments are in the same room. ... For people who do not become members in the trial period where you do have full functions then you are correct the chat 9if that is what you go to a server for is restricted for "Guest" accounts. ...
    (rec.games.backgammon)
  • streaming music error
    ... Windows Media Player cannot play the file because a network error occurred. ... The server might not be available. ... Verify that you are connected to the ...
    (microsoft.public.windowsmedia.player)
  • Re: Need urgent help please!!!!!!!!!!!!!!!!!!!! - There was no tim
    ... >> There was no timely response from the server ... >> The file you want to play is on a server that did not respond in a timely ... Windows Media Player attempted to make contact with the server that ... > holds the file you wanted to play. ...
    (microsoft.public.windowsmedia.player)
  • Re: Only One File Getting the "C00D1197: Cannot Play the File" Err
    ... I tried to play the entire file again locally on the media ... server and the video crashed about 2-3 minutes in with a codec error. ...
    (microsoft.public.windowsmedia.server)
  • Re: encountered a network problem
    ... Error C00D11B3 is "The server is down or busy. ... Try connecting to the server ... > "...cannot play the message because server is not responding. ... I use Windows Media Player version 9. ...
    (microsoft.public.windowsmedia.player)