[vlc] Bugs found (v1.0.0)

Peter Waher Peter.Waher at weevio.com
Mon Jul 20 12:45:37 CEST 2009


Hello.

I've tried to register myself as specified in your wiki, but been unsuccessful. I cannot get the IRC channel to work either (using Opera). So I send this mail instead, hoping it reaches the quality assurance team.

I've found two bugs (to me serious):


1)      Short mp3's are cut short. Example:

http://www.purpleculture.net/mp3/xi1.mp3

This mp3 is played correctly in Windows Media Player and QuickTime, but not in VLC Player (desktop or Web Plugin). (Open network stream).

(The MP3 contains the pronunciation of a Chinese sign.) Other mp3's on the same site are cut short to such an extent that nothing is heard.


2)      The Web plugin does not work (as advertized) in IE, the same way as in FF, Opera, Chrome and Safari. I get the following exception when running on IE:

TypeError: 'AudioStreamPlayer.playlist.items' is null or not an object



Javascript code used (acts on <embed> tags just as described in the wiki, except with width and height = "0"):



Method that initializes the objects. Is called after the page has been initialized:


function Init()
{
   if (window.offscreenBuffering != null)
      window.offscreenBuffering = true;

   SoundPlayer = document.getElementById("SoundPlayer");
   if (SoundPlayer == null)
      Debug("SoundPlayer element not found.");

   AudioStreamPlayer = document.getElementById("AudioStreamPlayer");
   if (AudioStreamPlayer == null)
      Debug("AudioStreamPlayer element not found.");
}



Method trying to play the above url. Works in FF, Opera, Safari & Chrome, not in IE.


function PlayAudioStream(Url)
{
   if (Url == AudioStreamUrl)
      return;

   try
   {
      var s;

      if (AudioStreamPlayer != null)
      {
         if (Url == "" || Url == null)
         {
            if (AudioStreamPlayer.playlist.items)
            {
               AudioStreamPlayer.playlist.items.clear();
               while (AudioStreamPlayer.playlist.items.count > 0)
                  ;
            }
         }
         else
         {
            Url = ReplaceAll(Url, "shoutcast://", "http://");
            Url = ReplaceAll(Url, "\"", "\\\"");

            if (AudioStreamUrl != Url)
            {
               if (AudioStreamPlayer.playlist.items)
               {
                  AudioStreamPlayer.playlist.items.clear();
                  while (AudioStreamPlayer.playlist.items.count > 0)
                     ;
               }

               var i = AudioStreamPlayer.playlist.add(Url);
               AudioStreamPlayer.playlist.playItem(i);

               Debug("Playing Audio Stream: " + Url);

               AudioStreamUrl = Url;
            }
         }
      }
   }
   catch (e)
   {
      HandleClientException(e, "PlayAudioStream");
   }


Thanks in advance,
Peter Waher


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20090720/57809637/attachment.html>


More information about the vlc mailing list