Linking to a m3u file, to open it in a media player |
Linking to a m3u file, to open it in a media player |
29 |
Mar 23 2007, 09:33 AM
Post
#1
|
Group: Members Posts: 3 Joined: 23-March 07 Member No.: 2,301 |
Hi,
On my webpage I have made a link to a .m3u playlist. However, when I click the link, my webbrowser opens the m3u file as a textdocument in my browser. With which code can I set the link so that it opens Windows Media Player (or perhaps the default media player)? Thanks in advance!! |
Peter1968 |
Mar 23 2007, 09:53 AM
Post
#2
|
Serious Coder Group: Members Posts: 448 Joined: 23-September 06 Member No.: 213 |
The server needs to send the correct MIME type for m3u playlists, which is audio/x-mpegurl
So, in a .htaccess in yoru document root, you need to add the line AddType audio/x-mpegurl m3u This post has been edited by Peter1968: Mar 23 2007, 09:54 AM |
29 |
Mar 23 2007, 10:05 AM
Post
#3
|
Group: Members Posts: 3 Joined: 23-March 07 Member No.: 2,301 |
Thanks for your help! I'm a bit of a n00b tho, where exactly do i need to insert AddType audio/x-mpegurl m3u in the code of the page? I don't know what you mean with "root" Thanks!
|
Darin McGrew |
Mar 23 2007, 11:42 AM
Post
#4
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
|
29 |
Mar 24 2007, 05:10 AM
Post
#5
|
Group: Members Posts: 3 Joined: 23-March 07 Member No.: 2,301 |
EDIT
Thanks for your help! It won't work in my case tho, cuz I will not upload my webpage to a webserver. I am making a DVD with several mediafiles and some textfiles ans I am using HTML to make the autroun menu. So htaccess won't help in this case.. Does anybody know if I have other options? This post has been edited by 29: Mar 24 2007, 05:27 AM |
Lo-Fi Version | Time is now: 27th April 2024 - 12:48 AM |