C# Activex Vlcplugin2 Log messages method not implemented

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Emerica82
New Cone
New Cone
Posts: 8
Joined: 16 Feb 2007 06:15

C# Activex Vlcplugin2 Log messages method not implemented

Postby Emerica82 » 16 Feb 2007 18:44

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]

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 22 Feb 2007 18:06

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

Rob3121
New Cone
New Cone
Posts: 2
Joined: 28 Feb 2007 02:53

Postby Rob3121 » 28 Feb 2007 03:00

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!

Emerica82
New Cone
New Cone
Posts: 8
Joined: 16 Feb 2007 06:15

Postby Emerica82 » 28 Feb 2007 16:46

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#

Rob3121
New Cone
New Cone
Posts: 2
Joined: 28 Feb 2007 02:53

Postby Rob3121 » 28 Feb 2007 18:58

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!

Emerica82
New Cone
New Cone
Posts: 8
Joined: 16 Feb 2007 06:15

Postby Emerica82 » 28 Feb 2007 21:20

Seem to be the case, I commented out the count statement and stalls went away.
Thanks

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 02 Mar 2007 19:56

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 35 guests