Page 1 of 1

C# Activex Vlcplugin2 Log messages method not implemented

Posted: 16 Feb 2007 18:44
by Emerica82

Code: Select all

if (axVLCPlugin21.log.messages.count > 0) { foreach (AXVLC.IVLCMessage msg in axVLCPlugin21.log.messages) { System.Console.WriteLine(msg.message); } } axVLCPlugin21.log.messages.clear();
This is throwing a Method not implemented error on axVLCPlugin21.log.messages

Any idea when this might be implemented, would be nice to pull the log data from the vlc control. Tried on 0.8.6 and 0.9.0 as of last night.

Thanks[/code]

Posted: 22 Feb 2007 18:06
by Quovodis

Code: Select all

foreach (AXVLC.IVLCMessage msg in axVLCPlugin21.log.messages)
this requires that the
IEmumDispatch
interface be implemented by the messages object, which it isn't. use the iterator object instead

Posted: 28 Feb 2007 03:00
by Rob3121
I am using vb.net 2005 and I'm having the same problem. this is my code...

Code: Select all

If VLC.log.messages.count > 0 Then For Each msg As AXVLC.IVLCMessageIterator In VLC.log.messages System.Console.WriteLine(msg.message) Next End If
I also get a not implemented error on the same line. I changed it to Iterator and still have the same problem. Any help would be great!

Posted: 28 Feb 2007 16:46
by Emerica82

Code: Select all

if (axVLCPlugin21.log.messages.count > 0) { AXVLC.IVLCMessageIterator iter = axVLCPlugin21.log.messages.iterator(); while (iter.hasNext) { AXVLC.IVLCMessage msg = iter.next(); vlclog.AppendText(msg.severity + " - " + msg.type + " - " + msg.name + " - " + msg.message + "\n"); } axVLCPlugin21.log.messages.clear(); }
This is working for me for the first couple videos, then the odd videos seem to stall the log output.

Now that I got log results I noticed i would be able to parse the log for playlist entries being added removed, etc. But no go so far due to the stalling log. Maybe it's the code above? I'm pretty new to C#

Posted: 28 Feb 2007 18:58
by Rob3121

Code: Select all

axVLCPlugin21.log.messages.count > 0
It was working for a few videos with me too, then stopped. I think the above code is the problem. I put a message.log.count in a loop and count was sometimes negative. I have no clue why but I changed the code to

Code: Select all

If axVLCPlugin21.log.messages.count = 0 Then Exit Sub
now it works perfect every time. Thank you for your input!

Posted: 28 Feb 2007 21:20
by Emerica82
Seem to be the case, I commented out the count statement and stalls went away.
Thanks

Posted: 02 Mar 2007 19:56
by Quovodis
i have recently implemented the _NewEnum property on the messages object, which mean that you should be able to use the 'for each message in log.messages' in VB