CC: | kenwu [...] cpan.org |
Subject: | Load some MP3 files failed! |
Dear,
Thank you for your module that's work very well. But For some files, I
have a critical bug.
That is an example :
use Win32::MediaPlayer;
my $mediaplayer = new Win32::MediaPlayer;
print "\t-load\n";
$mediaplayer->load($fichier) or die("load failed $!\n");
print "\t-play\n";
$mediaplayer->play;
print "\t-volume\n";
$mediaplayer->volume(100);
print "\t-length\n";
my $time = $mediaplayer->length(1) || '-//-';
$mediaplayer->close();
For some mp3 files, the script bug at line $mediaplayer->load($fichier)
or die("load failed $!\n");
The critical problem is that nothing happened and the script is blocked.
It is impossible to set a time-out or catch the error with eval or use
alarm to continue. The only way it to do is a CTRL C.
Have you an idea to resolve this problem.
Thank you.
Djibril