Problem with log messages over javascript API

This is a special forum aimed at testing and reporting regressions that happens on VLC 1.0.0.

This IS just about REGRESSIONS AND TESTING, no feature requests or bug reporting for OLD issues.
joerg.f
New Cone
New Cone
Posts: 1
Joined: 19 May 2009 15:40

Problem with log messages over javascript API

Postby joerg.f » 19 May 2009 16:09

Hi,

I have problems reading log messages over the javascript API. It seems the API is only returning log messages with verbosity level of 1, no matter how I set log.verbosity (except -1, this will disable it completely).

Code: Select all

vlc.log.verbosity = 3; .... var logOutput = document.getElementById("messages"); var messages = vlc.log.messages; var iterator = messages.iterator(); while (iterator.hasNext) { var m = iterator.next(); logOutput.innerHTML += m.severity + " [" + m.name + "] [" + m.type + "] " + m.message + "<br />"; } messages.clear();
I had a similar problem with 0.9.9. In this version the API always returned messages from all verbosity levels, no matter how log.verbosity was set.

Is this a bug, or am I doing something wrong?

Joerg

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Problem with log messages over javascript API

Postby thannoy » 26 May 2009 00:40

Maybe related to a recent change in latests stable releases (since 0.9.9 maybe). But for sure you should try to stop using .log.* from the web plugins. This part of the API is likely to be deleted in next releases (already deleted for mozilla-plugin in the source code).

edwart
Blank Cone
Blank Cone
Posts: 16
Joined: 22 Dec 2008 19:24

Re: Problem with log messages over javascript API

Postby edwart » 29 May 2009 13:31

Hi,

will be there an alternative interface to check the error-logs?

Kind regards,
edwart

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Problem with log messages over javascript API

Postby thannoy » 29 May 2009 15:30

I think you will be able to look at the console (printed messages).
On Linux, it should be more easy (runing the browser from a console, etc). In Windows/mozilla it should be doable (giving parameter -console to mozilla iirc).
For the IE/ActiveX, maybe more difficult. Maybe ie4linux under windows/wine is the best way.


Return to “VLC 1.0.0 testing”

Who is online

Users browsing this forum: No registered users and 12 guests