reading player stats from VLC
Posted: 11 Sep 2011 20:21
hello,
im working on a C# application that reads from shared memory and then sends the data to an arduino about time, elapsed, name etc to be displayed on an character LCD. i already have done similar to get PC temps and send them to arduino, now i was trying to get vlc stats when playing a movie or song. does VLC put this info(time elapsed etc) in shared memory where i can access it?
the code below is part of what i used for the pc temps shared memory C# app. it gets all of the shared memory(which is formatted as xml) and writes to string. then some other code(not below) takes that string and reads the xml like file and spits out values.
so what im asking is:
does vlc use shared memory?
If so, what is the VLC shared memory address name?
and If so, how does vlc store this info in shared memory?
thanks!
im working on a C# application that reads from shared memory and then sends the data to an arduino about time, elapsed, name etc to be displayed on an character LCD. i already have done similar to get PC temps and send them to arduino, now i was trying to get vlc stats when playing a movie or song. does VLC put this info(time elapsed etc) in shared memory where i can access it?
the code below is part of what i used for the pc temps shared memory C# app. it gets all of the shared memory(which is formatted as xml) and writes to string. then some other code(not below) takes that string and reads the xml like file and spits out values.
Code: Select all
using (var file = MemoryMappedFile.OpenExisting("AIDA64_SensorValues"))
{
using (var readerz = file.CreateViewAccessor(0, 0))
{
var bytes = new byte[195];
var encoding = Encoding.ASCII;
readerz.ReadArray<byte>(0, bytes, 0, bytes.Length);
StringReader stringz = new StringReader(encoding.GetString(bytes));
does vlc use shared memory?
If so, what is the VLC shared memory address name?
and If so, how does vlc store this info in shared memory?
thanks!