Re: Playing music files
- From: "Shelly" <sheldonlg.news@xxxxxxxxxxxxxxxx>
- Date: Tue, 12 Jul 2005 16:38:47 -0400
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
.
- Follow-Ups:
- Re: Playing music files
- From: Shelly
- Re: Playing music files
- Prev by Date: Re: File Name case check
- Next by Date: Re: mysql_result(): supplied argument is not a valid.....
- Previous by thread: Re: Playing music files
- Next by thread: Re: Playing music files
- Index(es):
Relevant Pages
|