private static void DisplayMediaStatisticsCallbackF(IntPtr channelNamePtr, IntPtr participantNamePtr, IntPtr remoteSystemIdPtr, IntPtr callRatePtr, IntPtr packetsLostPtr, IntPtr packetLossPtr, IntPtr videoProtocolPtr, IntPtr videoRatePtr, IntPtr videoRateUsedPtr, IntPtr videoFrameRatePtr, IntPtr videoPacketsLostPtr, IntPtr videoJitterPtr, IntPtr videoFormatPtr, IntPtr errorConcealmentPtr, IntPtr audioProtocolPtr, IntPtr audioRatePtr, IntPtr audioPacketsLostPtr, IntPtr audioJitterPtr, IntPtr audioEncryptPtr, IntPtr videoEncryptPtr, IntPtr feccEncryptPtr, IntPtr audioReceivedPacketPtr, IntPtr roundTripTimePtr, IntPtr fullIntraFrameRequestPtr, IntPtr intraFrameSentPtr, IntPtr packetsCountPtr, IntPtr overallCPULoadPtr, IntPtr channelNumPtr) { var channelName = IntPtrHelper.IntPtrTostring(channelNamePtr); var participantName = IntPtrHelper.IntPtrTostring(participantNamePtr); var remoteSystemId = IntPtrHelper.IntPtrTostring(remoteSystemIdPtr); var callRate = IntPtrHelper.IntPtrTostring(callRatePtr); var packetsLost = IntPtrHelper.IntPtrTostring(packetsLostPtr); var packetLoss = IntPtrHelper.IntPtrTostring(packetLossPtr); var videoProtocol = IntPtrHelper.IntPtrTostring(videoProtocolPtr); var videoRate = IntPtrHelper.IntPtrTostring(videoRatePtr); var videoRateUsed = IntPtrHelper.IntPtrTostring(videoRateUsedPtr); var videoFrameRate = IntPtrHelper.IntPtrTostring(videoFrameRatePtr); var videoPacketsLost = IntPtrHelper.IntPtrTostring(videoPacketsLostPtr); var videoJitter = IntPtrHelper.IntPtrTostring(videoJitterPtr); var videoFormat = IntPtrHelper.IntPtrTostring(videoFormatPtr); var errorConcealment = IntPtrHelper.IntPtrTostring(errorConcealmentPtr); var audioProtocol = IntPtrHelper.IntPtrTostring(audioProtocolPtr); var audioRate = IntPtrHelper.IntPtrTostring(audioRatePtr); var audioPacketsLost = IntPtrHelper.IntPtrTostring(audioPacketsLostPtr); var audioJitter = IntPtrHelper.IntPtrTostring(audioJitterPtr); var audioEncrypt = IntPtrHelper.IntPtrTostring(audioEncryptPtr); var videoEncrypt = IntPtrHelper.IntPtrTostring(videoEncryptPtr); var feccEncrypt = IntPtrHelper.IntPtrTostring(feccEncryptPtr); var audioReceivedPacket = IntPtrHelper.IntPtrTostring(audioReceivedPacketPtr); var roundTripTime = IntPtrHelper.IntPtrTostring(roundTripTimePtr); var fullIntraFrameRequest = IntPtrHelper.IntPtrTostring(fullIntraFrameRequestPtr); var intraFrameSent = IntPtrHelper.IntPtrTostring(intraFrameSentPtr); var packetsCount = IntPtrHelper.IntPtrTostring(packetsCountPtr); var overallCPULoad = IntPtrHelper.IntPtrTostring(overallCPULoadPtr); int channelNo = 0; if (int.TryParse(IntPtrHelper.IntPtrTostring(channelNumPtr), out channelNo)) { var statistics = new MediaStatistics() { ChannelName = channelName, ParticipantName = participantName, RemoteSystemId = remoteSystemId, CallRate = callRate, PacketsLost = packetsLost, PacketLoss = packetLoss, VideoProtocol = videoProtocol, VideoRate = videoRate, VideoRateUsed = videoRateUsed, VideoFrameRate = videoFrameRate, VideoPacketsLost = videoPacketsLost, VideoJitter = videoJitter, VideoFormat = videoFormat, ErrorConcealment = errorConcealment, AudioProtocol = audioProtocol, AudioRate = audioRate, AudioPacketsLost = audioPacketsLost, AudioJitter = audioJitter, AudioEncrypt = audioEncrypt, VideoEncrypt = videoEncrypt, FeccEncrypt = feccEncrypt, AudioReceivedPacket = audioReceivedPacket, RoundTripTime = roundTripTime, FullIntraFrameRequest = fullIntraFrameRequest, IntraFrameSent = intraFrameSent, PacketsCount = packetsCount, OverallCPULoad = overallCPULoad, ChannelNum = channelNo }; callView.Invoke(new Action(() => { MFWCore.mediaStatistics.Add(statistics); })); } }
public static string GetVersion() { var intPtrVersion = WrapperInterface.getVersion(); return(IntPtrHelper.IntPtrToUTF8string(intPtrVersion)); }
private static void AddEventCallbackF(IntPtr eventHandle, int callHandle, IntPtr placeId, int eventType, IntPtr callerName, IntPtr calleeName, int userCode, IntPtr reason, int wndWidth, int wndHeight, bool plugDeviceStatus, IntPtr plugDeviceName, IntPtr deviceHandle, IntPtr ipAddress, int callMode, int streamId, int activeSpeakerStreamId, int remoteVideoChannelNum, IntPtr remoteChannelDisplayName, bool isActiveSpeaker, int isTalkingFlag, IntPtr regID, IntPtr sipCallId, IntPtr version, IntPtr serialNumber, IntPtr notBefore, IntPtr notAfter, IntPtr issuer, IntPtr subject, IntPtr signatureAlgorithm, IntPtr fingerPrintAlgorithm, IntPtr fingerPrint, IntPtr publickey, IntPtr basicContraints, IntPtr keyUsage, IntPtr rxtendedKeyUsage, IntPtr subjectAlternateNames, IntPtr pemCert, bool isCertHostNameOK, int certFailReason, int certConfirmId, IntPtr transcoderTaskId, IntPtr transcoderInputFileName, int iceStatus, IntPtr sutLiteMessage, bool isVideoOK, IntPtr mediaIPAddr, int discoveryStatus) { var strplaceId = IntPtrHelper.IntPtrTostring(placeId); var strcallerName = IntPtrHelper.IntPtrTostring(callerName); var strcalleeName = IntPtrHelper.IntPtrTostring(calleeName); var strreason = IntPtrHelper.IntPtrTostring(reason); var strplugDeviceName = IntPtrHelper.IntPtrTostring(plugDeviceName); var strdeviceHandle = IntPtrHelper.IntPtrTostring(deviceHandle); var stripAddress = IntPtrHelper.IntPtrTostring(ipAddress); var strremoteChannelDisplayName = IntPtrHelper.IntPtrTostring(remoteChannelDisplayName); var strregID = IntPtrHelper.IntPtrTostring(regID); var strsipCallId = IntPtrHelper.IntPtrTostring(sipCallId); var strVersion = IntPtrHelper.IntPtrTostring(version); var strSerialNumber = IntPtrHelper.IntPtrTostring(serialNumber); var strNotBefore = IntPtrHelper.IntPtrTostring(notBefore); var strNotAfter = IntPtrHelper.IntPtrTostring(notAfter); var strIssuer = IntPtrHelper.IntPtrTostring(issuer); var strSubject = IntPtrHelper.IntPtrTostring(subject); var strSignatureAlgorithm = IntPtrHelper.IntPtrTostring(signatureAlgorithm); var strFingerPrintAlgorithm = IntPtrHelper.IntPtrTostring(fingerPrintAlgorithm); var strFingerPrint = IntPtrHelper.IntPtrTostring(fingerPrint); var strPublickey = IntPtrHelper.IntPtrTostring(publickey); var strBasicContraints = IntPtrHelper.IntPtrTostring(basicContraints); var strKeyUsage = IntPtrHelper.IntPtrTostring(keyUsage); var strExtendedKeyUsage = IntPtrHelper.IntPtrTostring(rxtendedKeyUsage); var strSubjectAlternateNames = IntPtrHelper.IntPtrTostring(subjectAlternateNames); var strPemCert = IntPtrHelper.IntPtrTostring(pemCert); var strtranscoderInputFileName = IntPtrHelper.IntPtrTostring(transcoderInputFileName); var strSUTLiteMessage = IntPtrHelper.IntPtrTostring(sutLiteMessage); var strMediaIPAddr = IntPtrHelper.IntPtrTostring(mediaIPAddr); Event evt = new Event(eventHandle, callHandle, strplaceId, (EventType)eventType, strcallerName, strcalleeName, userCode, strreason, wndWidth, wndHeight, plugDeviceStatus, strplugDeviceName, strdeviceHandle, stripAddress, (CallMode)callMode, streamId, activeSpeakerStreamId, remoteVideoChannelNum, strremoteChannelDisplayName, isActiveSpeaker, isTalkingFlag, strregID, strsipCallId, strVersion, strSerialNumber, strNotBefore, strNotAfter, strIssuer, strSubject, strSignatureAlgorithm, strFingerPrintAlgorithm, strFingerPrint, strPublickey, strBasicContraints, strKeyUsage, strExtendedKeyUsage, strSubjectAlternateNames, strPemCert, isCertHostNameOK, certFailReason, certConfirmId, transcoderTaskId, strtranscoderInputFileName, (ICEStatus)iceStatus, strSUTLiteMessage, isVideoOK, strMediaIPAddr, (AutoDiscoveryStatus)discoveryStatus); AddEvent(evt); }