From: Ralph Höglund on
The story is this. I have succeeded to find a nice stream player:
MyMP3Stream. The problem I have is that it only accept
XML-playlists. I am going to use a free site where I can store my
songs for streaming. This site produces playlists in m3u-format
for wich I can download.

I have some choices here, either to find another player that
supports m3u-format or modify the player I have to accept
m3u-lists or find a converter script that converts from m3u to
XML player file (or that I write such a script myself).

As I do not beleive the idea to invent the wheel once again I
wonder if anyone have someting to help me out?

Would appreciate that.

Kindest regards,

Ralph
From: cwdjrxyz on

Ralph Höglund wrote:
> The story is this. I have succeeded to find a nice stream player:
> MyMP3Stream. The problem I have is that it only accept
> XML-playlists. I am going to use a free site where I can store my
> songs for streaming. This site produces playlists in m3u-format
> for wich I can download.
>
> I have some choices here, either to find another player that
> supports m3u-format or modify the player I have to accept
> m3u-lists or find a converter script that converts from m3u to
> XML player file (or that I write such a script myself).
>
> As I do not beleive the idea to invent the wheel once again I
> wonder if anyone have someting to help me out?

I know that the free Winamp player can use .m3u and I think the free
Real 10.5 player can also. There likely are several more. I do not know
enough about your situation to know if these would be right for your
problem. However it would not take long for you to download one of
these players, test it, and delete it if it is not suited.

From: Ralph Höglund on
cwdjrxyz skrev:
> Ralph H?glund wrote:
>
>>The story is this. I have succeeded to find a nice stream player:
>>MyMP3Stream. The problem I have is that it only accept
>>XML-playlists. I am going to use a free site where I can store my
>>songs for streaming. This site produces playlists in m3u-format
>>for wich I can download.
>>
>>I have some choices here, either to find another player that
>>supports m3u-format or modify the player I have to accept
>>m3u-lists or find a converter script that converts from m3u to
>>XML player file (or that I write such a script myself).
>>
>>As I do not beleive the idea to invent the wheel once again I
>>wonder if anyone have someting to help me out?
>
>
> I know that the free Winamp player can use .m3u and I think the free
> Real 10.5 player can also. There likely are several more. I do not know
> enough about your situation to know if these would be right for your
> problem. However it would not take long for you to download one of
> these players, test it, and delete it if it is not suited.
>
Sorry, I was not clear enough. I want an embedded player that the
visitor can choose by clicking on a label "Play music clips".

I know that even Windows media player nav handle m3u.

What I have that works fine is MyMP3Stream. Link:

http://bohuswines.se/scripts/indexmain.html

Click on: "Musik-clips". This player reads xml-playlist fine.

Ralph
From: cwdjrxyz on

Ralph Höglund wrote:

> Sorry, I was not clear enough. I want an embedded player that the
> visitor can choose by clicking on a label "Play music clips".
>
> I know that even Windows media player nav handle m3u.
>
> What I have that works fine is MyMP3Stream. Link:
>
> http://bohuswines.se/scripts/indexmain.html
>
> Click on: "Musik-clips". This player reads xml-playlist fine.

Yes, I now see that you want the player to be embedded and supplied by
the server rather than depending on some player that might or might not
be installed on the computer browser - a very good idea. Google has
just started embedding their own player for their new video service.
However the code is extremely complicated, partly because they have
videos for sale as well as free ones.

For applications where you are willing to use an existing player on a
browser such as the WMP and if you are willing to use javascript, I
have made a special embedded player with buttons for each selection. An
example is at http://www.cwdjr.net/souearly/songs2Root.php . Much of
the code is written in php which you will not be able to see when you
view the source, but I can supply a text file of the php.

From: Toby Inkster on
cwdjrxyz wrote:

> An example is at http://www.cwdjr.net/souearly/songs2Root.php . Much
> of the code is written in php which you will not be able to see when you
> view the source, but I can supply a text file of the php.

Tip for writing example PHP files...

1. Include the following at the very top of your PHP file:

<?php
if ($_GET['source']) {
highlight_file($_SERVER['SCRIPT_FILENAME']);
exit;
}
?>

2. And include the following near the end:

<p><a href="<?=$_SERVER['PHP_SELF']?>?source=1">View source.</a></p>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 |  Next  |  Last
Pages: 1 2 3 4 5
Prev: Strange error?
Next: Editing FLV