Hey Adam
I did some test and for now I can say I found a solution for it. Tried few things most of them wasnt working at all (ending up with the same error which you came with here).
I noticed that problem is with simple type like uint, int and so on when we try to nest arrays or struct in the...
Hello Adam
You are probably right about it (that it's not a full union anymore).
Can you provide more details where you are going to use it since the sample wasnt so accurate also there was 'using static' which could cause problem when you tried to make instance in main?
If that is not a...
Hey Adam Guttman.
I didnt check it on my own yet but from an exception which you posted I can suspect that [FieldOffsetAttribute(0)] for dwLocalChannel is wrongly calculated.
Since both of 'structures' (NET_DVR_CHANNEL and byRes[152]) have the same size it seems that dwLocalChannel causing...
Hi petkoo,
I believe you should use byte[] instead of string. Convert the string to byte array then to IntPtr and NET_DVR_SendRemoteConfig(int lHandle, uint dwDataType, IntPtr pSendBuf, uint dwBufSize);
Sorry but in this moment i dont have time to test it out on my own.
Best regards.
Hi petkoo and ARJunior,
Good job with solving your problem ARJunior.
I tried to implement it on my own. Unfortunately, I am getting the same result in both cases, like for problem which ARJunior presented few posts ago, error 23 (Device does not support this function.). I am unable to check...
Can you write me steps which I need follow to get this info by from ivms4200? I wasnt using this software before so I want to be sure I will find the same functionality which you would like to achive.
Then I will be able to take a look when find some spare time.
Best regards.
Hello again ARJunior,
I am not sure if that is error since it's c++.
Dll header definition has BYTE byRes1[3] while the one in programming manual has
BYTE byUsed and BYTE byRes1[2] those two together is kinda BYTE byRes1[3]. If we use this structure as a pointer in call then that array...
Hi,
Unfortunatelly my device doesnt support this funtionality.
Here is what I have done, maybe it will help you somehow.
structures definitions:
public struct NET_DVR_CHAN_INFO
{
public uint dwSize; // Structure size
public byte byValid...
Hey ARJunior
I checked the SDK and in my opinion you should use function called NET_DVR_GetDeviceConfig and structure which you have found is an output parameter LPVOID lpOutBuffer,
BOOL NET_DVR_GetDeviceConfig( LONG lUserID, DWORD dwCommand, DWORD dwCount, LPVOID lpInBuffer, DWORD...
Hey ARJunior,
If you are getting RealPlay stream from Network Video Recorder (NVR/DVR) in my opinion it will be enough, there is no need to close and open connection to the same DVR between changing channels.
But in case of connecting to diffrent cameras I would use also NET_DVR_Logout and...
Due the lack of time (again) i will simply share with you my test solution which I have made yesterday basing on your code.
I tested it and it works fine for me so please check it and let me know if it's the same for you.
I just looked at and tested out your code. I havent noticed initializing and login parts of your code like SDKMethods.NET_DVR_Init and NET_DVR_Login_V30 but I assume you did it in another place of ur program.
By doing this you just got rid of your destination component for video which means...
In this moment I dont have spare time to peek on ur piece of code. I will be able to look at this in 4-5 hours.
Can you try my code with RealPlay_V40 from previous posts and then if it will work (which should since I tested it) compare it with yours?
I am asumming you want to display this video...