Archived from groups: microsoft.public.pocketpc.multimedia (More info?)
In Pocket IE when I click on a link to a streamed mp3
file it asks me if I want to save the PHP file to my
device.
I am using the Zina streaming jukebox on my desktop (IIS4
& PHP v4) which creates URLs in the form "/index.php?
l=8&p=MP3_FILE_PATH&m=1" and connecting to it on my PDA.
The links work fine on the desktop and they open in
Winamp and stream as they should but they don't work on
the PDA (Pocket PC 2002 EUU3)
Any help would be great (maybe need to change
PPC/Zina/IIS settings?)
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)
Just before the line which sends the MP3 file, add the following line
to your PHP :
header("Content-type: audio/mpeg" );
That will tell the PPC to expect an MP3 file. Whether it can *stream*
MP3 files or only play them from a memory card is a PPC problem ;-)
HTH
Cheers 0 Neil
On Wed, 6 Oct 2004 07:38:29 -0700, "Paul"
<anonymous@discussions.microsoft.com> wrote:
>In Pocket IE when I click on a link to a streamed mp3
>file it asks me if I want to save the PHP file to my
>device.
>
>I am using the Zina streaming jukebox on my desktop (IIS4
>& PHP v4) which creates URLs in the form "/index.php?
>l=8&p=MP3_FILE_PATH&m=1" and connecting to it on my PDA.
>The links work fine on the desktop and they open in
>Winamp and stream as they should but they don't work on
>the PDA (Pocket PC 2002 EUU3)
>
>Any help would be great (maybe need to change
>PPC/Zina/IIS settings?)
>
>Thanks
>
>Paul
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)
Cheers, I've tried what you said but it didn't work.
Must be a PPC problem, but then its weird cuz streaming
does work, I've had both 'Winamp+Media Encoder -> Pocket
Media Player' and 'Winamp+Shoutcast -> GSPlayer' working
fine streaming from the desktop to the PPC, must be
something to do with IIS+PHP streaming...
Thanks anyway,
Paul
>-----Original Message-----
>Just before the line which sends the MP3 file, add the
following line
>to your PHP :
>
>header("Content-type: audio/mpeg" );
>
>That will tell the PPC to expect an MP3 file. Whether it
can *stream*
>MP3 files or only play them from a memory card is a PPC
problem ;-)
>
>HTH
>Cheers 0 Neil
>
>
>On Wed, 6 Oct 2004 07:38:29 -0700, "Paul"
><anonymous@discussions.microsoft.com> wrote:
>
>>In Pocket IE when I click on a link to a streamed mp3
>>file it asks me if I want to save the PHP file to my
>>device.
>>
>>I am using the Zina streaming jukebox on my desktop (IIS4
>>& PHP v4) which creates URLs in the form "/index.php?
>>l=8&p=MP3_FILE_PATH&m=1" and connecting to it on my PDA.
>>The links work fine on the desktop and they open in
>>Winamp and stream as they should but they don't work on
>>the PDA (Pocket PC 2002 EUU3)
>>
>>Any help would be great (maybe need to change
>>PPC/Zina/IIS settings?)
>>
>>Thanks
>>
>>Paul
>
>.
>
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)
Probably I forgot to mention because everybody codes differently....
You must ensure that no 'headers' have been 'sent' before you sent a
content-type header. Headers are considered 'sent' when any content is
output, even just a space.
So, make sure there are no echo/print statements before your header
line, you can also ensure that error_reporting us set to E_NONE to
suppress any error output.
Also if this is embedded in HTML, the PHP code needs to happen before
any HTML code at all (which also counts as output), although no HTML
should be involved in the page which sends MP3 files.
Finally, if all else fails, insert
exit;
Right after the line which sends the file to the client. This will
stop any further script output which might be clagging the headers.
If you still have problems, please post the script if it's small
enough to attache, and maybe we'll take a look at it.
Cheers - Neil
On Wed, 6 Oct 2004 09:00:20 -0700, "Paul"
<anonymous@discussions.microsoft.com> wrote:
>Cheers, I've tried what you said but it didn't work.
>
>Must be a PPC problem, but then its weird cuz streaming
>does work, I've had both 'Winamp+Media Encoder -> Pocket
>Media Player' and 'Winamp+Shoutcast -> GSPlayer' working
>fine streaming from the desktop to the PPC, must be
>something to do with IIS+PHP streaming...
>
>Thanks anyway,
>
>Paul
>
>>-----Original Message-----
>>Just before the line which sends the MP3 file, add the
>following line
>>to your PHP :
>>
>>header("Content-type: audio/mpeg" );
>>
>>That will tell the PPC to expect an MP3 file. Whether it
>can *stream*
>>MP3 files or only play them from a memory card is a PPC
>problem ;-)
>>
>>HTH
>>Cheers 0 Neil
>>
>>
>>On Wed, 6 Oct 2004 07:38:29 -0700, "Paul"
>><anonymous@discussions.microsoft.com> wrote:
>>
>>>In Pocket IE when I click on a link to a streamed mp3
>>>file it asks me if I want to save the PHP file to my
>>>device.
>>>
>>>I am using the Zina streaming jukebox on my desktop (IIS4
>>>& PHP v4) which creates URLs in the form "/index.php?
>>>l=8&p=MP3_FILE_PATH&m=1" and connecting to it on my PDA.
>>>The links work fine on the desktop and they open in
>>>Winamp and stream as they should but they don't work on
>>>the PDA (Pocket PC 2002 EUU3)
>>>
>>>Any help would be great (maybe need to change
>>>PPC/Zina/IIS settings?)
>>>
>>>Thanks
>>>
>>>Paul
>>
>>.
>>
Archived from groups: microsoft.public.pocketpc.multimedia (More info?)
There were some other headers being output but removing
them has no effect.
I think the problem is more to do with how Pocket IE
handles the link, because when the link is clicked it
tells index.php to send the file, but it doesn't get that
far because pIE tries to download index.php instead of
actioning it.
I think I'll just leave it as I'm by no means a PHP guru!
(and I can kind of achieve what I want using
Winamp+Shoutcast)
>-----Original Message-----
>Probably I forgot to mention because everybody codes
differently....
>
>You must ensure that no 'headers' have been 'sent'
before you sent a
>content-type header. Headers are considered 'sent' when
any content is
>output, even just a space.
>
>So, make sure there are no echo/print statements before
your header
>line, you can also ensure that error_reporting us set to
E_NONE to
>suppress any error output.
>
>Also if this is embedded in HTML, the PHP code needs to
happen before
>any HTML code at all (which also counts as output),
although no HTML
>should be involved in the page which sends MP3 files.
>
>Finally, if all else fails, insert
>
>exit;
>
>Right after the line which sends the file to the client.
This will
>stop any further script output which might be clagging
the headers.
>
>If you still have problems, please post the script if
it's small
>enough to attache, and maybe we'll take a look at it.
>
>Cheers - Neil
>
>On Wed, 6 Oct 2004 09:00:20 -0700, "Paul"
><anonymous@discussions.microsoft.com> wrote:
>
>>Cheers, I've tried what you said but it didn't work.
>>
>>Must be a PPC problem, but then its weird cuz streaming
>>does work, I've had both 'Winamp+Media Encoder -> Pocket
>>Media Player' and 'Winamp+Shoutcast -> GSPlayer' working
>>fine streaming from the desktop to the PPC, must be
>>something to do with IIS+PHP streaming...
>>
>>Thanks anyway,
>>
>>Paul
>>
>>>-----Original Message-----
>>>Just before the line which sends the MP3 file, add the
>>following line
>>>to your PHP :
>>>
>>>header("Content-type: audio/mpeg" );
>>>
>>>That will tell the PPC to expect an MP3 file. Whether
it
>>can *stream*
>>>MP3 files or only play them from a memory card is a PPC
>>problem ;-)
>>>
>>>HTH
>>>Cheers 0 Neil
>>>
>>>
>>>On Wed, 6 Oct 2004 07:38:29 -0700, "Paul"
>>><anonymous@discussions.microsoft.com> wrote:
>>>
>>>>In Pocket IE when I click on a link to a streamed mp3
>>>>file it asks me if I want to save the PHP file to my
>>>>device.
>>>>
>>>>I am using the Zina streaming jukebox on my desktop
(IIS4
>>>>& PHP v4) which creates URLs in the form "/index.php?
>>>>l=8&p=MP3_FILE_PATH&m=1" and connecting to it on my
PDA.
>>>>The links work fine on the desktop and they open in
>>>>Winamp and stream as they should but they don't work
on
>>>>the PDA (Pocket PC 2002 EUU3)
>>>>
>>>>Any help would be great (maybe need to change
>>>>PPC/Zina/IIS settings?)
>>>>
>>>>Thanks
>>>>
>>>>Paul
>>>
>>>.
>>>
>
>.
>
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.