gecko-mediaplayer plugin doesn't stream m3u, asx playlists created on the fly by PHP

250 views
Skip to first unread message

BACH Xuan Duong

unread,
Aug 4, 2012, 6:51:56 AM8/4/12
to gecko-me...@googlegroups.com
Hi

gecko-mediaplayer plugin streams well m3u/asx playlists created by hand but fails to stream playlists created on the ply by PHP (server side).
<embed ... src="playlist.m3u" .. : OK (playlist.m3u is a playlist made by hand)
but
<embed ... src="playlist.php" .. : FAIL (playlist.php is a script that reads files in a folder and output a playlist on the fly). In fact, gecko streams just the last song in the playlist.

Here is my script PHP
$album = $_GET['album'];
$HOST = $_SERVER['HTTP_HOST'];
$PATH = $_SERVER['DOCUMENT_ROOT'];
$d = $PATH . "/test/album/" . $album . "/";
$u = "http://" . $HOST . "/test/album/" . $album . "/";
$dir = opendir($d);
while (false !== ($files = readdir($dir)))
{
if (($files!=".") && ($files!="..") && strstr($files, ".mp3"))
{
$output[] = $u.rawurlencode($files);
}
}
closedir($dir);
natcasesort($output);
header( 'Content-Type: audio/x-mpegurl;' );
header( 'Content-Disposition: inline; filename="playlist.m3u"');
print join("\n", $output);

Have you got a solution ?
Thanks

Kevin DeKorte

unread,
Aug 4, 2012, 8:35:21 AM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Do you have a log of the gecko-mediaplayer output so that I can see
what it is doing. Also can you attach the hand made .m3u file and the
output of the .php file so I can see them?

Thanks,

Kevin




- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAdFwkACgkQ6w2kMH0L1dEEaQCfYxJVqZN3jd/xlyPVuNEKsZp1
dMQAn249SRFuTkyGWUR36a7qgMUy09Gb
=FkLG
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Aug 4, 2012, 9:48:06 AM8/4/12
to gecko-me...@googlegroups.com
I'am very sorry for double post.

Could you please take a look at this test site ?


Here a the hand made m3u playlist that works

I try to figure out how to get the log file.

Thank you
album_test.m3u

BACH Xuan Duong

unread,
Aug 4, 2012, 10:19:51 AM8/4/12
to gecko-me...@googlegroups.com
Hi Kevin

Here are the log. Gecko streams just the last song of the list.

ubuntu@ubuntu:~$ google-chrome http://baynotnhac.free.fr/test/list_folder.php
NPP_New called
gecko mediaplayer v1.0.4
Using player backend of ''
DBUS connection created
Listening to path /control/517
ARG: type = audio/mpeg
ARG: src = playlist_folder.php?album=album_test
ARG: name = MediaPlayer
ARG: width = 450
ARG: height = 100
ARG: showcontrols = 1
ARG: showstatusbar = 1
ARG: showdisplay = 0
ARG: autostart = 1
Window resized
Calling GetURLNotify with item = 0xb959d400 src = playlist_folder.php?album=album_test

(gnome-mplayer:12920): Gdk-WARNING **: The GDK_NATIVE_WINDOWS environment variable is not supported in GTK3.
See the documentation for gdk_window_ensure_native() on how to get native windows.
item is null
Leaving destroy stream - item not found
item is NULL
Write unable to write because item is NULL
Sending SetProgressText to connection 0xb9500d80
in Destroy Stream
Entering list_parse_qt localsize = 225
unable to find rmda in /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerlwkkeu.mp3
Entering list_parse_qt2 localsize = 225
unable to find mmdr in /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerlwkkeu.mp3
Entering list_parse_asx localsize = 225
Item 
local = /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerlwkkeu.mp3
id = 1
hrefid = 0
play = 1
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
plugin = (nil)
Exiting list_parse_asx
Entering list_parse_qml localsize = 225
Item 
local = /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerlwkkeu.mp3
id = 1
hrefid = 0
play = 1
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
plugin = (nil)
Exiting list_parse_qml
Entering list_parse_ram localsize = 225
Item 
local = /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerlwkkeu.mp3
id = 1
hrefid = 0
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
plugin = (nil)
Item 
local = 
id = 1
hrefid = 0
play = 1
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
plugin = (nil)
Item 
local = 
id = 2
hrefid = 0
play = 1
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
plugin = (nil)
Item 
local = 
id = 3
hrefid = 0
play = 1
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
plugin = (nil)
Exiting list_parse_ram
reason = 0
/home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerlwkkeu.mp3
/control/517
Sending SetProgressText to connection 0xb9500d80
in Destroy Stream
Entering list_parse_qt localsize = 1925121
Exiting list_parse_qt
Entering list_parse_qt2 localsize = 1925121
Exiting list_parse_qt2
Entering list_parse_asx localsize = 1925121
Exiting list_parse_asx
Entering list_parse_qml localsize = 1925121
Exiting list_parse_qml
Entering list_parse_ram localsize = 1925121
Exiting list_parse_ram
Sending Open /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayertahrmq.mp3 to connection 0xb9500d80
Sending SetURL to connection 0xb9500d80
reason = 0
/home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayertahrmq.mp3
/control/517
Duplicate request, item already retrieved
cancelled
reason = 1
/home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayertahrmq.mp3
/control/517
URL Notify result is Network Error
Sending SetProgressText to connection 0xb9500d80
Sending SetURL to connection 0xb9500d80
Setting to play because 524288 > 131072
Entering list_parse_qt localsize = 524288
Exiting list_parse_qt
Entering list_parse_asx localsize = 524288
Exiting list_parse_asx
Entering list_parse_qml localsize = 524288
Exiting list_parse_qml
Entering list_parse_ram localsize = 524288
Exiting list_parse_ram
Sending Open /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerhhniiw.mp3 to connection 0xb9500d80
Sending SetURL to connection 0xb9500d80
setting state to 0
Sending SetProgressText to connection 0xb9500d80
reason = 0
/home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayerhhniiw.mp3
/control/517
Error when running: Failed to execute child process "mencoder" (No such file or directory)
Setting to play because 589824 > 131072
Entering list_parse_qt localsize = 589824
Exiting list_parse_qt
Entering list_parse_asx localsize = 589824
Exiting list_parse_asx
Entering list_parse_qml localsize = 589824
Exiting list_parse_qml
Entering list_parse_ram localsize = 589824
Exiting list_parse_ram
Sending Open /home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayereyocag.mp3 to connection 0xb9500d80
Sending SetURL to connection 0xb9500d80
setting state to 0
in media state change with state = 1
Sending SetProgressText to connection 0xb9500d80
in media state change with state = 1
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
Sending SetProgressText to connection 0xb9500d80
reason = 0
/home/ubuntu/.cache/gnome-mplayer/plugin/gecko-mediaplayereyocag.mp3
/control/517

Kevin DeKorte

unread,
Aug 4, 2012, 10:23:17 AM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Looks like your embed tags are not quite the same...

working

<EMBED TYPE="application/x-mplayer2" SRC="album/album_test.m3u"
NAME="MediaPlayer" WIDTH="450" HEIGHT="100" ShowControls="1"
ShowStatusBar="1" ShowDisplay="0" autostart="1"></EMBED>

non-working

<EMBED TYPE="audio/mpeg" SRC="playlist_text.php?album=album_test"
NAME="MediaPlayer" WIDTH="450" HEIGHT="100" ShowControls="1"
ShowStatusBar="1" ShowDisplay="0" autostart="1"></EMBED>


Also, you didn't mention what version of gecko-mediaplayer you are
using. I'm using SVN and it plays all three songs here, but the first
two seem to be chopped.

So what I would do it fix the mimetype on the embed tag, and we may
have an issue with detecting that the generated file is a playlist
rather than a file. I believe the mimetype of audio/mpeg is confusing
the plugin and having it flag the file as a mp3 file rather than an
m3u file.

Kevin
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/vAF6itA9eZIJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAdMFUACgkQ6w2kMH0L1dGPQACeNUsTGhSZebah/+O17EKsOs6x
u2UAoIx+FQc93V7hy29XBVKF/N4WHXyc
=TDzJ
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Aug 4, 2012, 10:51:24 AM8/4/12
to gecko-me...@googlegroups.com
I use version 1.0.4

I've modified the mimetype on the test site. The results are the sames. Could you take another look at the site.
In fact, I'd used application/x-mplayer2 but it didn't work so I modified to audio/mpeg.

The folder has three songs and the PHP script creates a playlist with three songs but Gecko plays just the last one.

When gecko streams the PHP file, I look at .cache/gnome-player/plugin and see 4 files downloaded : one is the playlist created by the PHP script, the three other are the three songs downloaded. But when gecko streams the hand-made m3u file, there is nothing in this folder.

Thank you

On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong wrote:

Kevin DeKorte

unread,
Aug 4, 2012, 12:17:54 PM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ok found a bug and fixed it. The patch is quite simple

http://code.google.com/p/gecko-mediaplayer/source/detail?r=509

Or you can upgrade to SVN.

Kevin
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/r23ARadMOgwJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAdSzIACgkQ6w2kMH0L1dHXugCfcyyUj0HuczlhZ/pmK+3DCaLG
LWEAn35RXVBhobA6jF3wG/Ymwz5rXotD
=6PNU
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Aug 4, 2012, 12:49:33 PM8/4/12
to gecko-me...@googlegroups.com
Hi Kevin

The bug affects not only m3u (#EXTM3U) but also asx playlist (<asx version="3.0"> </asx>). If you could fix it for m3u, please fix it for asx also.
If you need the log for asx error I'll could post it.

Thank you

On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong wrote:

Kevin DeKorte

unread,
Aug 4, 2012, 12:55:20 PM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A sample test site would be preferred. I could do the same type of fix
for ASX files (it is trivial) but I want to know why the playlist
parser is not kicking in for these files.

Kevin



On 08/04/2012 10:49 AM, BACH Xuan Duong wrote:
> Hi Kevin
>
> The bug affects not only m3u (#EXTM3U) but also asx playlist
> (<*asx* version="3.0"> </asx>). If you could fix it for m3u, please
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/4eHl_1sCE9wJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAdU/gACgkQ6w2kMH0L1dHZHQCfbQeKJ6vPUwY+K/E7hHKIx7bA
AW4AnRMEjE5FxtJOT4F7zo/0nV1nxW0/
=6VKW
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Aug 4, 2012, 1:55:35 PM8/4/12
to gecko-me...@googlegroups.com
Here you are :

For m3u playlist :

For asx playlist : (all falis)

Thank you

On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong wrote:

Kevin DeKorte

unread,
Aug 4, 2012, 2:06:53 PM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Seems to work with the latest SVN code... but not sure how perfect it is.

Kevin
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/ZaqCr59EG3oJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAdZL0ACgkQ6w2kMH0L1dGt8QCfZYEGcAx5Oacx49EF82WZK5wQ
yGkAoI6PSAVVnf+9pZVL2zHlgBJdvN+v
=B57J
-----END PGP SIGNATURE-----

Kevin DeKorte

unread,
Aug 4, 2012, 3:30:59 PM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Turns out these fixed I have made only mask the problem... there is
another issue here, but I have yet to find it.

I'll look into it some more.

Kevin
iEYEARECAAYFAlAdeHMACgkQ6w2kMH0L1dHRjACdGb2uv+sTVP2aauSch5/1QW1p
c+MAn0z2R+kYXQlHfumKpESAfwJ2tvzx
=eCkf
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Aug 4, 2012, 5:32:24 PM8/4/12
to gecko-me...@googlegroups.com
Don't give up.
gecko-mediaplayer is the only plugin I've tried capable of streaming these hand-made playlists (Totem, VLC fail all).
If gecko-mediaplayer could stream on the fly created playlists, it'll be perfect.
I'm not a developper so I could no help but I could test it as user.
Thanks


On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong wrote:

Kevin DeKorte

unread,
Aug 4, 2012, 7:20:53 PM8/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've spent several hours on this already and not really much closer to
solving it. I have an idea of what is going wrong, but not sure where
it is happening yet.

However, I did notice that in your ASX example you are not using the
same media files. Can you please make them the same, just for my
sanity to make sure nothing is wrong with the files.

I have a feeling that the first and second file are getting
immediately cancelled by the next item on the playlist, but why it is
doing that I'm not sure yet.

Kevin
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/Jk1ohy1mVtsJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAdrlUACgkQ6w2kMH0L1dGyAwCgktafIXD1qZ5QX/xl0tOZBedw
nD0An13NwZwK2DwywwhnUsEf+xWuEz9F
=eu1z
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Aug 6, 2012, 5:01:13 AM8/6/12
to gecko-me...@googlegroups.com
OK

I've changed back to mp3 files.

Best regards

Kevin DeKorte

unread,
Aug 6, 2012, 9:24:09 PM8/6/12
to gecko-me...@googlegroups.com

Made some progress on this today. Nothing is checked in yet as it is a giant mess at the moment. But the good news is that it should work a whole lot better. Things are looking encouraging. It is odd where you find bugs in this stuff.

Kevin

--
You received this message because you are subscribed to the Google Groups "gecko-mediaplayer" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gecko-mediaplayer/-/GIqnUFptgA4J.

BACH Xuan Duong

unread,
Aug 7, 2012, 6:04:03 AM8/7/12
to gecko-me...@googlegroups.com
That'a a good news.
One thing that intrigues me is where Gecko streams hand made playlist it downloads nothing in ./cache/gnome-mplayer/plugin and it works but when it streams on the fly created playlist it downloads the playlist and songs files in this folder and it doesn't work.

Thanks

On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong wrote:

Ali Dogan

unread,
Aug 8, 2012, 1:48:26 PM8/8/12
to gecko-me...@googlegroups.com
I have a solution for this problem, working without problems.
--1. create playlist.m3u file with php script. example for this code.
playlist.php
...

header( 'Content-Disposition: inline; filename="playlist.m3u"');
print join("\n", $output);

$newvar=implode("\n",$output);
file_put_contents("playlist.m3u",$newvar);
...
We have a playlist file now.We need a trigger  before embed code. We can use jquery script.

Playvideo. php file
...
<script src="jquery/jquery.min.js"></script>
...
<?php
echo "<script type=\"text/javascript\">   
$.ajax({ url:'playlist.php',success: function(xml){                  
}
 });
</script>";

echo "
<EMBED  type=\"application/x-mplayer2\" showcontrols=false width=\"100%\" height=\"100%\" autostart=\"1\" setvolume=\"50\" loop=true src=\"playlist.m3u\">";
--------------------------------------------
It is ok. We have on the fly playlist.


4 Ağustos 2012 Cumartesi 13:51:56 UTC+3 tarihinde BACH Xuan Duong yazdı:

BACH Xuan Duong

unread,
Aug 11, 2012, 6:43:36 AM8/11/12
to gecko-me...@googlegroups.com
Hi All Dogan

Thank you for your solution.

I've had a similar solution using fopen, fwrite, fclose (for PHP4) instead of file_put_contents (for PHP5) that creates and saves the playlist on the server as if it is created by hand. I d'on't know Ajax but I think with file_put_contents your solution also creates and saves this playlist on the server, is it correct ?


Thanks

On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong wrote:

Kevin DeKorte

unread,
Aug 24, 2012, 3:14:39 PM8/24/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok,

I'm getting closer to getting this to work, order to do that I have
had to disable some features, such as starting to play a partially
downloaded file. I am working on bringing those features back and then
I will commit this change. It is getting rather large at this point.

Here is the root of the problem.

The playlist has 3 files in it, all files found on the playlist were
downloaded at the same time in parallel. When each file was completely
downloaded, it would immediately tell gnome-mplayer to play that file.
Resulting in flipping thru the files rather quickly and playing the
file that was the slowest to download, which could be random.

I have reworked the code so that files are downloaded one at a time
now, and only the first file is automatically played, and
gnome-mplayer requests a file when the playback is completed.

So hardpart is done, just the fine details are left.

Kevin




On 08/11/2012 04:43 AM, BACH Xuan Duong wrote:
> Hi All Dogan
>
> Thank you for your solution.
>
> I've had a similar solution using fopen, fwrite, fclose (for PHP4)
> instead of file_put_contents (for PHP5) that *creates and saves*
> the playlist on the server as if it is created by hand. I d'on't
> know Ajax but I think with file_put_contents your solution *also
> creates and saves* this playlist on the server, is it correct ?
>
> Thanks
>
> On Saturday, August 4, 2012 10:51:56 AM UTC, BACH Xuan Duong
> wrote:
>
> Hi
>
> gecko-mediaplayer plugin streams well m3u/asx playlists created by
> hand but fails to stream playlists created on the ply by PHP
> (server side). <embed ... src="playlist.m3u" .. : OK (playlist.m3u
> is a playlist made by hand) but <embed ... src="playlist.php" .. :
> FAIL (playlist.php is a script that reads files in a folder and
> output a playlist on the fly). In fact, gecko streams just the last
> song in the playlist.
>
> Here is my script PHP $album = $_GET['album']; $HOST =
> $_SERVER['HTTP_HOST']; $PATH = $_SERVER['DOCUMENT_ROOT']; $d =
> $PATH . "/test/album/" . $album . "/"; $u = "http://" . $HOST .
> "/test/album/" . $album . "/"; $dir = opendir($d); while (false !==
> ($files = readdir($dir))) { if (($files!=".") && ($files!="..") &&
> strstr($files, ".mp3")) { $output[] = $u.rawurlencode($files); } }
> closedir($dir); natcasesort($output); header( 'Content-Type:
> audio/x-mpegurl;' ); header( 'Content-Disposition: inline;
> filename="playlist.m3u"'); print join("\n", $output);
>
> Have you got a solution ? Thanks
>
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/AMyFRyrKPmwJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlA30p8ACgkQ6w2kMH0L1dHNswCfRE4D+BxMnwz4AAwCC+HhqeRN
SpQAn2/42iapborRCTpiJlbEe7mkfxH2
=Wmcv
-----END PGP SIGNATURE-----
Message has been deleted

BACH Xuan Duong

unread,
Aug 25, 2012, 12:48:32 PM8/25/12
to gecko-me...@googlegroups.com
Hi Kevin

That's a good news and the rework you intend to do is much more relevant in my point of view : maintaining the order of play of the playlist, downloading one file at a time, playing the file and continuing with another file when playing the previous file ended.

Thank you very much for your hard work

On Saturday, August 4, 2012 12:51:56 PM UTC+2, BACH Xuan Duong wrote:

Kevin DeKorte

unread,
Sep 4, 2012, 4:54:19 PM9/4/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, my big patch to gecko-mediaplayer has finally hit SVN.
Unfortunately, I haven't been able to test it as well as I would like,
but it seems to work with the sample sites I created.

So please test away, and let me know if anything got broken (my money
is yes something did).

Once this code is tested and appears to work fine. I think we will do
the 1.0.7 release.

Thanks,

Kevin
> -- You received this message because you are subscribed to the
> Google Groups "gecko-mediaplayer" group. To view this discussion on
> the web visit
> https://groups.google.com/d/msg/gecko-mediaplayer/-/tLscbBxNZwIJ.
> To post to this group, send email to
> gecko-me...@googlegroups.com. To unsubscribe from this group,
> send email to gecko-mediapla...@googlegroups.com. For
> more options, visit this group at
> http://groups.google.com/group/gecko-mediaplayer?hl=en.


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBGansACgkQ6w2kMH0L1dGFigCfVhPJsTxnVfi1gAiN8ye8ov3M
kuIAnR3F++ZE708IoOqGRMpZCg9A6hQ3
=Sh2/
-----END PGP SIGNATURE-----

BACH Xuan Duong

unread,
Sep 6, 2012, 4:56:34 PM9/6/12
to gecko-me...@googlegroups.com
Hi Kevin

I'm sorry but I'm really new in Linux and don't know how to upgrade to SVN to make the test.

If someone could do it, il'll be very appriciated.

Thanks


On Saturday, August 4, 2012 12:51:56 PM UTC+2, BACH Xuan Duong wrote:
Reply all
Reply to author
Forward
0 new messages