├── .gitignore ├── LICENSE ├── README.md ├── idl ├── AudioBuffers.idl ├── AudioOptions.idl ├── AudioTrackSource.idl ├── Certificate.idl ├── Configuration.idl ├── DTMFSender.idl ├── DataChannel.idl ├── Error.idl ├── IceCandidate.idl ├── IceServer.idl ├── MediaConstraints.idl ├── MediaElement.idl ├── MediaSample.idl ├── MediaSource.idl ├── MediaStreamTrack.idl ├── OAuthCredential.idl ├── OfferAnswerOptions.idl ├── PeerConnection.idl ├── RtpParameters.idl ├── RtpReceiver.idl ├── RtpSender.idl ├── RtpTransceiver.idl ├── SessionDescription.idl ├── StatsProvider.idl ├── StatsReport.idl ├── VideoBuffers.idl ├── VideoCapturer.idl ├── VideoOptions.idl ├── VideoTrackSource.idl ├── WebRtc.idl ├── WebRtcFactory.idl ├── config.json └── enums.idl └── windows ├── BUILD.gn └── wrapper ├── Org.WebRtc.Glue.events.json ├── impl_org_webRtc.cpp ├── impl_org_webRtc.h ├── impl_org_webRtc_AudioBuffer.cpp ├── impl_org_webRtc_AudioBuffer.h ├── impl_org_webRtc_AudioBufferConfiguration.cpp ├── impl_org_webRtc_AudioBufferConfiguration.h ├── impl_org_webRtc_AudioBufferEvent.cpp ├── impl_org_webRtc_AudioBufferEvent.h ├── impl_org_webRtc_AudioData.cpp ├── impl_org_webRtc_AudioData.h ├── impl_org_webRtc_AudioFrame.cpp ├── impl_org_webRtc_AudioFrame.h ├── impl_org_webRtc_AudioOptions.cpp ├── impl_org_webRtc_AudioOptions.h ├── impl_org_webRtc_AudioProcessingInitializeEvent.cpp ├── impl_org_webRtc_AudioProcessingInitializeEvent.h ├── impl_org_webRtc_AudioProcessingRuntimeSettingEvent.cpp ├── impl_org_webRtc_AudioProcessingRuntimeSettingEvent.h ├── impl_org_webRtc_AudioTrackSource.cpp ├── impl_org_webRtc_AudioTrackSource.h ├── impl_org_webRtc_Constraint.cpp ├── impl_org_webRtc_Constraint.h ├── impl_org_webRtc_EventQueue.cpp ├── impl_org_webRtc_EventQueue.h ├── impl_org_webRtc_EventQueueMaker.cpp ├── impl_org_webRtc_EventQueueMaker.h ├── impl_org_webRtc_MediaConstraints.cpp ├── impl_org_webRtc_MediaConstraints.h ├── impl_org_webRtc_MediaElement.cpp ├── impl_org_webRtc_MediaElement.h ├── impl_org_webRtc_MediaElementMaker.cpp ├── impl_org_webRtc_MediaElementMaker.h ├── impl_org_webRtc_MediaSample.cpp ├── impl_org_webRtc_MediaSample.h ├── impl_org_webRtc_MediaSource.cpp ├── impl_org_webRtc_MediaSource.h ├── impl_org_webRtc_MediaStreamTrack.cpp ├── impl_org_webRtc_MediaStreamTrack.h ├── impl_org_webRtc_MediaTrackSource.cpp ├── impl_org_webRtc_MediaTrackSource.h ├── impl_org_webRtc_MessageEvent.cpp ├── impl_org_webRtc_MessageEvent.h ├── impl_org_webRtc_MillisecondIntervalRange.cpp ├── impl_org_webRtc_MillisecondIntervalRange.h ├── impl_org_webRtc_RTCAnswerOptions.cpp ├── impl_org_webRtc_RTCAnswerOptions.h ├── impl_org_webRtc_RTCAudioHandlerStats.cpp ├── impl_org_webRtc_RTCAudioHandlerStats.h ├── impl_org_webRtc_RTCAudioReceiverStats.cpp ├── impl_org_webRtc_RTCAudioReceiverStats.h ├── impl_org_webRtc_RTCAudioSenderStats.cpp ├── impl_org_webRtc_RTCAudioSenderStats.h ├── impl_org_webRtc_RTCBitrateParameters.cpp ├── impl_org_webRtc_RTCBitrateParameters.h ├── impl_org_webRtc_RTCCertificate.cpp ├── impl_org_webRtc_RTCCertificate.h ├── impl_org_webRtc_RTCCertificateStats.cpp ├── impl_org_webRtc_RTCCertificateStats.h ├── impl_org_webRtc_RTCCodecStats.cpp ├── impl_org_webRtc_RTCCodecStats.h ├── impl_org_webRtc_RTCConfiguration.cpp ├── impl_org_webRtc_RTCConfiguration.h ├── impl_org_webRtc_RTCDataChannel.cpp ├── impl_org_webRtc_RTCDataChannel.h ├── impl_org_webRtc_RTCDataChannelEvent.cpp ├── impl_org_webRtc_RTCDataChannelEvent.h ├── impl_org_webRtc_RTCDataChannelInit.cpp ├── impl_org_webRtc_RTCDataChannelInit.h ├── impl_org_webRtc_RTCDataChannelStats.cpp ├── impl_org_webRtc_RTCDataChannelStats.h ├── impl_org_webRtc_RTCDtlsFingerprint.cpp ├── impl_org_webRtc_RTCDtlsFingerprint.h ├── impl_org_webRtc_RTCDtmfSender.cpp ├── impl_org_webRtc_RTCDtmfSender.h ├── impl_org_webRtc_RTCDtmfToneChangeEvent.cpp ├── impl_org_webRtc_RTCDtmfToneChangeEvent.h ├── impl_org_webRtc_RTCError.cpp ├── impl_org_webRtc_RTCError.h ├── impl_org_webRtc_RTCIceCandidate.cpp ├── impl_org_webRtc_RTCIceCandidate.h ├── impl_org_webRtc_RTCIceCandidateInit.cpp ├── impl_org_webRtc_RTCIceCandidateInit.h ├── impl_org_webRtc_RTCIceCandidatePairStats.cpp ├── impl_org_webRtc_RTCIceCandidatePairStats.h ├── impl_org_webRtc_RTCIceCandidateStats.cpp ├── impl_org_webRtc_RTCIceCandidateStats.h ├── impl_org_webRtc_RTCIceServer.cpp ├── impl_org_webRtc_RTCIceServer.h ├── impl_org_webRtc_RTCInboundRtpStreamStats.cpp ├── impl_org_webRtc_RTCInboundRtpStreamStats.h ├── impl_org_webRtc_RTCKeyParams.cpp ├── impl_org_webRtc_RTCKeyParams.h ├── impl_org_webRtc_RTCMediaHandlerStats.cpp ├── impl_org_webRtc_RTCMediaHandlerStats.h ├── impl_org_webRtc_RTCMediaStreamStats.cpp ├── impl_org_webRtc_RTCMediaStreamStats.h ├── impl_org_webRtc_RTCOAuthCredential.cpp ├── impl_org_webRtc_RTCOAuthCredential.h ├── impl_org_webRtc_RTCOfferAnswerOptions.cpp ├── impl_org_webRtc_RTCOfferAnswerOptions.h ├── impl_org_webRtc_RTCOfferOptions.cpp ├── impl_org_webRtc_RTCOfferOptions.h ├── impl_org_webRtc_RTCOutboundRtpStreamStats.cpp ├── impl_org_webRtc_RTCOutboundRtpStreamStats.h ├── impl_org_webRtc_RTCPeerConnection.cpp ├── impl_org_webRtc_RTCPeerConnection.h ├── impl_org_webRtc_RTCPeerConnectionIceErrorEvent.cpp ├── impl_org_webRtc_RTCPeerConnectionIceErrorEvent.h ├── impl_org_webRtc_RTCPeerConnectionIceEvent.cpp ├── impl_org_webRtc_RTCPeerConnectionIceEvent.h ├── impl_org_webRtc_RTCPeerConnectionStats.cpp ├── impl_org_webRtc_RTCPeerConnectionStats.h ├── impl_org_webRtc_RTCRSAParams.cpp ├── impl_org_webRtc_RTCRSAParams.h ├── impl_org_webRtc_RTCReceivedRtpStreamStats.cpp ├── impl_org_webRtc_RTCReceivedRtpStreamStats.h ├── impl_org_webRtc_RTCRemoteInboundRtpStreamStats.cpp ├── impl_org_webRtc_RTCRemoteInboundRtpStreamStats.h ├── impl_org_webRtc_RTCRemoteOutboundRtpStreamStats.cpp ├── impl_org_webRtc_RTCRemoteOutboundRtpStreamStats.h ├── impl_org_webRtc_RTCRtcpFeedback.cpp ├── impl_org_webRtc_RTCRtcpFeedback.h ├── impl_org_webRtc_RTCRtcpParameters.cpp ├── impl_org_webRtc_RTCRtcpParameters.h ├── impl_org_webRtc_RTCRtpCapabilities.cpp ├── impl_org_webRtc_RTCRtpCapabilities.h ├── impl_org_webRtc_RTCRtpCodecCapability.cpp ├── impl_org_webRtc_RTCRtpCodecCapability.h ├── impl_org_webRtc_RTCRtpCodecParameters.cpp ├── impl_org_webRtc_RTCRtpCodecParameters.h ├── impl_org_webRtc_RTCRtpCodingParameters.cpp ├── impl_org_webRtc_RTCRtpCodingParameters.h ├── impl_org_webRtc_RTCRtpContributingSource.cpp ├── impl_org_webRtc_RTCRtpContributingSource.h ├── impl_org_webRtc_RTCRtpContributingSourceStats.cpp ├── impl_org_webRtc_RTCRtpContributingSourceStats.h ├── impl_org_webRtc_RTCRtpDecodingParameters.cpp ├── impl_org_webRtc_RTCRtpDecodingParameters.h ├── impl_org_webRtc_RTCRtpEncodingParameters.cpp ├── impl_org_webRtc_RTCRtpEncodingParameters.h ├── impl_org_webRtc_RTCRtpFecParameters.cpp ├── impl_org_webRtc_RTCRtpFecParameters.h ├── impl_org_webRtc_RTCRtpHeaderExtensionCapability.cpp ├── impl_org_webRtc_RTCRtpHeaderExtensionCapability.h ├── impl_org_webRtc_RTCRtpHeaderExtensionParameters.cpp ├── impl_org_webRtc_RTCRtpHeaderExtensionParameters.h ├── impl_org_webRtc_RTCRtpParameters.cpp ├── impl_org_webRtc_RTCRtpParameters.h ├── impl_org_webRtc_RTCRtpReceiveParameters.cpp ├── impl_org_webRtc_RTCRtpReceiveParameters.h ├── impl_org_webRtc_RTCRtpReceiver.cpp ├── impl_org_webRtc_RTCRtpReceiver.h ├── impl_org_webRtc_RTCRtpRtxParameters.cpp ├── impl_org_webRtc_RTCRtpRtxParameters.h ├── impl_org_webRtc_RTCRtpSendParameters.cpp ├── impl_org_webRtc_RTCRtpSendParameters.h ├── impl_org_webRtc_RTCRtpSender.cpp ├── impl_org_webRtc_RTCRtpSender.h ├── impl_org_webRtc_RTCRtpStreamStats.cpp ├── impl_org_webRtc_RTCRtpStreamStats.h ├── impl_org_webRtc_RTCRtpSynchronizationSource.cpp ├── impl_org_webRtc_RTCRtpSynchronizationSource.h ├── impl_org_webRtc_RTCRtpTransceiver.cpp ├── impl_org_webRtc_RTCRtpTransceiver.h ├── impl_org_webRtc_RTCRtpTransceiverInit.cpp ├── impl_org_webRtc_RTCRtpTransceiverInit.h ├── impl_org_webRtc_RTCSenderAudioTrackAttachmentStats.cpp ├── impl_org_webRtc_RTCSenderAudioTrackAttachmentStats.h ├── impl_org_webRtc_RTCSenderVideoTrackAttachmentStats.cpp ├── impl_org_webRtc_RTCSenderVideoTrackAttachmentStats.h ├── impl_org_webRtc_RTCSentRtpStreamStats.cpp ├── impl_org_webRtc_RTCSentRtpStreamStats.h ├── impl_org_webRtc_RTCSessionDescription.cpp ├── impl_org_webRtc_RTCSessionDescription.h ├── impl_org_webRtc_RTCSessionDescriptionInit.cpp ├── impl_org_webRtc_RTCSessionDescriptionInit.h ├── impl_org_webRtc_RTCStats.cpp ├── impl_org_webRtc_RTCStats.h ├── impl_org_webRtc_RTCStatsProvider.cpp ├── impl_org_webRtc_RTCStatsProvider.h ├── impl_org_webRtc_RTCStatsReport.cpp ├── impl_org_webRtc_RTCStatsReport.h ├── impl_org_webRtc_RTCStatsTypeSet.cpp ├── impl_org_webRtc_RTCStatsTypeSet.h ├── impl_org_webRtc_RTCTrackEvent.cpp ├── impl_org_webRtc_RTCTrackEvent.h ├── impl_org_webRtc_RTCTransportStats.cpp ├── impl_org_webRtc_RTCTransportStats.h ├── impl_org_webRtc_RTCVideoHandlerStats.cpp ├── impl_org_webRtc_RTCVideoHandlerStats.h ├── impl_org_webRtc_RTCVideoReceiverStats.cpp ├── impl_org_webRtc_RTCVideoReceiverStats.h ├── impl_org_webRtc_RTCVideoSenderStats.cpp ├── impl_org_webRtc_RTCVideoSenderStats.h ├── impl_org_webRtc_VideoCapturer.cpp ├── impl_org_webRtc_VideoCapturer.h ├── impl_org_webRtc_VideoCapturerInputSize.cpp ├── impl_org_webRtc_VideoCapturerInputSize.h ├── impl_org_webRtc_VideoData.cpp ├── impl_org_webRtc_VideoData.h ├── impl_org_webRtc_VideoDeviceInfo.cpp ├── impl_org_webRtc_VideoDeviceInfo.h ├── impl_org_webRtc_VideoFormat.cpp ├── impl_org_webRtc_VideoFormat.h ├── impl_org_webRtc_VideoFrameBuffer.cpp ├── impl_org_webRtc_VideoFrameBuffer.h ├── impl_org_webRtc_VideoFrameBufferEvent.cpp ├── impl_org_webRtc_VideoFrameBufferEvent.h ├── impl_org_webRtc_VideoFrameNativeBuffer.cpp ├── impl_org_webRtc_VideoFrameNativeBuffer.h ├── impl_org_webRtc_VideoFramePlanarYuvBuffer.cpp ├── impl_org_webRtc_VideoFramePlanarYuvBuffer.h ├── impl_org_webRtc_VideoFramePlanarYuvaBuffer.cpp ├── impl_org_webRtc_VideoFramePlanarYuvaBuffer.h ├── impl_org_webRtc_VideoOptions.cpp ├── impl_org_webRtc_VideoOptions.h ├── impl_org_webRtc_VideoTrackSource.cpp ├── impl_org_webRtc_VideoTrackSource.h ├── impl_org_webRtc_VideoTrackSourceStats.cpp ├── impl_org_webRtc_VideoTrackSourceStats.h ├── impl_org_webRtc_WebRtcFactory.cpp ├── impl_org_webRtc_WebRtcFactory.h ├── impl_org_webRtc_WebRtcFactoryConfiguration.cpp ├── impl_org_webRtc_WebRtcFactoryConfiguration.h ├── impl_org_webRtc_WebRtcLib.cpp ├── impl_org_webRtc_WebRtcLib.h ├── impl_org_webRtc_WebRtcLibConfiguration.cpp ├── impl_org_webRtc_WebRtcLibConfiguration.h ├── impl_org_webRtc_enums.cpp ├── impl_org_webRtc_enums.h ├── impl_org_webRtc_helpers.cpp ├── impl_org_webRtc_helpers.h ├── impl_org_webRtc_post_include.h ├── impl_org_webRtc_pre_include.h ├── impl_webrtc_AudioDeviceWasapi.cpp ├── impl_webrtc_AudioDeviceWasapi.h ├── impl_webrtc_IAudioDeviceWasapi.h ├── impl_webrtc_IMediaStreamSource.h ├── impl_webrtc_IVideoCaptureMediaSink.h ├── impl_webrtc_IVideoCapturer.h ├── impl_webrtc_MRCAudioEffectDefinition.cpp ├── impl_webrtc_MRCAudioEffectDefinition.h ├── impl_webrtc_MRCEffectTemplate.h ├── impl_webrtc_MRCVideoEffectDefinition.cpp ├── impl_webrtc_MRCVideoEffectDefinition.h ├── impl_webrtc_MediaStreamSource.cpp ├── impl_webrtc_MediaStreamSource.h ├── impl_webrtc_VideoCaptureMediaSink.cpp ├── impl_webrtc_VideoCaptureMediaSink.h ├── impl_webrtc_VideoCapturer.cpp ├── impl_webrtc_VideoCapturer.h ├── override ├── c │ ├── c_helper_throwers.cpp │ ├── c_org_webRtc_AudioData.cpp │ ├── c_org_webRtc_AudioData.h │ ├── c_org_webRtc_EventQueueMaker.cpp │ ├── c_org_webRtc_EventQueueMaker.h │ ├── c_org_webRtc_MediaElementMaker.cpp │ ├── c_org_webRtc_MediaElementMaker.h │ ├── c_org_webRtc_MediaSample.cpp │ ├── c_org_webRtc_MediaSample.h │ ├── c_org_webRtc_MediaSource.cpp │ ├── c_org_webRtc_MediaSource.h │ ├── c_org_webRtc_VideoData.cpp │ ├── c_org_webRtc_VideoData.h │ ├── c_org_webRtc_VideoDeviceInfo.cpp │ └── c_org_webRtc_VideoDeviceInfo.h ├── cppwinrt │ ├── AudioData.cpp │ ├── AudioData.h │ ├── EventQueueMaker.cpp │ ├── EventQueueMaker.h │ ├── MediaElementMaker.cpp │ ├── MediaElementMaker.h │ ├── MediaSample.cpp │ ├── MediaSample.h │ ├── MediaSource.cpp │ ├── MediaSource.h │ ├── VideoData.cpp │ ├── VideoData.h │ ├── VideoDeviceInfo.cpp │ ├── VideoDeviceInfo.h │ └── cppwinrt_Helpers_Throwers.cpp ├── cx │ ├── Org_WebRtc_AudioData.cpp │ ├── Org_WebRtc_AudioData.h │ ├── Org_WebRtc_EventQueue.cpp │ ├── Org_WebRtc_EventQueue.h │ ├── Org_WebRtc_EventQueueMaker.cpp │ ├── Org_WebRtc_EventQueueMaker.h │ ├── Org_WebRtc_MediaElement.cpp │ ├── Org_WebRtc_MediaElement.h │ ├── Org_WebRtc_MediaElementMaker.cpp │ ├── Org_WebRtc_MediaElementMaker.h │ ├── Org_WebRtc_MediaSample.cpp │ ├── Org_WebRtc_MediaSample.h │ ├── Org_WebRtc_MediaSource.cpp │ ├── Org_WebRtc_MediaSource.h │ ├── Org_WebRtc_VideoDeviceInfo.cpp │ ├── Org_WebRtc_VideoDeviceInfo.h │ └── cx_Helpers_Throwers.cpp ├── dotnet │ ├── net_override_apis.cs │ ├── net_override_org_webRtc_AudioData.cs │ ├── net_override_org_webRtc_EventQueueMaker.cs │ ├── net_override_org_webRtc_MediaElementMaker.cs │ ├── net_override_org_webRtc_MediaSample.cs │ ├── net_override_org_webRtc_MediaSource.cs │ ├── net_override_org_webRtc_VideoData.cs │ └── net_override_org_webRtc_VideoDeviceInfo.cs ├── msidl │ ├── Org.WebRtc.AudioData.idl │ ├── Org.WebRtc.EventQueueMaker.idl │ ├── Org.WebRtc.MediaElementMaker.idl │ ├── Org.WebRtc.MediaSample.idl │ ├── Org.WebRtc.MediaSource.idl │ ├── Org.WebRtc.VideoData.idl │ └── Org.WebRtc.VideoDeviceInfo.idl ├── org_webRtc_AudioData.h ├── org_webRtc_EventQueueMaker.h ├── org_webRtc_MediaElementMaker.h ├── org_webRtc_MediaSample.h ├── org_webRtc_MediaSource.h ├── org_webRtc_VideoData.h └── org_webRtc_VideoDeviceInfo.h └── types.h /.gitignore: -------------------------------------------------------------------------------- 1 | windows/wrapper/generated/ 2 | *.events* 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2018, The WebRTC project authors. All rights reserved. 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | * Neither the name of the copyright holder nor the names of its 17 | contributors may be used to endorse or promote products derived from 18 | this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## This project has been deprecated 2 | 3 | We are currently focusing our efforts on getting out of the fork business. This effort is happening in the [WinRTC GitHub repo](https://github.com/microsoft/winrtc). Keeping WebRTC-UWP fork doesn't allow us to move fast enough. We are contributing back the changes needed to build WebRTC.org code base for UWP. Here are some of the changes we're contributing back: 4 | 5 | - https://webrtc-review.googlesource.com/c/src/+/167021 6 | - https://boringssl-review.googlesource.com/c/boringssl/+/39584 7 | - https://chromium-review.googlesource.com/c/chromium/src/+/1962509 8 | - [abseil/abseil-cpp#594](https://github.com/abseil/abseil-cpp/pull/594) 9 | - [abseil/abseil-cpp#596](https://github.com/abseil/abseil-cpp/pull/596) 10 | 11 | Besides the new video capturing module that is being reviewed, we're also creating a new audio capturing module. There are more changes in the pipeline to be contributed back and more changes required for finishing the port. After having WebRTC.org code base compatible with UWP, we're going to work on a WinRT abstraction layer allowing easy consumption of WebRTC capabilities by WinRT projections. 12 | 13 | That said, keep in mind we are contributing back the changes and we have no control over when/if the changes will be accepted by their teams. 14 | 15 | # webrtc-apis 16 | Dependency library for WebRTC put under webrtc/xplatform/webrtc/sdk/... 17 | 18 | Please clone this repo: 19 | git clone --recursive https://github.com/webrtc-uwp/webrtc-uwp-sdk 20 | 21 | THIS IS A DEPENDENCY REPO ONLY PROVIDING WINDOWS BASED APIS. 22 | -------------------------------------------------------------------------------- /idl/VideoOptions.idl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 2017, Optical Tone Ltd. 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | 1. Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 2. Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | 26 | The views and conclusions contained in the software and documentation are those 27 | of the authors and should not be interpreted as representing official policies, 28 | either expressed or implied, of the FreeBSD Project. 29 | 30 | */ 31 | 32 | 33 | namespace org 34 | { 35 | namespace webRtc 36 | { 37 | 38 | [dictionary] 39 | struct VideoOptions 40 | { 41 | /// 42 | /// Gets or sets the webrtc factory. 43 | /// 44 | WebRtcFactory factory; 45 | 46 | /// 47 | /// Gets or sets the associated video capturer. 48 | /// 49 | VideoCapturer capturer; 50 | 51 | /// 52 | /// Gets or sets the associated constraints. 53 | /// 54 | MediaConstraints constraints; 55 | }; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /idl/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "project": { 3 | "name": "org.webRtc", 4 | "aliases": { 5 | "alias": [ 6 | { 7 | "in": "bogus_ortc_test_alias", 8 | "out": "bogus" 9 | } 10 | ] 11 | }, 12 | "exclusives": { 13 | "exclusive": [ 14 | "xplatform" 15 | ] 16 | }, 17 | "includes": { 18 | "include": [ 19 | "../../third_party/idl/zsLib/zsLib/idl/config.json" 20 | ] 21 | }, 22 | "sources": { 23 | "source": [ 24 | "enums.idl", 25 | "WebRtc.idl", 26 | "Error.idl", 27 | "MediaSource.idl", 28 | "MediaElement.idl", 29 | "MediaSample.idl", 30 | "StatsReport.idl", 31 | "StatsProvider.idl", 32 | "Certificate.idl", 33 | "DataChannel.idl", 34 | "MediaConstraints.idl", 35 | "AudioOptions.idl", 36 | "AudioTrackSource.idl", 37 | "VideoOptions.idl", 38 | "VideoTrackSource.idl", 39 | "VideoCapturer.idl", 40 | "MediaStreamTrack.idl", 41 | "OAuthCredential.idl", 42 | "IceCandidate.idl", 43 | "IceServer.idl", 44 | "Configuration.idl", 45 | "OfferAnswerOptions.idl", 46 | "RtpParameters.idl", 47 | "RtpSender.idl", 48 | "RtpReceiver.idl", 49 | "DTMFSender.idl", 50 | "RtpTransceiver.idl", 51 | "SessionDescription.idl", 52 | "PeerConnection.idl", 53 | "AudioBuffers.idl", 54 | "VideoBuffers.idl", 55 | "WebRtcFactory.idl", 56 | ] 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /idl/enums.idl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-uwp/webrtc-apis/accb133e195da9b0e77f59d749a282d133a80f24/idl/enums.idl -------------------------------------------------------------------------------- /windows/BUILD.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Chromium Authors. All rights reserved. 2 | # Use of this source code is governed by a BSD-style license that can be 3 | # found in the LICENSE file. 4 | 5 | import("//third_party/idl/zsLib-eventing/zslib_eventing_tool.gni") 6 | 7 | group("webrtc_wrappers") { 8 | public_deps = [ 9 | "//third_party/idl:idl" 10 | ] 11 | } 12 | 13 | compile_idl_macro("webrtc_idl") { 14 | 15 | sources = [ 16 | "../idl/config.json", 17 | ] 18 | 19 | idlOutputPath = "../windows" 20 | idlAlreadyCompletedFlag = "webrtcIdlCompiledFlag.flg" 21 | } 22 | 23 | compile_single_event_macro("webrtc_wrapper_events") { 24 | 25 | sources = [ 26 | "wrapper/Org.WebRtc.Glue.events.json", 27 | ] 28 | 29 | idlOutputPath = "." 30 | idlAlreadyCompletedFlag = "Org.WebRtc.Glue_eventsCompiled.flg" 31 | 32 | } 33 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #include "Org.WebRtc.Glue.events.h" 5 | #include "Org.WebRtc.Glue.events.jman.h" 6 | 7 | namespace wrapper { namespace impl { namespace org { namespace webRtc { ZS_IMPLEMENT_SUBSYSTEM(wrapper_org_webRtc); } } } } 8 | 9 | ZS_EVENTING_SUBSYSTEM_DEFAULT_LEVEL(wrapper_org_webRtc, Debug) 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | void initSubsystems() noexcept 17 | { 18 | ZS_GET_SUBSYSTEM_LOG_LEVEL(ZS_GET_OTHER_SUBSYSTEM(wrapper::impl::org::webRtc, wrapper_org_webRtc)); 19 | ZS_EVENTING_REGISTER(Org_WebRtc_Glue); 20 | } 21 | 22 | } // namespace webRtc 23 | } // namespace impl 24 | } // namespace org 25 | } // namespace webRtc 26 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc.h: -------------------------------------------------------------------------------- 1 | 2 | namespace wrapper { 3 | namespace impl { 4 | namespace org { 5 | namespace webRtc { 6 | 7 | void initSubsystems() noexcept; 8 | 9 | } // namespace webRtc 10 | } // namespace impl 11 | } // namespace org 12 | } // namespace webRtc 13 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioBufferConfiguration.cpp: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #include "impl_org_webRtc_AudioBufferConfiguration.h" 4 | 5 | using ::zsLib::String; 6 | using ::zsLib::Optional; 7 | using ::zsLib::Any; 8 | using ::zsLib::AnyPtr; 9 | using ::zsLib::AnyHolder; 10 | using ::zsLib::Promise; 11 | using ::zsLib::PromisePtr; 12 | using ::zsLib::PromiseWithHolder; 13 | using ::zsLib::PromiseWithHolderPtr; 14 | using ::zsLib::eventing::SecureByteBlock; 15 | using ::zsLib::eventing::SecureByteBlockPtr; 16 | using ::std::shared_ptr; 17 | using ::std::weak_ptr; 18 | using ::std::make_shared; 19 | using ::std::list; 20 | using ::std::set; 21 | using ::std::map; 22 | 23 | // borrow definitions from class 24 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioBufferConfiguration::WrapperImplType, WrapperImplType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 26 | 27 | //------------------------------------------------------------------------------ 28 | wrapper::impl::org::webRtc::AudioBufferConfiguration::AudioBufferConfiguration() noexcept 29 | { 30 | } 31 | 32 | //------------------------------------------------------------------------------ 33 | wrapper::org::webRtc::AudioBufferConfigurationPtr wrapper::org::webRtc::AudioBufferConfiguration::wrapper_create() noexcept 34 | { 35 | auto pThis = make_shared(); 36 | pThis->thisWeak_ = pThis; 37 | return pThis; 38 | } 39 | 40 | //------------------------------------------------------------------------------ 41 | wrapper::impl::org::webRtc::AudioBufferConfiguration::~AudioBufferConfiguration() noexcept 42 | { 43 | thisWeak_.reset(); 44 | } 45 | 46 | //------------------------------------------------------------------------------ 47 | void wrapper::impl::org::webRtc::AudioBufferConfiguration::wrapper_init_org_webRtc_AudioBufferConfiguration() noexcept 48 | { 49 | } 50 | 51 | 52 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioBufferConfiguration.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #pragma once 4 | 5 | #include "types.h" 6 | #include "generated/org_webRtc_AudioBufferConfiguration.h" 7 | 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct AudioBufferConfiguration : public wrapper::org::webRtc::AudioBufferConfiguration 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioBufferConfiguration, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioBufferConfiguration, WrapperImplType); 18 | AudioBufferConfigurationWeakPtr thisWeak_; 19 | 20 | AudioBufferConfiguration() noexcept; 21 | virtual ~AudioBufferConfiguration() noexcept; 22 | 23 | void wrapper_init_org_webRtc_AudioBufferConfiguration() noexcept override; 24 | }; 25 | 26 | } // webRtc 27 | } // org 28 | } // namespace impl 29 | } // namespace wrapper 30 | 31 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioBufferEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_AudioBufferEvent.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct AudioBufferEvent : public wrapper::org::webRtc::AudioBufferEvent 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioBufferEvent, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioBufferEvent, WrapperImplType); 19 | 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::AudioBuffer, AudioBufferNativeType); 21 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioBuffer, UseAudioBuffer); 22 | 23 | AudioBufferEventWeakPtr thisWeak_; 24 | zsLib::Lock lock_; 25 | std::function complete_; 26 | UseAudioBufferPtr buffer_; 27 | 28 | AudioBufferEvent() noexcept; 29 | virtual ~AudioBufferEvent() noexcept; 30 | void wrapper_dispose() noexcept override; 31 | 32 | 33 | // properties AudioBufferEvent 34 | wrapper::org::webRtc::AudioBufferPtr get_buffer() noexcept override; 35 | 36 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 37 | std::function completeFunction, 38 | AudioBufferNativeType *buffer 39 | ) noexcept; 40 | }; 41 | 42 | } // webRtc 43 | } // org 44 | } // namespace impl 45 | } // namespace wrapper 46 | 47 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioData.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_AudioData.h" 6 | 7 | namespace wrapper { 8 | namespace impl { 9 | namespace org { 10 | namespace webRtc { 11 | 12 | struct AudioData : public wrapper::org::webRtc::AudioData 13 | { 14 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioData, WrapperType); 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioData, WrapperImplType); 16 | 17 | AudioDataWeakPtr thisWeak_; 18 | zsLib::Lock lock_; 19 | int16_t *mutableData_ {}; 20 | const int16_t *data_ {}; 21 | size_t size_ {}; 22 | std::vector buffer_; 23 | 24 | AudioData() noexcept; 25 | virtual ~AudioData() noexcept; 26 | void wrapper_dispose() noexcept override; 27 | 28 | 29 | // methods AudioData 30 | void wrapper_init_org_webRtc_AudioData() noexcept override; 31 | void wrapper_init_org_webRtc_AudioData(size_t size) noexcept override; 32 | 33 | // properties AudioData 34 | bool readOnly() noexcept override; 35 | const int16_t *data() noexcept override; 36 | int16_t *mutableData() noexcept override; 37 | size_t size() noexcept override; 38 | 39 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 40 | int16_t *value, 41 | size_t size) noexcept; 42 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 43 | const int16_t *value, 44 | size_t size) noexcept; 45 | 46 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(WrapperTypePtr wrapper) noexcept; 47 | }; 48 | 49 | } // webRtc 50 | } // org 51 | } // namespace impl 52 | } // namespace wrapper 53 | 54 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioFrame.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_AudioFrame.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct AudioFrame : public wrapper::org::webRtc::AudioFrame 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioFrame, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioFrame, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::AudioFrame, NativeType); 20 | 21 | AudioFrameWeakPtr thisWeak_; 22 | 23 | AudioFrame() noexcept; 24 | virtual ~AudioFrame() noexcept; 25 | 26 | 27 | // methods AudioFrame 28 | void wrapper_init_org_webRtc_AudioFrame() noexcept override; 29 | 30 | ZS_NO_DISCARD() static NativeTypeUniPtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioOptions.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_AudioOptions.h" 6 | 7 | 8 | #include "impl_org_webRtc_pre_include.h" 9 | #include "api/audio_options.h" 10 | #include "impl_org_webRtc_post_include.h" 11 | 12 | namespace wrapper { 13 | namespace impl { 14 | namespace org { 15 | namespace webRtc { 16 | 17 | struct AudioOptions : public wrapper::org::webRtc::AudioOptions 18 | { 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioOptions, WrapperType); 20 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioOptions, WrapperImplType); 21 | ZS_DECLARE_TYPEDEF_PTR(::cricket::AudioOptions, NativeType); 22 | 23 | AudioOptionsWeakPtr thisWeak_; 24 | 25 | AudioOptions() noexcept; 26 | virtual ~AudioOptions() noexcept; 27 | void wrapper_init_org_webRtc_AudioOptions() noexcept override; 28 | 29 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 31 | 32 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 33 | }; 34 | 35 | } // webRtc 36 | } // org 37 | } // namespace impl 38 | } // namespace wrapper 39 | 40 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioProcessingInitializeEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_AudioProcessingInitializeEvent.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct AudioProcessingInitializeEvent : public wrapper::org::webRtc::AudioProcessingInitializeEvent 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioProcessingInitializeEvent, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioProcessingInitializeEvent, WrapperImplType); 17 | 18 | AudioProcessingInitializeEventWeakPtr thisWeak_; 19 | zsLib::Lock lock_; 20 | std::function complete_; 21 | size_t sampleHzRate_{}; 22 | size_t channels_ {}; 23 | 24 | AudioProcessingInitializeEvent() noexcept; 25 | virtual ~AudioProcessingInitializeEvent() noexcept; 26 | void wrapper_dispose() noexcept override; 27 | 28 | 29 | // properties AudioProcessingInitializeEvent 30 | uint64_t get_samplRateHz() noexcept override; 31 | uint64_t get_channels() noexcept override; 32 | 33 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 34 | std::function completeFunction, 35 | size_t sampleHzRate, 36 | size_t channels) noexcept; 37 | }; 38 | 39 | } // webRtc 40 | } // org 41 | } // namespace impl 42 | } // namespace wrapper 43 | 44 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_AudioProcessingRuntimeSettingEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_AudioProcessingRuntimeSettingEvent.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "modules/audio_processing/include/audio_processing.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct AudioProcessingRuntimeSettingEvent : public wrapper::org::webRtc::AudioProcessingRuntimeSettingEvent 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::AudioProcessingRuntimeSettingEvent, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::AudioProcessingRuntimeSettingEvent, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::AudioProcessing::RuntimeSetting, NativeType); 21 | 22 | AudioProcessingRuntimeSettingEventWeakPtr thisWeak_; 23 | 24 | zsLib::Lock lock_; 25 | std::function complete_; 26 | wrapper::org::webRtc::RuntimeSetting type_ {}; 27 | float value_ {}; 28 | 29 | AudioProcessingRuntimeSettingEvent() noexcept; 30 | virtual ~AudioProcessingRuntimeSettingEvent() noexcept; 31 | void wrapper_dispose() noexcept override; 32 | 33 | 34 | // properties AudioProcessingRuntimeSettingEvent 35 | wrapper::org::webRtc::RuntimeSetting get_type() noexcept override; 36 | float get_value() noexcept override; 37 | 38 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 39 | std::function completeFunction, 40 | const NativeType &native) noexcept; 41 | }; 42 | 43 | } // webRtc 44 | } // org 45 | } // namespace impl 46 | } // namespace wrapper 47 | 48 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_Constraint.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_Constraint.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/mediaconstraintsinterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct Constraint : public wrapper::org::webRtc::Constraint 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::Constraint, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::Constraint, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::MediaConstraintsInterface::Constraint, NativeType); 21 | 22 | NativeTypePtr native_; 23 | ConstraintWeakPtr thisWeak_; 24 | 25 | Constraint() noexcept; 26 | virtual ~Constraint() noexcept; 27 | 28 | 29 | // methods Constraint 30 | void wrapper_init_org_webRtc_Constraint() noexcept override; 31 | void wrapper_init_org_webRtc_Constraint(wrapper::org::webRtc::ConstraintPtr source) noexcept override; 32 | void wrapper_init_org_webRtc_Constraint( 33 | String key, 34 | String value 35 | ) noexcept override; 36 | 37 | // properties Constraint 38 | String get_key() noexcept override; 39 | void set_key(String value) noexcept override; 40 | String get_value() noexcept override; 41 | void set_value(String value) noexcept override; 42 | 43 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 44 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 45 | 46 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 47 | }; 48 | 49 | } // webRtc 50 | } // org 51 | } // namespace impl 52 | } // namespace wrapper 53 | 54 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_EventQueue.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #ifdef __has_include 5 | #if __has_include() 6 | #include 7 | #endif //__has_include() 8 | #endif //__has_include 9 | 10 | #include "types.h" 11 | #include "generated/org_webRtc_EventQueue.h" 12 | 13 | 14 | namespace wrapper { 15 | namespace impl { 16 | namespace org { 17 | namespace webRtc { 18 | 19 | struct EventQueue : public wrapper::org::webRtc::EventQueue 20 | { 21 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::EventQueue, WrapperType); 22 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::EventQueue, WrapperImplType); 23 | 24 | EventQueueWeakPtr thisWeak_; 25 | 26 | #ifdef CPPWINRT_VERSION 27 | winrt::Windows::UI::Core::CoreDispatcher dispatcher_ {nullptr}; 28 | #endif // CPPWINRT_VERSION 29 | zsLib::IMessageQueuePtr queue_; 30 | 31 | EventQueue() noexcept; 32 | virtual ~EventQueue() noexcept; 33 | 34 | ZS_NO_DISCARD() static wrapper::org::webRtc::EventQueuePtr toWrapper(winrt::Windows::UI::Core::CoreDispatcher queue) noexcept; 35 | ZS_NO_DISCARD() static winrt::Windows::UI::Core::CoreDispatcher toNative_winrt(WrapperTypePtr queue) noexcept; 36 | ZS_NO_DISCARD() static wrapper::org::webRtc::EventQueuePtr toWrapper(::zsLib::IMessageQueuePtr queue) noexcept; 37 | ZS_NO_DISCARD() static ::zsLib::IMessageQueuePtr toNative(WrapperTypePtr queue) noexcept; 38 | 39 | }; 40 | 41 | } // webRtc 42 | } // org 43 | } // namespace impl 44 | } // namespace wrapper 45 | 46 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_EventQueueMaker.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_EventQueue.h" 3 | #include "impl_org_webRtc_EventQueueMaker.h" 4 | 5 | using ::zsLib::String; 6 | using ::zsLib::Optional; 7 | using ::zsLib::Any; 8 | using ::zsLib::AnyPtr; 9 | using ::zsLib::AnyHolder; 10 | using ::zsLib::Promise; 11 | using ::zsLib::PromisePtr; 12 | using ::zsLib::PromiseWithHolder; 13 | using ::zsLib::PromiseWithHolderPtr; 14 | using ::zsLib::eventing::SecureByteBlock; 15 | using ::zsLib::eventing::SecureByteBlockPtr; 16 | using ::std::shared_ptr; 17 | using ::std::weak_ptr; 18 | using ::std::make_shared; 19 | using ::std::list; 20 | using ::std::set; 21 | using ::std::map; 22 | 23 | // borrow definitions from class 24 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::EventQueueMaker::WrapperImplType, WrapperImplType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 26 | 27 | //------------------------------------------------------------------------------ 28 | wrapper::impl::org::webRtc::EventQueueMaker::~EventQueueMaker() noexcept 29 | { 30 | } 31 | 32 | #if 0 33 | //------------------------------------------------------------------------------ 34 | wrapper::org::webRtc::EventQueuePtr wrapper::org::webRtc::EventQueueMaker::bind(AnyPtr queue) noexcept 35 | { 36 | wrapper::org::webRtc::EventQueuePtr result = wrapper::org::webRtc::EventQueue::wrapper_create(); 37 | result->wrapper_init_org_webRtc_EventQueue(queue); 38 | return result; 39 | } 40 | 41 | //------------------------------------------------------------------------------ 42 | AnyPtr wrapper::org::webRtc::EventQueueMaker::extract(wrapper::org::webRtc::EventQueuePtr queue) noexcept 43 | { 44 | if (!queue) return nullptr; 45 | return queue->get_queue(); 46 | } 47 | #endif //0 48 | 49 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_EventQueueMaker.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_EventQueueMaker.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct EventQueueMaker : public wrapper::org::webRtc::EventQueueMaker 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::EventQueueMaker, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::EventQueueMaker, WrapperImplType); 17 | EventQueueMaker() noexcept = delete; 18 | EventQueueMaker(const EventQueueMaker &) noexcept = delete; 19 | virtual ~EventQueueMaker() noexcept; 20 | 21 | }; 22 | 23 | } // webRtc 24 | } // org 25 | } // namespace impl 26 | } // namespace wrapper 27 | 28 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MediaElement.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MediaElement.h" 6 | 7 | #ifdef CPPWINRT_VERSION 8 | #include 9 | #endif // CPPWINRT_VERSION 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct MediaElement : public wrapper::org::webRtc::MediaElement 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MediaElement, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaElement, WrapperImplType); 20 | 21 | AnyPtr element_{}; 22 | MediaElementWeakPtr thisWeak_; 23 | 24 | #ifdef CPPWINRT_VERSION 25 | winrt::Windows::UI::Xaml::Controls::MediaElement elementXaml_ {nullptr}; 26 | #endif // CPPWINRT_VERSION 27 | 28 | #ifndef WINUWP 29 | #ifdef _WIN32 30 | HWND elementHwnd_{}; 31 | #endif //_WIN32 32 | #endif //ndef WINUWP 33 | 34 | MediaElement() noexcept; 35 | virtual ~MediaElement() noexcept; 36 | 37 | #ifdef CPPWINRT_VERSION 38 | ZS_NO_DISCARD() static wrapper::org::webRtc::MediaElementPtr toWrapper(winrt::Windows::UI::Xaml::Controls::MediaElement const & element) noexcept; 39 | ZS_NO_DISCARD() static winrt::Windows::UI::Xaml::Controls::MediaElement toNative_winrt(wrapper::org::webRtc::MediaElementPtr wrapper) noexcept; 40 | #endif // CPPWINRT_VERSION 41 | 42 | #ifndef WINUWP 43 | #ifdef _WIN32 44 | ZS_NO_DISCARD() static wrapper::org::webRtc::MediaElementPtr toWrapper(HWND element) noexcept; 45 | ZS_NO_DISCARD() static HWND toNative(wrapper::org::webRtc::MediaElementPtr wrapper) noexcept; 46 | #endif //_WIN32 47 | #endif //ndef WINUWP 48 | 49 | }; 50 | 51 | } // webRtc 52 | } // org 53 | } // namespace impl 54 | } // namespace wrapper 55 | 56 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MediaElementMaker.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_MediaElementMaker.h" 3 | 4 | using ::zsLib::String; 5 | using ::zsLib::Optional; 6 | using ::zsLib::Any; 7 | using ::zsLib::AnyPtr; 8 | using ::zsLib::AnyHolder; 9 | using ::zsLib::Promise; 10 | using ::zsLib::PromisePtr; 11 | using ::zsLib::PromiseWithHolder; 12 | using ::zsLib::PromiseWithHolderPtr; 13 | using ::zsLib::eventing::SecureByteBlock; 14 | using ::zsLib::eventing::SecureByteBlockPtr; 15 | using ::std::shared_ptr; 16 | using ::std::weak_ptr; 17 | using ::std::make_shared; 18 | using ::std::list; 19 | using ::std::set; 20 | using ::std::map; 21 | 22 | // borrow definitions from class 23 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaElementMaker::WrapperImplType, WrapperImplType); 24 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 25 | 26 | //------------------------------------------------------------------------------ 27 | wrapper::impl::org::webRtc::MediaElementMaker::~MediaElementMaker() noexcept 28 | { 29 | } 30 | 31 | #if 0 32 | //------------------------------------------------------------------------------ 33 | wrapper::org::webRtc::MediaElementPtr wrapper::org::webRtc::MediaElementMaker::bind(AnyPtr element) noexcept 34 | { 35 | wrapper::org::webRtc::MediaElementPtr result {}; 36 | return result; 37 | } 38 | 39 | //------------------------------------------------------------------------------ 40 | AnyPtr wrapper::org::webRtc::MediaElementMaker::extract(wrapper::org::webRtc::MediaElementPtr element) noexcept 41 | { 42 | AnyPtr result {}; 43 | return result; 44 | } 45 | #endif //0 46 | 47 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MediaElementMaker.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MediaElementMaker.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct MediaElementMaker : public wrapper::org::webRtc::MediaElementMaker 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MediaElementMaker, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaElementMaker, WrapperImplType); 17 | MediaElementMaker() noexcept = delete; 18 | MediaElementMaker(const MediaElementMaker &) noexcept = delete; 19 | virtual ~MediaElementMaker() noexcept; 20 | 21 | }; 22 | 23 | } // webRtc 24 | } // org 25 | } // namespace impl 26 | } // namespace wrapper 27 | 28 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MediaSample.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MediaSample.h" 6 | 7 | #include 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct MediaSample : public wrapper::org::webRtc::MediaSample 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MediaSample, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaSample, WrapperImplType); 18 | 19 | MediaSampleWeakPtr thisWeak_; 20 | zsLib::Lock lock_; 21 | 22 | #ifdef CPPWINRT_VERSION 23 | winrt::com_ptr sample_; 24 | #endif //CPPWINRT_VERSION 25 | 26 | MediaSample() noexcept; 27 | virtual ~MediaSample() noexcept; 28 | 29 | void wrapper_dispose() noexcept override; 30 | 31 | #ifdef CPPWINRT_VERSION 32 | ZS_NO_DISCARD() static wrapper::org::webRtc::MediaSamplePtr toWrapper(winrt::com_ptr const & sample) noexcept; 33 | ZS_NO_DISCARD() static winrt::com_ptr toNative(wrapper::org::webRtc::MediaSamplePtr sample) noexcept; 34 | #endif //CPPWINRT_VERSION 35 | 36 | }; 37 | 38 | } // webRtc 39 | } // org 40 | } // namespace impl 41 | } // namespace wrapper 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MediaSource.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MediaSource.h" 6 | 7 | #ifdef CPPWINRT_VERSION 8 | #include 9 | #endif // CPPWINRT_VERSION 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct MediaSource : public wrapper::org::webRtc::MediaSource 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MediaSource, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaSource, WrapperImplType); 20 | 21 | MediaSourceWeakPtr thisWeak_; 22 | #ifdef CPPWINRT_VERSION 23 | winrt::Windows::Media::Core::IMediaSource source_ {nullptr}; 24 | #endif // CPPWINRT_VERSION 25 | 26 | MediaSource() noexcept; 27 | virtual ~MediaSource() noexcept; 28 | 29 | 30 | // methods MediaSource 31 | 32 | #ifdef CPPWINRT_VERSION 33 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(winrt::Windows::Media::Core::IMediaSource const & source) noexcept; 34 | ZS_NO_DISCARD() static winrt::Windows::Media::Core::IMediaSource toNative_winrt(wrapper::org::webRtc::MediaSourcePtr source) noexcept; 35 | #endif // CPPWINRT_VERSION 36 | 37 | }; 38 | 39 | } // webRtc 40 | } // org 41 | } // namespace impl 42 | } // namespace wrapper 43 | 44 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MediaTrackSource.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MediaTrackSource.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct MediaTrackSource : public wrapper::org::webRtc::MediaTrackSource 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MediaTrackSource, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaTrackSource, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::MediaSourceInterface, NativeType); 21 | 22 | typedef ::rtc::scoped_refptr NativeTypeScopedPtr; 23 | 24 | NativeTypeScopedPtr native_; 25 | MediaTrackSourceWeakPtr thisWeak_; 26 | 27 | MediaTrackSource() noexcept; 28 | virtual ~MediaTrackSource() noexcept; 29 | void wrapper_dispose() noexcept override; 30 | 31 | 32 | // properties MediaTrackSource 33 | wrapper::org::webRtc::MediaSourceState get_state() noexcept override; 34 | bool get_remote() noexcept override; 35 | 36 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeType *native) noexcept; 37 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypeScopedPtr native) noexcept; 38 | ZS_NO_DISCARD() static NativeTypeScopedPtr toNative(WrapperTypePtr wrapper) noexcept; 39 | }; 40 | 41 | } // webRtc 42 | } // org 43 | } // namespace impl 44 | } // namespace wrapper 45 | 46 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MessageEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MessageEvent.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/datachannelinterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct MessageEvent : public wrapper::org::webRtc::MessageEvent 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MessageEvent, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MessageEvent, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::DataBuffer, NativeType); 21 | 22 | SecureByteBlockPtr native_; 23 | bool isBinary_ {}; 24 | MessageEventWeakPtr thisWeak_; 25 | 26 | MessageEvent() noexcept; 27 | virtual ~MessageEvent() noexcept; 28 | 29 | 30 | // properties MessageEvent 31 | SecureByteBlockPtr get_binary() noexcept override; 32 | String get_text() noexcept override; 33 | 34 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 35 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const SecureByteBlock &native) noexcept; 36 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(SecureByteBlockPtr native) noexcept; 37 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const String &native) noexcept; 38 | ZS_NO_DISCARD() static NativeType toNative(WrapperTypePtr wrapper) noexcept; 39 | }; 40 | 41 | } // webRtc 42 | } // org 43 | } // namespace impl 44 | } // namespace wrapper 45 | 46 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_MillisecondIntervalRange.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_MillisecondIntervalRange.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct MillisecondIntervalRange : public wrapper::org::webRtc::MillisecondIntervalRange 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::MillisecondIntervalRange, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MillisecondIntervalRange, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::rtc::IntervalRange, NativeType); 21 | 22 | MillisecondIntervalRangeWeakPtr thisWeak_; 23 | 24 | MillisecondIntervalRange() noexcept; 25 | virtual ~MillisecondIntervalRange() noexcept; 26 | 27 | 28 | // methods MillisecondIntervalRange 29 | void wrapper_init_org_webRtc_MillisecondIntervalRange() noexcept override; 30 | void wrapper_init_org_webRtc_MillisecondIntervalRange(wrapper::org::webRtc::MillisecondIntervalRangePtr source) noexcept override; 31 | 32 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 33 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 34 | 35 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 36 | }; 37 | 38 | } // webRtc 39 | } // org 40 | } // namespace impl 41 | } // namespace wrapper 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCAnswerOptions.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCAnswerOptions.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/peerconnectioninterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCAnswerOptions : public wrapper::org::webRtc::RTCAnswerOptions 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCAnswerOptions, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCAnswerOptions, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions, NativeType); 21 | 22 | RTCAnswerOptionsWeakPtr thisWeak_; 23 | 24 | RTCAnswerOptions() noexcept; 25 | virtual ~RTCAnswerOptions() noexcept; 26 | 27 | 28 | // methods RTCAnswerOptions 29 | void wrapper_init_org_webRtc_RTCAnswerOptions() noexcept override; 30 | void wrapper_init_org_webRtc_RTCAnswerOptions(wrapper::org::webRtc::RTCAnswerOptionsPtr source) noexcept override; 31 | 32 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 33 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 34 | 35 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 36 | }; 37 | 38 | } // webRtc 39 | } // org 40 | } // namespace impl 41 | } // namespace wrapper 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCBitrateParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCBitrateParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/peerconnectioninterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCBitrateParameters : public wrapper::org::webRtc::RTCBitrateParameters 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCBitrateParameters, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCBitrateParameters, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::PeerConnectionInterface::BitrateParameters, NativeType); 21 | 22 | RTCBitrateParametersWeakPtr thisWeak_; 23 | 24 | RTCBitrateParameters() noexcept; 25 | virtual ~RTCBitrateParameters() noexcept; 26 | void wrapper_init_org_webRtc_RTCBitrateParameters() noexcept override; 27 | 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 29 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 30 | 31 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 32 | }; 33 | 34 | } // webRtc 35 | } // org 36 | } // namespace impl 37 | } // namespace wrapper 38 | 39 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCCertificate.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCCertificate.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCCertificate : public wrapper::org::webRtc::RTCCertificate 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCCertificate, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCCertificate, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::rtc::RTCCertificate, NativeType); 21 | 22 | typedef ::rtc::scoped_refptr NativeTypeScopedPtr; 23 | 24 | NativeTypeScopedPtr native_; 25 | RTCCertificateWeakPtr thisWeak_; 26 | 27 | RTCCertificate() noexcept; 28 | virtual ~RTCCertificate() noexcept; 29 | 30 | 31 | // properties RTCCertificate 32 | ::zsLib::Time get_expires() noexcept override; 33 | shared_ptr< list< wrapper::org::webRtc::RTCDtlsFingerprintPtr > > get_fingerprints() noexcept override; 34 | 35 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeType *native) noexcept; 36 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypeScopedPtr native) noexcept; 37 | ZS_NO_DISCARD() static NativeTypeScopedPtr toNative(WrapperTypePtr wrapper) noexcept; 38 | }; 39 | 40 | } // webRtc 41 | } // org 42 | } // namespace impl 43 | } // namespace wrapper 44 | 45 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCCertificateStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCCertificateStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/stats/rtcstats_objects.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCCertificateStats : public wrapper::org::webRtc::RTCCertificateStats 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCCertificateStats, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCCertificateStats, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCStats, NativeType); 21 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCCertificateStats, NativeStats); 22 | 23 | RTCCertificateStatsWeakPtr thisWeak_; 24 | NativeTypeUniPtr native_; 25 | 26 | RTCCertificateStats() noexcept; 27 | virtual ~RTCCertificateStats() noexcept; 28 | 29 | void trace() noexcept; 30 | 31 | // properties RTCStats 32 | ::zsLib::Time get_timestamp() noexcept override; 33 | Optional< wrapper::org::webRtc::RTCStatsType > get_statsType() noexcept override; 34 | String get_statsTypeOther() noexcept override; 35 | String get_id() noexcept override; 36 | 37 | // properties RTCCertificateStats 38 | String get_fingerprint() noexcept override; 39 | String get_fingerprintAlgorithm() noexcept override; 40 | String get_base64Certificate() noexcept override; 41 | String get_issuerCertificateId() noexcept override; 42 | 43 | ZS_NO_DISCARD() static WrapperTypePtr toWrapper(NativeTypeUniPtr value) noexcept; 44 | ZS_NO_DISCARD() const NativeStats &cast() noexcept; 45 | }; 46 | 47 | } // webRtc 48 | } // org 49 | } // namespace impl 50 | } // namespace wrapper 51 | 52 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCCodecStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCCodecStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/stats/rtcstats_objects.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCCodecStats : public wrapper::org::webRtc::RTCCodecStats 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCCodecStats, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCCodecStats, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCStats, NativeType); 21 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCCodecStats, NativeStats); 22 | 23 | RTCCodecStatsWeakPtr thisWeak_; 24 | NativeTypeUniPtr native_; 25 | 26 | RTCCodecStats() noexcept; 27 | virtual ~RTCCodecStats() noexcept; 28 | 29 | void trace() noexcept; 30 | 31 | // properties RTCStats 32 | ::zsLib::Time get_timestamp() noexcept override; 33 | Optional< wrapper::org::webRtc::RTCStatsType > get_statsType() noexcept override; 34 | String get_statsTypeOther() noexcept override; 35 | String get_id() noexcept override; 36 | 37 | // properties RTCCodecStats 38 | Optional< uint8_t > get_payloadType() noexcept override; 39 | Optional< wrapper::org::webRtc::RTCCodecType > get_codecType() noexcept override; 40 | String get_transportId() noexcept override; 41 | String get_mimeType() noexcept override; 42 | unsigned long get_clockRate() noexcept override; 43 | Optional< unsigned long > get_channels() noexcept override; 44 | String get_sdpFmtpLine() noexcept override; 45 | String get_implementation() noexcept override; 46 | 47 | ZS_NO_DISCARD() static WrapperTypePtr toWrapper(NativeTypeUniPtr value) noexcept; 48 | ZS_NO_DISCARD() const NativeStats &cast() noexcept; 49 | }; 50 | 51 | } // webRtc 52 | } // org 53 | } // namespace impl 54 | } // namespace wrapper 55 | 56 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCDataChannelEvent.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_RTCDataChannelEvent.h" 3 | #include "impl_org_webRtc_RTCDataChannel.h" 4 | 5 | using ::zsLib::String; 6 | using ::zsLib::Optional; 7 | using ::zsLib::Any; 8 | using ::zsLib::AnyPtr; 9 | using ::zsLib::AnyHolder; 10 | using ::zsLib::Promise; 11 | using ::zsLib::PromisePtr; 12 | using ::zsLib::PromiseWithHolder; 13 | using ::zsLib::PromiseWithHolderPtr; 14 | using ::zsLib::eventing::SecureByteBlock; 15 | using ::zsLib::eventing::SecureByteBlockPtr; 16 | using ::std::shared_ptr; 17 | using ::std::weak_ptr; 18 | using ::std::make_shared; 19 | using ::std::list; 20 | using ::std::set; 21 | using ::std::map; 22 | 23 | // borrow definitions from class 24 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDataChannelEvent::WrapperImplType, WrapperImplType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 26 | 27 | //------------------------------------------------------------------------------ 28 | wrapper::impl::org::webRtc::RTCDataChannelEvent::RTCDataChannelEvent() noexcept 29 | { 30 | } 31 | 32 | //------------------------------------------------------------------------------ 33 | wrapper::org::webRtc::RTCDataChannelEventPtr wrapper::org::webRtc::RTCDataChannelEvent::wrapper_create() noexcept 34 | { 35 | auto pThis = make_shared(); 36 | pThis->thisWeak_ = pThis; 37 | return pThis; 38 | } 39 | 40 | //------------------------------------------------------------------------------ 41 | wrapper::impl::org::webRtc::RTCDataChannelEvent::~RTCDataChannelEvent() noexcept 42 | { 43 | thisWeak_.reset(); 44 | } 45 | 46 | 47 | //------------------------------------------------------------------------------ 48 | wrapper::org::webRtc::RTCDataChannelPtr wrapper::impl::org::webRtc::RTCDataChannelEvent::get_channel() noexcept 49 | { 50 | return dataChannel_; 51 | } 52 | 53 | //------------------------------------------------------------------------------ 54 | WrapperImplTypePtr WrapperImplType::toWrapper(UseDataChannelPtr value) noexcept 55 | { 56 | auto result = make_shared(); 57 | result->thisWeak_ = result; 58 | result->dataChannel_ = value; 59 | return result; 60 | } 61 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCDataChannelEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCDataChannelEvent.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct RTCDataChannelEvent : public wrapper::org::webRtc::RTCDataChannelEvent 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCDataChannelEvent, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDataChannelEvent, WrapperImplType); 17 | 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDataChannel, UseDataChannel); 19 | 20 | UseDataChannelPtr dataChannel_; 21 | RTCDataChannelEventWeakPtr thisWeak_; 22 | 23 | RTCDataChannelEvent() noexcept; 24 | virtual ~RTCDataChannelEvent() noexcept; 25 | 26 | 27 | // properties RTCDataChannelEvent 28 | wrapper::org::webRtc::RTCDataChannelPtr get_channel() noexcept override; 29 | 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseDataChannelPtr value) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCDataChannelInit.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCDataChannelInit.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCDataChannelInit : public wrapper::org::webRtc::RTCDataChannelInit 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCDataChannelInit, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDataChannelInit, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::DataChannelInit, NativeType); 20 | 21 | RTCDataChannelInitWeakPtr thisWeak_; 22 | 23 | RTCDataChannelInit() noexcept; 24 | virtual ~RTCDataChannelInit() noexcept; 25 | 26 | 27 | // methods RTCDataChannelInit 28 | void wrapper_init_org_webRtc_RTCDataChannelInit() noexcept override; 29 | void wrapper_init_org_webRtc_RTCDataChannelInit(wrapper::org::webRtc::RTCDataChannelInitPtr source) noexcept override; 30 | 31 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 32 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 33 | 34 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 35 | }; 36 | 37 | } // webRtc 38 | } // org 39 | } // namespace impl 40 | } // namespace wrapper 41 | 42 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCDataChannelStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCDataChannelStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/stats/rtcstats_objects.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCDataChannelStats : public wrapper::org::webRtc::RTCDataChannelStats 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCDataChannelStats, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDataChannelStats, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCStats, NativeType); 21 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCDataChannelStats, NativeStats); 22 | 23 | RTCDataChannelStatsWeakPtr thisWeak_; 24 | NativeTypeUniPtr native_; 25 | 26 | RTCDataChannelStats() noexcept; 27 | virtual ~RTCDataChannelStats() noexcept; 28 | 29 | void trace() noexcept; 30 | 31 | // properties RTCStats 32 | ::zsLib::Time get_timestamp() noexcept override; 33 | Optional< wrapper::org::webRtc::RTCStatsType > get_statsType() noexcept override; 34 | String get_statsTypeOther() noexcept override; 35 | String get_id() noexcept override; 36 | 37 | // properties RTCDataChannelStats 38 | String get_label() noexcept override; 39 | String get_protocol() noexcept override; 40 | long get_dataChannelIdentifier() noexcept override; 41 | String get_transportId() noexcept override; 42 | wrapper::org::webRtc::RTCDataChannelState get_state() noexcept override; 43 | unsigned long get_messagesSent() noexcept override; 44 | unsigned long long get_bytesSent() noexcept override; 45 | unsigned long get_messagesReceived() noexcept override; 46 | unsigned long long get_bytesReceived() noexcept override; 47 | 48 | ZS_NO_DISCARD() static WrapperTypePtr toWrapper(NativeTypeUniPtr value) noexcept; 49 | ZS_NO_DISCARD() const NativeStats &cast() noexcept; 50 | }; 51 | 52 | } // webRtc 53 | } // org 54 | } // namespace impl 55 | } // namespace wrapper 56 | 57 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCDtlsFingerprint.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCDtlsFingerprint.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCDtlsFingerprint : public wrapper::org::webRtc::RTCDtlsFingerprint 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCDtlsFingerprint, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDtlsFingerprint, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::rtc::SSLFingerprint, NativeType); 20 | 21 | 22 | RTCDtlsFingerprintWeakPtr thisWeak_; 23 | 24 | RTCDtlsFingerprint() noexcept; 25 | virtual ~RTCDtlsFingerprint() noexcept; 26 | 27 | 28 | // methods RTCDtlsFingerprint 29 | void wrapper_init_org_webRtc_RTCDtlsFingerprint() noexcept override; 30 | void wrapper_init_org_webRtc_RTCDtlsFingerprint(wrapper::org::webRtc::RTCDtlsFingerprintPtr source) noexcept override; 31 | 32 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const std::string &alg, NativeTypeUniPtr native) noexcept; 33 | ZS_NO_DISCARD() static NativeTypeUniPtr toNative(WrapperTypePtr wrapper) noexcept; 34 | }; 35 | 36 | } // webRtc 37 | } // org 38 | } // namespace impl 39 | } // namespace wrapper 40 | 41 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCDtmfToneChangeEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCDtmfToneChangeEvent.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct RTCDtmfToneChangeEvent : public wrapper::org::webRtc::RTCDtmfToneChangeEvent 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCDtmfToneChangeEvent, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCDtmfToneChangeEvent, WrapperImplType); 17 | 18 | String tone_; 19 | String toneBuffer_; 20 | RTCDtmfToneChangeEventWeakPtr thisWeak_; 21 | 22 | RTCDtmfToneChangeEvent() noexcept; 23 | virtual ~RTCDtmfToneChangeEvent() noexcept; 24 | 25 | 26 | // properties RTCDtmfToneChangeEvent 27 | String get_tone() noexcept override; 28 | String get_toneBuffer() noexcept override; 29 | 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 31 | const String &tone, 32 | const String &toneBuffer) noexcept; 33 | }; 34 | 35 | } // webRtc 36 | } // org 37 | } // namespace impl 38 | } // namespace wrapper 39 | 40 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCError.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCError.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCError : public wrapper::org::webRtc::RTCError 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCError, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCError, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCError, NativeType); 20 | 21 | RTCErrorWeakPtr thisWeak_; 22 | NativeTypePtr native_; 23 | 24 | RTCError() noexcept; 25 | virtual ~RTCError() noexcept; 26 | 27 | void wrapper_init_org_webRtc_RTCError() noexcept override; 28 | 29 | // properties RTCError 30 | wrapper::org::webRtc::RTCErrorType get_type() noexcept override; 31 | String get_message() noexcept override; 32 | bool get_ok() noexcept override; 33 | 34 | void reject(PromisePtr promise) noexcept; 35 | 36 | static void rejectPromise(PromisePtr promise, const NativeType &native) noexcept; 37 | static void rejectPromise(PromisePtr promise, NativeTypePtr native) noexcept; 38 | 39 | ZS_NO_DISCARD() static PromisePtr toPromise(const NativeType &native) noexcept; 40 | ZS_NO_DISCARD() static PromisePtr toPromise(NativeTypePtr native) noexcept; 41 | 42 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 43 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 44 | 45 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 46 | }; 47 | 48 | } // webRtc 49 | } // org 50 | } // namespace impl 51 | } // namespace wrapper 52 | 53 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCIceCandidateInit.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCIceCandidateInit.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct RTCIceCandidateInit : public wrapper::org::webRtc::RTCIceCandidateInit 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCIceCandidateInit, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCIceCandidateInit, WrapperImplType); 17 | 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCIceCandidate, UseIceCandidate); 19 | 20 | RTCIceCandidateInitWeakPtr thisWeak_; 21 | 22 | RTCIceCandidateInit() noexcept; 23 | virtual ~RTCIceCandidateInit() noexcept; 24 | void wrapper_init_org_webRtc_RTCIceCandidateInit() noexcept override; 25 | 26 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const UseIceCandidate &candidate) noexcept; 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseIceCandidatePtr candidate) noexcept; 28 | }; 29 | 30 | } // webRtc 31 | } // org 32 | } // namespace impl 33 | } // namespace wrapper 34 | 35 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCIceCandidateStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCIceCandidateStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/stats/rtcstats_objects.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCIceCandidateStats : public wrapper::org::webRtc::RTCIceCandidateStats 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCIceCandidateStats, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCIceCandidateStats, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCStats, NativeType); 21 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCIceCandidateStats, NativeStats); 22 | 23 | RTCIceCandidateStatsWeakPtr thisWeak_; 24 | NativeTypeUniPtr native_; 25 | 26 | RTCIceCandidateStats() noexcept; 27 | virtual ~RTCIceCandidateStats() noexcept; 28 | 29 | void trace() noexcept; 30 | 31 | // properties RTCStats 32 | ::zsLib::Time get_timestamp() noexcept override; 33 | Optional< wrapper::org::webRtc::RTCStatsType > get_statsType() noexcept override; 34 | String get_statsTypeOther() noexcept override; 35 | String get_id() noexcept override; 36 | 37 | // properties RTCIceCandidateStats 38 | String get_transportId() noexcept override; 39 | wrapper::org::webRtc::RTCNetworkType get_networkType() noexcept override; 40 | String get_ip() noexcept override; 41 | long get_port() noexcept override; 42 | String get_protocol() noexcept override; 43 | wrapper::org::webRtc::RTCIceCandidateType get_candidateType() noexcept override; 44 | long get_priority() noexcept override; 45 | String get_url() noexcept override; 46 | String get_relayProtocol() noexcept override; 47 | Optional< bool > get_deleted() noexcept override; 48 | 49 | ZS_NO_DISCARD() static WrapperTypePtr toWrapper(NativeTypeUniPtr value) noexcept; 50 | ZS_NO_DISCARD() const NativeStats &cast() noexcept; 51 | }; 52 | 53 | } // webRtc 54 | } // org 55 | } // namespace impl 56 | } // namespace wrapper 57 | 58 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCIceServer.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCIceServer.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/peerconnectioninterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCIceServer : public wrapper::org::webRtc::RTCIceServer 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCIceServer, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCIceServer, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::PeerConnectionInterface::IceServer, NativeType); 21 | 22 | RTCIceServerWeakPtr thisWeak_; 23 | 24 | RTCIceServer() noexcept; 25 | virtual ~RTCIceServer() noexcept; 26 | 27 | 28 | // methods RTCIceServer 29 | void wrapper_init_org_webRtc_RTCIceServer() noexcept override; 30 | void wrapper_init_org_webRtc_RTCIceServer(wrapper::org::webRtc::RTCIceServerPtr source) noexcept override; 31 | 32 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 33 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 34 | 35 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 36 | }; 37 | 38 | } // webRtc 39 | } // org 40 | } // namespace impl 41 | } // namespace wrapper 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCKeyParams.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCKeyParams.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCKeyParams : public wrapper::org::webRtc::RTCKeyParams 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCKeyParams, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCKeyParams, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::rtc::KeyParams, NativeType); 20 | 21 | NativeTypePtr native_; 22 | RTCKeyParamsWeakPtr thisWeak_; 23 | 24 | RTCKeyParams() noexcept; 25 | virtual ~RTCKeyParams() noexcept; 26 | 27 | 28 | // methods RTCKeyParams 29 | void wrapper_init_org_webRtc_RTCKeyParams() noexcept override; 30 | void wrapper_init_org_webRtc_RTCKeyParams(wrapper::org::webRtc::RTCKeyType key_type) noexcept override; 31 | 32 | // properties RTCKeyParams 33 | bool get_valid() noexcept override; 34 | wrapper::org::webRtc::RTCRSAParamsPtr get_rsa() noexcept override; 35 | wrapper::org::webRtc::RTCECCurve get_ec() noexcept override; 36 | wrapper::org::webRtc::RTCKeyType get_type() noexcept override; 37 | 38 | static WrapperImplTypePtr createDefault(); 39 | 40 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 41 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 42 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 43 | 44 | }; 45 | 46 | } // webRtc 47 | } // org 48 | } // namespace impl 49 | } // namespace wrapper 50 | 51 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCMediaStreamStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCMediaStreamStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/stats/rtcstats_objects.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCMediaStreamStats : public wrapper::org::webRtc::RTCMediaStreamStats 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCMediaStreamStats, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCMediaStreamStats, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCStats, NativeType); 21 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCMediaStreamStats, NativeStats); 22 | 23 | RTCMediaStreamStatsWeakPtr thisWeak_; 24 | NativeTypeUniPtr native_; 25 | 26 | RTCMediaStreamStats() noexcept; 27 | virtual ~RTCMediaStreamStats() noexcept; 28 | 29 | void trace() noexcept; 30 | 31 | // properties RTCStats 32 | ::zsLib::Time get_timestamp() noexcept override; 33 | Optional< wrapper::org::webRtc::RTCStatsType > get_statsType() noexcept override; 34 | String get_statsTypeOther() noexcept override; 35 | String get_id() noexcept override; 36 | 37 | // properties RTCMediaStreamStats 38 | String get_streamIdentifier() noexcept override; 39 | shared_ptr< list< String > > get_trackIds() noexcept override; 40 | 41 | ZS_NO_DISCARD() static WrapperTypePtr toWrapper(NativeTypeUniPtr value) noexcept; 42 | ZS_NO_DISCARD() const NativeStats &cast() noexcept; 43 | }; 44 | 45 | } // webRtc 46 | } // org 47 | } // namespace impl 48 | } // namespace wrapper 49 | 50 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCOAuthCredential.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCOAuthCredential.h" 6 | 7 | #include 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct RTCOAuthCredential : public wrapper::org::webRtc::RTCOAuthCredential 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCOAuthCredential, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCOAuthCredential, WrapperImplType); 18 | //ZS_DECLARE_TYPEDEF_PTR(SomeType, NativeType); 19 | 20 | RTCOAuthCredentialWeakPtr thisWeak_; 21 | 22 | RTCOAuthCredential() noexcept; 23 | virtual ~RTCOAuthCredential() noexcept; 24 | 25 | 26 | // methods RTCOAuthCredential 27 | void wrapper_init_org_webRtc_RTCOAuthCredential() noexcept override; 28 | void wrapper_init_org_webRtc_RTCOAuthCredential(wrapper::org::webRtc::RTCOAuthCredentialPtr source) noexcept override; 29 | 30 | //ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 31 | //ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 32 | 33 | //ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 34 | }; 35 | 36 | } // webRtc 37 | } // org 38 | } // namespace impl 39 | } // namespace wrapper 40 | 41 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCOfferAnswerOptions.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_RTCOfferAnswerOptions.h" 3 | 4 | using ::zsLib::String; 5 | using ::zsLib::Optional; 6 | using ::zsLib::Any; 7 | using ::zsLib::AnyPtr; 8 | using ::zsLib::AnyHolder; 9 | using ::zsLib::Promise; 10 | using ::zsLib::PromisePtr; 11 | using ::zsLib::PromiseWithHolder; 12 | using ::zsLib::PromiseWithHolderPtr; 13 | using ::zsLib::eventing::SecureByteBlock; 14 | using ::zsLib::eventing::SecureByteBlockPtr; 15 | using ::std::shared_ptr; 16 | using ::std::weak_ptr; 17 | using ::std::make_shared; 18 | using ::std::list; 19 | using ::std::set; 20 | using ::std::map; 21 | 22 | // borrow definitions from class 23 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCOfferAnswerOptions::WrapperImplType, WrapperImplType); 24 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::NativeType, NativeType); 26 | 27 | //------------------------------------------------------------------------------ 28 | wrapper::impl::org::webRtc::RTCOfferAnswerOptions::~RTCOfferAnswerOptions() noexcept 29 | { 30 | } 31 | 32 | //------------------------------------------------------------------------------ 33 | void WrapperImplType::apply(const NativeType &from, WrapperType &to) noexcept 34 | { 35 | to.voiceActivityDetection = from.voice_activity_detection; 36 | } 37 | 38 | //------------------------------------------------------------------------------ 39 | void WrapperImplType::apply(const WrapperType &from, NativeType &to) noexcept 40 | { 41 | to.voice_activity_detection = from.voiceActivityDetection; 42 | } 43 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCOfferAnswerOptions.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCOfferAnswerOptions.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/peerconnectioninterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCOfferAnswerOptions : public wrapper::org::webRtc::RTCOfferAnswerOptions 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCOfferAnswerOptions, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCOfferAnswerOptions, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions, NativeType); 21 | 22 | RTCOfferAnswerOptions() noexcept = delete; 23 | RTCOfferAnswerOptions(const RTCOfferAnswerOptions &) noexcept = delete; 24 | virtual ~RTCOfferAnswerOptions() noexcept; 25 | 26 | static void apply(const NativeType &from, WrapperType &to) noexcept; 27 | static void apply(const WrapperType &from, NativeType &to) noexcept; 28 | }; 29 | 30 | } // webRtc 31 | } // org 32 | } // namespace impl 33 | } // namespace wrapper 34 | 35 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCOfferOptions.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCOfferOptions.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api/peerconnectioninterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCOfferOptions : public wrapper::org::webRtc::RTCOfferOptions 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCOfferOptions, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCOfferOptions, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::PeerConnectionInterface::RTCOfferAnswerOptions, NativeType); 21 | 22 | RTCOfferOptionsWeakPtr thisWeak_; 23 | 24 | RTCOfferOptions() noexcept; 25 | virtual ~RTCOfferOptions() noexcept; 26 | 27 | 28 | // methods RTCOfferOptions 29 | void wrapper_init_org_webRtc_RTCOfferOptions() noexcept override; 30 | void wrapper_init_org_webRtc_RTCOfferOptions(wrapper::org::webRtc::RTCOfferOptionsPtr source) noexcept override; 31 | 32 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 33 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 34 | 35 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 36 | }; 37 | 38 | } // webRtc 39 | } // org 40 | } // namespace impl 41 | } // namespace wrapper 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCPeerConnectionIceErrorEvent.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #pragma once 4 | 5 | #include "types.h" 6 | #include "generated/org_webRtc_RTCPeerConnectionIceErrorEvent.h" 7 | 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct RTCPeerConnectionIceErrorEvent : public wrapper::org::webRtc::RTCPeerConnectionIceErrorEvent 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCPeerConnectionIceErrorEvent, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCPeerConnectionIceErrorEvent, WrapperImplType); 18 | RTCPeerConnectionIceErrorEventWeakPtr thisWeak_; 19 | 20 | RTCPeerConnectionIceErrorEvent() noexcept; 21 | virtual ~RTCPeerConnectionIceErrorEvent() noexcept; 22 | 23 | 24 | // properties RTCPeerConnectionIceErrorEvent 25 | String get_hostCandidate() noexcept override; 26 | String get_url() noexcept override; 27 | unsigned short get_errorCode() noexcept override; 28 | String get_errorText() noexcept override; 29 | }; 30 | 31 | } // webRtc 32 | } // org 33 | } // namespace impl 34 | } // namespace wrapper 35 | 36 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCPeerConnectionIceEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCPeerConnectionIceEvent.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct RTCPeerConnectionIceEvent : public wrapper::org::webRtc::RTCPeerConnectionIceEvent 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCPeerConnectionIceEvent, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCPeerConnectionIceEvent, WrapperImplType); 17 | 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCIceCandidate, UseIceCandidate); 19 | 20 | UseIceCandidatePtr candidate_; 21 | RTCPeerConnectionIceEventWeakPtr thisWeak_; 22 | 23 | RTCPeerConnectionIceEvent() noexcept; 24 | virtual ~RTCPeerConnectionIceEvent() noexcept; 25 | 26 | 27 | // properties RTCPeerConnectionIceEvent 28 | wrapper::org::webRtc::RTCIceCandidatePtr get_candidate() noexcept override; 29 | String get_url() noexcept override; 30 | 31 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseIceCandidatePtr value) noexcept; 32 | }; 33 | 34 | } // webRtc 35 | } // org 36 | } // namespace impl 37 | } // namespace wrapper 38 | 39 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRSAParams.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRSAParams.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRSAParams : public wrapper::org::webRtc::RTCRSAParams 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRSAParams, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRSAParams, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::rtc::RSAParams, NativeType); 20 | 21 | RTCRSAParamsWeakPtr thisWeak_; 22 | 23 | RTCRSAParams() noexcept; 24 | virtual ~RTCRSAParams() noexcept; 25 | void wrapper_init_org_webRtc_RTCRSAParams() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtcpFeedback.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtcpFeedback.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtcpFeedback : public wrapper::org::webRtc::RTCRtcpFeedback 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtcpFeedback, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtcpFeedback, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtcpFeedback, NativeType); 20 | 21 | RTCRtcpFeedbackWeakPtr thisWeak_; 22 | 23 | RTCRtcpFeedback() noexcept; 24 | virtual ~RTCRtcpFeedback() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtcpFeedback() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtcpParameters.cpp: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #include "impl_org_webRtc_RTCRtcpParameters.h" 4 | 5 | using ::zsLib::String; 6 | using ::zsLib::Optional; 7 | using ::zsLib::Any; 8 | using ::zsLib::AnyPtr; 9 | using ::zsLib::AnyHolder; 10 | using ::zsLib::Promise; 11 | using ::zsLib::PromisePtr; 12 | using ::zsLib::PromiseWithHolder; 13 | using ::zsLib::PromiseWithHolderPtr; 14 | using ::zsLib::eventing::SecureByteBlock; 15 | using ::zsLib::eventing::SecureByteBlockPtr; 16 | using ::std::shared_ptr; 17 | using ::std::weak_ptr; 18 | using ::std::make_shared; 19 | using ::std::list; 20 | using ::std::set; 21 | using ::std::map; 22 | 23 | // borrow definitions from class 24 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtcpParameters::WrapperImplType, WrapperImplType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 26 | 27 | #pragma ZS_BUILD_NOTE("LATER","No way to convert RTCRtcpParameters") 28 | 29 | //------------------------------------------------------------------------------ 30 | wrapper::impl::org::webRtc::RTCRtcpParameters::RTCRtcpParameters() noexcept 31 | { 32 | } 33 | 34 | //------------------------------------------------------------------------------ 35 | wrapper::org::webRtc::RTCRtcpParametersPtr wrapper::org::webRtc::RTCRtcpParameters::wrapper_create() noexcept 36 | { 37 | auto pThis = make_shared(); 38 | pThis->thisWeak_ = pThis; 39 | return pThis; 40 | } 41 | 42 | //------------------------------------------------------------------------------ 43 | wrapper::impl::org::webRtc::RTCRtcpParameters::~RTCRtcpParameters() noexcept 44 | { 45 | thisWeak_.reset(); 46 | } 47 | 48 | //------------------------------------------------------------------------------ 49 | void wrapper::impl::org::webRtc::RTCRtcpParameters::wrapper_init_org_webRtc_RTCRtcpParameters() noexcept 50 | { 51 | } 52 | 53 | 54 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtcpParameters.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #pragma once 4 | 5 | #include "types.h" 6 | #include "generated/org_webRtc_RTCRtcpParameters.h" 7 | 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct RTCRtcpParameters : public wrapper::org::webRtc::RTCRtcpParameters 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtcpParameters, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtcpParameters, WrapperImplType); 18 | RTCRtcpParametersWeakPtr thisWeak_; 19 | 20 | RTCRtcpParameters() noexcept; 21 | virtual ~RTCRtcpParameters() noexcept; 22 | 23 | void wrapper_init_org_webRtc_RTCRtcpParameters() noexcept override; 24 | }; 25 | 26 | } // webRtc 27 | } // org 28 | } // namespace impl 29 | } // namespace wrapper 30 | 31 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpCapabilities.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpCapabilities.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpCapabilities : public wrapper::org::webRtc::RTCRtpCapabilities 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpCapabilities, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpCapabilities, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpCapabilities, NativeType); 20 | 21 | RTCRtpCapabilitiesWeakPtr thisWeak_; 22 | 23 | RTCRtpCapabilities() noexcept; 24 | virtual ~RTCRtpCapabilities() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpCapabilities() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpCodecCapability.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpCodecCapability.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpCodecCapability : public wrapper::org::webRtc::RTCRtpCodecCapability 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpCodecCapability, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpCodecCapability, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpCodecCapability, NativeType); 20 | 21 | RTCRtpCodecCapabilityWeakPtr thisWeak_; 22 | 23 | RTCRtpCodecCapability() noexcept; 24 | virtual ~RTCRtpCodecCapability() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpCodecCapability() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpCodecParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpCodecParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpCodecParameters : public wrapper::org::webRtc::RTCRtpCodecParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpCodecParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpCodecParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpCodecParameters, NativeType); 20 | 21 | RTCRtpCodecParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpCodecParameters() noexcept; 24 | virtual ~RTCRtpCodecParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpCodecParameters() noexcept override; 26 | 27 | static String toFmtp(const std::unordered_map &input) noexcept; 28 | static void fromFmtp(const String &input, std::unordered_map &output) noexcept; 29 | 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 31 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 32 | 33 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 34 | }; 35 | 36 | } // webRtc 37 | } // org 38 | } // namespace impl 39 | } // namespace wrapper 40 | 41 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpCodingParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpCodingParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpCodingParameters : public wrapper::org::webRtc::RTCRtpCodingParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpCodingParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpCodingParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpEncodingParameters, NativeType); 20 | 21 | RTCRtpCodingParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpCodingParameters() noexcept; 24 | virtual ~RTCRtpCodingParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpCodingParameters() noexcept override; 26 | 27 | static void apply(const NativeType &from, WrapperType &to) noexcept; 28 | static void apply(const WrapperType &from, NativeType &to) noexcept; 29 | 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 31 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 32 | 33 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 34 | }; 35 | 36 | } // webRtc 37 | } // org 38 | } // namespace impl 39 | } // namespace wrapper 40 | 41 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpContributingSource.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpContributingSource.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpContributingSource : public wrapper::org::webRtc::RTCRtpContributingSource 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpContributingSource, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpContributingSource, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpSource, NativeType); 20 | 21 | RTCRtpContributingSourceWeakPtr thisWeak_; 22 | 23 | RTCRtpContributingSource() noexcept; 24 | virtual ~RTCRtpContributingSource() noexcept; 25 | 26 | static void apply(const NativeType &from, WrapperType &to); 27 | 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 29 | }; 30 | 31 | } // webRtc 32 | } // org 33 | } // namespace impl 34 | } // namespace wrapper 35 | 36 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpDecodingParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpDecodingParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpDecodingParameters : public wrapper::org::webRtc::RTCRtpDecodingParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpDecodingParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpDecodingParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpEncodingParameters, NativeType); 20 | 21 | RTCRtpDecodingParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpDecodingParameters() noexcept; 24 | virtual ~RTCRtpDecodingParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpDecodingParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpEncodingParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpEncodingParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpEncodingParameters : public wrapper::org::webRtc::RTCRtpEncodingParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpEncodingParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpEncodingParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpEncodingParameters, NativeType); 20 | 21 | RTCRtpEncodingParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpEncodingParameters() noexcept; 24 | virtual ~RTCRtpEncodingParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpEncodingParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpFecParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpFecParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpFecParameters : public wrapper::org::webRtc::RTCRtpFecParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpFecParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpFecParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpFecParameters, NativeType); 20 | 21 | RTCRtpFecParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpFecParameters() noexcept; 24 | virtual ~RTCRtpFecParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpFecParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpHeaderExtensionCapability.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpHeaderExtensionCapability.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpHeaderExtensionCapability : public wrapper::org::webRtc::RTCRtpHeaderExtensionCapability 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpHeaderExtensionCapability, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpHeaderExtensionCapability, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpHeaderExtensionCapability, NativeType); 20 | 21 | RTCRtpHeaderExtensionCapabilityWeakPtr thisWeak_; 22 | 23 | RTCRtpHeaderExtensionCapability() noexcept; 24 | virtual ~RTCRtpHeaderExtensionCapability() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpHeaderExtensionCapability() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpHeaderExtensionParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpHeaderExtensionParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpHeaderExtensionParameters : public wrapper::org::webRtc::RTCRtpHeaderExtensionParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpHeaderExtensionParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpHeaderExtensionParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpExtension, NativeType); 20 | 21 | RTCRtpHeaderExtensionParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpHeaderExtensionParameters() noexcept; 24 | virtual ~RTCRtpHeaderExtensionParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpHeaderExtensionParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpParameters : public wrapper::org::webRtc::RTCRtpParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpParameters, NativeType); 20 | 21 | RTCRtpParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpParameters() noexcept; 24 | virtual ~RTCRtpParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpParameters() noexcept override; 26 | 27 | static void apply(const NativeType &from, WrapperType &to); 28 | static void apply(const WrapperType &from, NativeType &to); 29 | 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 31 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 32 | 33 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 34 | }; 35 | 36 | } // webRtc 37 | } // org 38 | } // namespace impl 39 | } // namespace wrapper 40 | 41 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpReceiveParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpReceiveParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpReceiveParameters : public wrapper::org::webRtc::RTCRtpReceiveParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpReceiveParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpReceiveParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpParameters, NativeType); 20 | 21 | RTCRtpReceiveParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpReceiveParameters() noexcept; 24 | virtual ~RTCRtpReceiveParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpReceiveParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpReceiver.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpReceiver.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCRtpReceiver : public wrapper::org::webRtc::RTCRtpReceiver 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpReceiver, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpReceiver, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpReceiverInterface, NativeType); 21 | 22 | typedef rtc::scoped_refptr NativeTypeScopedPtr; 23 | 24 | NativeTypeScopedPtr native_; 25 | RTCRtpReceiverWeakPtr thisWeak_; 26 | 27 | RTCRtpReceiver() noexcept; 28 | virtual ~RTCRtpReceiver() noexcept; 29 | void wrapper_dispose() noexcept override; 30 | 31 | 32 | // methods RTCRtpReceiver 33 | wrapper::org::webRtc::RTCRtpReceiveParametersPtr getParameters() noexcept override; 34 | shared_ptr< list< wrapper::org::webRtc::RTCRtpContributingSourcePtr > > getContributingSources() noexcept override; 35 | shared_ptr< list< wrapper::org::webRtc::RTCRtpSynchronizationSourcePtr > > getSynchronizationSources() noexcept override; 36 | 37 | // properties RTCRtpReceiver 38 | wrapper::org::webRtc::MediaStreamTrackPtr get_track() noexcept override; 39 | 40 | void setupObserver() noexcept; 41 | void teardownObserver() noexcept; 42 | 43 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeType *native) noexcept; 44 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypeScopedPtr native) noexcept; 45 | 46 | ZS_NO_DISCARD() static NativeTypeScopedPtr toNative(WrapperTypePtr wrapper) noexcept; 47 | }; 48 | 49 | } // webRtc 50 | } // org 51 | } // namespace impl 52 | } // namespace wrapper 53 | 54 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpRtxParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpRtxParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpRtxParameters : public wrapper::org::webRtc::RTCRtpRtxParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpRtxParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpRtxParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpRtxParameters, NativeType); 20 | 21 | RTCRtpRtxParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpRtxParameters() noexcept; 24 | virtual ~RTCRtpRtxParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpRtxParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpSendParameters.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpSendParameters.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpSendParameters : public wrapper::org::webRtc::RTCRtpSendParameters 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpSendParameters, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpSendParameters, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpParameters, NativeType); 20 | 21 | RTCRtpSendParametersWeakPtr thisWeak_; 22 | 23 | RTCRtpSendParameters() noexcept; 24 | virtual ~RTCRtpSendParameters() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpSendParameters() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpSender.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpSender.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCRtpSender : public wrapper::org::webRtc::RTCRtpSender 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpSender, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpSender, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpSenderInterface, NativeType); 21 | 22 | typedef rtc::scoped_refptr NativeTypeScopedPtr; 23 | 24 | NativeTypeScopedPtr native_; 25 | RTCRtpSenderWeakPtr thisWeak_; 26 | 27 | RTCRtpSender() noexcept; 28 | virtual ~RTCRtpSender() noexcept; 29 | void wrapper_dispose() noexcept override; 30 | 31 | 32 | // methods RTCRtpSender 33 | wrapper::org::webRtc::RTCRtpSendParametersPtr getParameters() noexcept override; 34 | PromisePtr setParameters(wrapper::org::webRtc::RTCRtpSendParametersPtr parameters) noexcept(false) override; // throws wrapper::org::webRtc::RTCErrorPtr 35 | PromisePtr replaceTrack(wrapper::org::webRtc::MediaStreamTrackPtr withTrack) noexcept override; 36 | 37 | // properties RTCRtpSender 38 | wrapper::org::webRtc::MediaStreamTrackPtr get_track() noexcept override; 39 | wrapper::org::webRtc::RTCDtmfSenderPtr get_dtmf() noexcept override; 40 | 41 | void setupObserver() noexcept; 42 | void teardownObserver() noexcept; 43 | 44 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeType *native) noexcept; 45 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypeScopedPtr native) noexcept; 46 | 47 | ZS_NO_DISCARD() static NativeTypeScopedPtr toNative(WrapperTypePtr wrapper) noexcept; 48 | }; 49 | 50 | } // webRtc 51 | } // org 52 | } // namespace impl 53 | } // namespace wrapper 54 | 55 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpSynchronizationSource.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpSynchronizationSource.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpSynchronizationSource : public wrapper::org::webRtc::RTCRtpSynchronizationSource 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpSynchronizationSource, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpSynchronizationSource, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpSource, NativeType); 20 | 21 | RTCRtpSynchronizationSourceWeakPtr thisWeak_; 22 | 23 | RTCRtpSynchronizationSource() noexcept; 24 | virtual ~RTCRtpSynchronizationSource() noexcept; 25 | 26 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 27 | }; 28 | 29 | } // webRtc 30 | } // org 31 | } // namespace impl 32 | } // namespace wrapper 33 | 34 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCRtpTransceiverInit.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCRtpTransceiverInit.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCRtpTransceiverInit : public wrapper::org::webRtc::RTCRtpTransceiverInit 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCRtpTransceiverInit, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpTransceiverInit, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RtpTransceiverInit, NativeType); 20 | 21 | RTCRtpTransceiverInitWeakPtr thisWeak_; 22 | 23 | RTCRtpTransceiverInit() noexcept; 24 | virtual ~RTCRtpTransceiverInit() noexcept; 25 | void wrapper_init_org_webRtc_RTCRtpTransceiverInit() noexcept override; 26 | 27 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 28 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypePtr native) noexcept; 29 | 30 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCSessionDescription.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCSessionDescription.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCSessionDescription : public wrapper::org::webRtc::RTCSessionDescription 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCSessionDescription, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCSessionDescription, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::SessionDescriptionInterface, NativeType); 20 | 21 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCSessionDescriptionInit, UseSessionDescriptionInit); 22 | 23 | NativeTypeUniPtr native_; 24 | RTCSessionDescriptionWeakPtr thisWeak_; 25 | 26 | RTCSessionDescription() noexcept; 27 | virtual ~RTCSessionDescription() noexcept; 28 | 29 | 30 | // methods RTCSessionDescription 31 | void wrapper_init_org_webRtc_RTCSessionDescription(wrapper::org::webRtc::RTCSessionDescriptionInitPtr init) noexcept(false) override; // throws wrapper::org::webRtc::RTCErrorPtr 32 | 33 | // properties RTCSessionDescription 34 | wrapper::org::webRtc::RTCSdpType get_sdpType() noexcept override; 35 | String get_sdp() noexcept override; 36 | 37 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 38 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType *native) noexcept; 39 | 40 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const UseSessionDescriptionInit &value) noexcept; 41 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseSessionDescriptionInitPtr value) noexcept; 42 | 43 | ZS_NO_DISCARD() static NativeTypeUniPtr toNative(WrapperTypePtr wrapper) noexcept; 44 | }; 45 | 46 | } // webRtc 47 | } // org 48 | } // namespace impl 49 | } // namespace wrapper 50 | 51 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCSessionDescriptionInit.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_RTCSessionDescriptionInit.h" 3 | 4 | using ::zsLib::String; 5 | using ::zsLib::Optional; 6 | using ::zsLib::Any; 7 | using ::zsLib::AnyPtr; 8 | using ::zsLib::AnyHolder; 9 | using ::zsLib::Promise; 10 | using ::zsLib::PromisePtr; 11 | using ::zsLib::PromiseWithHolder; 12 | using ::zsLib::PromiseWithHolderPtr; 13 | using ::zsLib::eventing::SecureByteBlock; 14 | using ::zsLib::eventing::SecureByteBlockPtr; 15 | using ::std::shared_ptr; 16 | using ::std::weak_ptr; 17 | using ::std::make_shared; 18 | using ::std::list; 19 | using ::std::set; 20 | using ::std::map; 21 | 22 | // borrow definitions from class 23 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCSessionDescriptionInit::WrapperImplType, WrapperImplType); 24 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 25 | 26 | //------------------------------------------------------------------------------ 27 | wrapper::impl::org::webRtc::RTCSessionDescriptionInit::RTCSessionDescriptionInit() noexcept 28 | { 29 | } 30 | 31 | //------------------------------------------------------------------------------ 32 | wrapper::org::webRtc::RTCSessionDescriptionInitPtr wrapper::org::webRtc::RTCSessionDescriptionInit::wrapper_create() noexcept 33 | { 34 | auto pThis = make_shared(); 35 | pThis->thisWeak_ = pThis; 36 | return pThis; 37 | } 38 | 39 | //------------------------------------------------------------------------------ 40 | wrapper::impl::org::webRtc::RTCSessionDescriptionInit::~RTCSessionDescriptionInit() noexcept 41 | { 42 | thisWeak_.reset(); 43 | } 44 | 45 | //------------------------------------------------------------------------------ 46 | void wrapper::impl::org::webRtc::RTCSessionDescriptionInit::wrapper_init_org_webRtc_RTCSessionDescriptionInit() noexcept 47 | { 48 | } 49 | 50 | 51 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCSessionDescriptionInit.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCSessionDescriptionInit.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct RTCSessionDescriptionInit : public wrapper::org::webRtc::RTCSessionDescriptionInit 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCSessionDescriptionInit, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCSessionDescriptionInit, WrapperImplType); 17 | RTCSessionDescriptionInitWeakPtr thisWeak_; 18 | 19 | RTCSessionDescriptionInit() noexcept; 20 | virtual ~RTCSessionDescriptionInit() noexcept; 21 | 22 | void wrapper_init_org_webRtc_RTCSessionDescriptionInit() noexcept override; 23 | }; 24 | 25 | } // webRtc 26 | } // org 27 | } // namespace impl 28 | } // namespace wrapper 29 | 30 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct RTCStats : public wrapper::org::webRtc::RTCStats 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCStats, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCStats, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::RTCStats, NativeType); 20 | 21 | RTCStatsWeakPtr thisWeak_; 22 | NativeTypeUniPtr native_; 23 | 24 | RTCStats() noexcept; 25 | virtual ~RTCStats() noexcept; 26 | 27 | 28 | // properties RTCStats 29 | ::zsLib::Time get_timestamp() noexcept override; 30 | Optional< wrapper::org::webRtc::RTCStatsType > get_statsType() noexcept override; 31 | String get_statsTypeOther() noexcept override; 32 | String get_id() noexcept override; 33 | 34 | void trace() noexcept override; 35 | 36 | ZS_NO_DISCARD() static WrapperTypePtr toWrapper(NativeTypeUniPtr value) noexcept; 37 | 38 | ZS_NO_DISCARD() static ::zsLib::Time get_timestamp(const NativeType *native) noexcept; 39 | ZS_NO_DISCARD() static Optional< wrapper::org::webRtc::RTCStatsType > get_statsType(const NativeType *native) noexcept; 40 | ZS_NO_DISCARD() static String get_statsTypeOther(const NativeType *native) noexcept; 41 | ZS_NO_DISCARD() static String get_id(const NativeType *native) noexcept; 42 | 43 | ZS_NO_DISCARD() static NativeTypeUniPtr toNative(WrapperImplTypePtr value) noexcept; 44 | }; 45 | 46 | } // webRtc 47 | } // org 48 | } // namespace impl 49 | } // namespace wrapper 50 | 51 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCStatsReport.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCStatsReport.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct RTCStatsReport : public wrapper::org::webRtc::RTCStatsReport 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCStatsReport, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCStatsReport, WrapperImplType); 20 | RTCStatsReportWeakPtr thisWeak_; 21 | 22 | typedef ::webrtc::RTCStatsReport NativeType; 23 | typedef rtc::scoped_refptr ScopedConstNativeTypePtr; 24 | 25 | ScopedConstNativeTypePtr native_; 26 | 27 | RTCStatsReport() noexcept; 28 | virtual ~RTCStatsReport() noexcept; 29 | 30 | 31 | // methods RTCStatsReport 32 | wrapper::org::webRtc::RTCStatsPtr getStats(String id) noexcept override; 33 | 34 | // properties RTCStatsReport 35 | uint64_t get_objectId() noexcept override; 36 | shared_ptr< list< String > > get_statsIds() noexcept override; 37 | 38 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const ScopedConstNativeTypePtr &value) noexcept; 39 | 40 | ZS_NO_DISCARD() static ScopedConstNativeTypePtr toNative(WrapperTypePtr value) noexcept; 41 | }; 42 | 43 | } // webRtc 44 | } // org 45 | } // namespace impl 46 | } // namespace wrapper 47 | 48 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCStatsTypeSet.cpp: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #include "impl_org_webRtc_RTCStatsTypeSet.h" 4 | 5 | using ::zsLib::String; 6 | using ::zsLib::Optional; 7 | using ::zsLib::Any; 8 | using ::zsLib::AnyPtr; 9 | using ::zsLib::AnyHolder; 10 | using ::zsLib::Promise; 11 | using ::zsLib::PromisePtr; 12 | using ::zsLib::PromiseWithHolder; 13 | using ::zsLib::PromiseWithHolderPtr; 14 | using ::zsLib::eventing::SecureByteBlock; 15 | using ::zsLib::eventing::SecureByteBlockPtr; 16 | using ::std::shared_ptr; 17 | using ::std::weak_ptr; 18 | using ::std::make_shared; 19 | using ::std::list; 20 | using ::std::set; 21 | using ::std::map; 22 | 23 | // borrow definitions from class 24 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCStatsTypeSet::WrapperImplType, WrapperImplType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 26 | 27 | //------------------------------------------------------------------------------ 28 | wrapper::impl::org::webRtc::RTCStatsTypeSet::RTCStatsTypeSet() noexcept 29 | { 30 | } 31 | 32 | //------------------------------------------------------------------------------ 33 | wrapper::org::webRtc::RTCStatsTypeSetPtr wrapper::org::webRtc::RTCStatsTypeSet::wrapper_create() noexcept 34 | { 35 | auto pThis = make_shared(); 36 | pThis->thisWeak_ = pThis; 37 | return pThis; 38 | } 39 | 40 | //------------------------------------------------------------------------------ 41 | wrapper::impl::org::webRtc::RTCStatsTypeSet::~RTCStatsTypeSet() noexcept 42 | { 43 | thisWeak_.reset(); 44 | } 45 | 46 | //------------------------------------------------------------------------------ 47 | void wrapper::impl::org::webRtc::RTCStatsTypeSet::wrapper_init_org_webRtc_RTCStatsTypeSet() noexcept 48 | { 49 | } 50 | 51 | //------------------------------------------------------------------------------ 52 | void wrapper::impl::org::webRtc::RTCStatsTypeSet::wrapper_init_org_webRtc_RTCStatsTypeSet(shared_ptr< set< wrapper::org::webRtc::RTCStatsType > > values) noexcept 53 | { 54 | if (!values) return; 55 | 56 | values_ = (*values); 57 | } 58 | 59 | //------------------------------------------------------------------------------ 60 | bool wrapper::impl::org::webRtc::RTCStatsTypeSet::hasStatType(wrapper::org::webRtc::RTCStatsType type) noexcept 61 | { 62 | return values_.find(type) != values_.end(); 63 | } 64 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCStatsTypeSet.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #pragma once 4 | 5 | #include "types.h" 6 | #include "generated/org_webRtc_RTCStatsTypeSet.h" 7 | 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct RTCStatsTypeSet : public wrapper::org::webRtc::RTCStatsTypeSet 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCStatsTypeSet, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCStatsTypeSet, WrapperImplType); 18 | RTCStatsTypeSetWeakPtr thisWeak_; 19 | 20 | set< wrapper::org::webRtc::RTCStatsType > values_; 21 | 22 | RTCStatsTypeSet() noexcept; 23 | virtual ~RTCStatsTypeSet() noexcept; 24 | 25 | 26 | // methods RTCStatsTypeSet 27 | void wrapper_init_org_webRtc_RTCStatsTypeSet() noexcept override; 28 | void wrapper_init_org_webRtc_RTCStatsTypeSet(shared_ptr< set< wrapper::org::webRtc::RTCStatsType > > values) noexcept override; 29 | bool hasStatType(wrapper::org::webRtc::RTCStatsType type) noexcept override; 30 | }; 31 | 32 | } // webRtc 33 | } // org 34 | } // namespace impl 35 | } // namespace wrapper 36 | 37 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_RTCTrackEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_RTCTrackEvent.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct RTCTrackEvent : public wrapper::org::webRtc::RTCTrackEvent 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::RTCTrackEvent, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCTrackEvent, WrapperImplType); 17 | 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpReceiver, UseRtpReceiver); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::MediaStreamTrack, UseMediaStreamTrack); 20 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::RTCRtpTransceiver, UseRtpTransceiver); 21 | 22 | wrapper::org::webRtc::RTCRtpReceiverPtr receiver_; 23 | wrapper::org::webRtc::MediaStreamTrackPtr track_; 24 | wrapper::org::webRtc::RTCRtpTransceiverPtr transceiver_; 25 | RTCTrackEventWeakPtr thisWeak_; 26 | 27 | RTCTrackEvent() noexcept; 28 | virtual ~RTCTrackEvent() noexcept; 29 | 30 | 31 | // properties RTCTrackEvent 32 | wrapper::org::webRtc::RTCRtpReceiverPtr get_receiver() noexcept override; 33 | wrapper::org::webRtc::MediaStreamTrackPtr get_track() noexcept override; 34 | wrapper::org::webRtc::RTCRtpTransceiverPtr get_transceiver() noexcept override; 35 | 36 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseRtpReceiverPtr value) noexcept; 37 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseMediaStreamTrackPtr value) noexcept; 38 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(RTCRtpTransceiverPtr value) noexcept; 39 | }; 40 | 41 | } // webRtc 42 | } // org 43 | } // namespace impl 44 | } // namespace wrapper 45 | 46 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoCapturerInputSize.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_VideoCapturerInputSize.h" 3 | 4 | #include 5 | 6 | using ::zsLib::String; 7 | using ::zsLib::Optional; 8 | using ::zsLib::Any; 9 | using ::zsLib::AnyPtr; 10 | using ::zsLib::AnyHolder; 11 | using ::zsLib::Promise; 12 | using ::zsLib::PromisePtr; 13 | using ::zsLib::PromiseWithHolder; 14 | using ::zsLib::PromiseWithHolderPtr; 15 | using ::zsLib::eventing::SecureByteBlock; 16 | using ::zsLib::eventing::SecureByteBlockPtr; 17 | using ::std::shared_ptr; 18 | using ::std::weak_ptr; 19 | using ::std::make_shared; 20 | using ::std::list; 21 | using ::std::set; 22 | using ::std::map; 23 | 24 | // borrow definitions from class 25 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoCapturerInputSize::WrapperImplType, WrapperImplType); 26 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 27 | 28 | //------------------------------------------------------------------------------ 29 | wrapper::impl::org::webRtc::VideoCapturerInputSize::VideoCapturerInputSize() noexcept 30 | { 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | wrapper::org::webRtc::VideoCapturerInputSizePtr wrapper::org::webRtc::VideoCapturerInputSize::wrapper_create() noexcept 35 | { 36 | auto pThis = make_shared(); 37 | pThis->thisWeak_ = pThis; 38 | return pThis; 39 | } 40 | 41 | //------------------------------------------------------------------------------ 42 | wrapper::impl::org::webRtc::VideoCapturerInputSize::~VideoCapturerInputSize() noexcept 43 | { 44 | thisWeak_.reset(); 45 | } 46 | 47 | //------------------------------------------------------------------------------ 48 | void wrapper::impl::org::webRtc::VideoCapturerInputSize::wrapper_init_org_webRtc_VideoCapturerInputSize() noexcept 49 | { 50 | } 51 | 52 | //------------------------------------------------------------------------------ 53 | WrapperImplTypePtr WrapperImplType::toWrapper(int width, int height) noexcept 54 | { 55 | auto result = make_shared(); 56 | result->thisWeak_ = result; 57 | result->width = SafeIntwidth)>(width); 58 | result->height = SafeIntheight)>(height); 59 | return result; 60 | } 61 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoCapturerInputSize.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoCapturerInputSize.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct VideoCapturerInputSize : public wrapper::org::webRtc::VideoCapturerInputSize 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoCapturerInputSize, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoCapturerInputSize, WrapperImplType); 17 | VideoCapturerInputSizeWeakPtr thisWeak_; 18 | 19 | VideoCapturerInputSize() noexcept; 20 | virtual ~VideoCapturerInputSize() noexcept; 21 | void wrapper_init_org_webRtc_VideoCapturerInputSize() noexcept override; 22 | 23 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(int width, int height) noexcept; 24 | }; 25 | 26 | } // webRtc 27 | } // org 28 | } // namespace impl 29 | } // namespace wrapper 30 | 31 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoData.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoData.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct VideoData : public wrapper::org::webRtc::VideoData 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoData, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoData, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::VideoFrameBuffer, NativeType); 21 | 22 | typedef rtc::scoped_refptr NativeTypeScopedRefPtr; 23 | 24 | VideoDataWeakPtr thisWeak_; 25 | NativeTypeScopedRefPtr native_; 26 | 27 | const uint8_t *buffer8bit_ {}; 28 | const uint16_t *buffer16bit_ {}; 29 | size_t size_ {}; 30 | 31 | VideoData() noexcept; 32 | virtual ~VideoData() noexcept; 33 | void wrapper_dispose() noexcept override; 34 | 35 | 36 | // properties VideoData 37 | bool get_is8BitColorSpace() noexcept override; 38 | bool get_is16BitColorSpace() noexcept override; 39 | const uint8_t *get_data8bit() noexcept override; 40 | const uint16_t *get_data16bit() noexcept override; 41 | 42 | size_t get_size() noexcept override; 43 | 44 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 45 | NativeType *native, 46 | const uint8_t *buffer, 47 | size_t size) noexcept; 48 | 49 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 50 | NativeTypeScopedRefPtr native, 51 | const uint8_t *buffer, 52 | size_t size) noexcept; 53 | 54 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 55 | NativeType *native, 56 | const uint16_t *buffer, 57 | size_t size) noexcept; 58 | 59 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper( 60 | NativeTypeScopedRefPtr native, 61 | const uint16_t *buffer, 62 | size_t size) noexcept; 63 | 64 | }; 65 | 66 | } // webRtc 67 | } // org 68 | } // namespace impl 69 | } // namespace wrapper 70 | 71 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoDeviceInfo.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoDeviceInfo.h" 6 | 7 | #ifdef CPPWINRT_VERSION 8 | #include 9 | #endif // CPPWINRT_VERSION 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct VideoDeviceInfo : public wrapper::org::webRtc::VideoDeviceInfo 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoDeviceInfo, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoDeviceInfo, WrapperImplType); 20 | 21 | VideoDeviceInfoWeakPtr thisWeak_; 22 | #ifdef CPPWINRT_VERSION 23 | winrt::Windows::Devices::Enumeration::DeviceInformation info_ {nullptr}; 24 | #endif // CPPWINRT_VERSION 25 | 26 | VideoDeviceInfo() noexcept; 27 | virtual ~VideoDeviceInfo() noexcept; 28 | 29 | 30 | // properties VideoDeviceInfo 31 | String get_id() noexcept override; 32 | String get_name() noexcept override; 33 | bool get_isDefault() noexcept override; 34 | bool get_isEnabled() noexcept override; 35 | 36 | #ifdef CPPWINRT_VERSION 37 | ZS_NO_DISCARD() static wrapper::org::webRtc::VideoDeviceInfoPtr toWrapper(winrt::Windows::Devices::Enumeration::DeviceInformation const & info) noexcept; 38 | ZS_NO_DISCARD() static winrt::Windows::Devices::Enumeration::DeviceInformation toNative_winrt(wrapper::org::webRtc::VideoDeviceInfoPtr info) noexcept; 39 | #endif // CPPWINRT_VERSION 40 | 41 | }; 42 | 43 | } // webRtc 44 | } // org 45 | } // namespace impl 46 | } // namespace wrapper 47 | 48 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoFormat.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoFormat.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "impl_org_webRtc_post_include.h" 9 | 10 | namespace wrapper { 11 | namespace impl { 12 | namespace org { 13 | namespace webRtc { 14 | 15 | struct VideoFormat : public wrapper::org::webRtc::VideoFormat 16 | { 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoFormat, WrapperType); 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoFormat, WrapperImplType); 19 | ZS_DECLARE_TYPEDEF_PTR(::cricket::VideoFormat, NativeType); 20 | 21 | NativeTypePtr native_; 22 | VideoFormatWeakPtr thisWeak_; 23 | 24 | VideoFormat() noexcept; 25 | virtual ~VideoFormat() noexcept; 26 | 27 | 28 | // methods VideoFormat 29 | bool IsPixelRateLess(wrapper::org::webRtc::VideoFormatPtr other) noexcept override; 30 | void wrapper_init_org_webRtc_VideoFormat() noexcept override; 31 | void wrapper_init_org_webRtc_VideoFormat(wrapper::org::webRtc::VideoFormatPtr source) noexcept override; 32 | 33 | // properties VideoFormat 34 | int get_width() noexcept override; 35 | void set_width(int value) noexcept override; 36 | int get_height() noexcept override; 37 | void set_height(int value) noexcept override; 38 | ::zsLib::Nanoseconds get_interval() noexcept override; 39 | void set_interval(::zsLib::Nanoseconds value) noexcept override; 40 | uint32_t get_fourcc() noexcept override; 41 | void set_fourcc(uint32_t value) noexcept override; 42 | int get_framerate() noexcept override; 43 | float get_framerateFloat() noexcept override; 44 | bool get_isSize0x0() noexcept override; 45 | 46 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 47 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType *native) noexcept; 48 | ZS_NO_DISCARD() static NativeTypePtr toNative(WrapperTypePtr wrapper) noexcept; 49 | }; 50 | 51 | } // webRtc 52 | } // org 53 | } // namespace impl 54 | } // namespace wrapper 55 | 56 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoFrameBuffer.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoFrameBuffer.h" 6 | 7 | 8 | #include "impl_org_webRtc_pre_include.h" 9 | #include "rtc_base/scoped_ref_ptr.h" 10 | #include "impl_org_webRtc_post_include.h" 11 | 12 | 13 | namespace wrapper { 14 | namespace impl { 15 | namespace org { 16 | namespace webRtc { 17 | 18 | struct VideoFrameBuffer : public wrapper::org::webRtc::VideoFrameBuffer 19 | { 20 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoFrameBuffer, WrapperType); 21 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoFrameBuffer, WrapperImplType); 22 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::VideoFrameBuffer, NativeType); 23 | 24 | typedef rtc::scoped_refptr NativeTypeScopedRefPtr; 25 | 26 | VideoFrameBufferWeakPtr thisWeak_; 27 | NativeTypeScopedRefPtr native_; 28 | 29 | 30 | VideoFrameBuffer() noexcept; 31 | virtual ~VideoFrameBuffer() noexcept; 32 | void wrapper_dispose() noexcept override; 33 | 34 | 35 | // methods VideoFrameBuffer 36 | wrapper::org::webRtc::VideoFramePlanarYuvBufferPtr toI420() noexcept override; 37 | 38 | // properties VideoFrameBuffer 39 | wrapper::org::webRtc::VideoFrameBufferType get_type() noexcept override; 40 | int get_width() noexcept override; 41 | int get_height() noexcept override; 42 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeType *native) noexcept; 43 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypeScopedRefPtr native) noexcept; 44 | wrapper::org::webRtc::VideoFramePlanarYuvBufferPtr get_yuvFrame() noexcept override; 45 | wrapper::org::webRtc::VideoFramePlanarYuvaBufferPtr get_yuvaFrame() noexcept override; 46 | wrapper::org::webRtc::VideoFrameNativeBufferPtr get_nativeFrame() noexcept override; 47 | }; 48 | 49 | } // webRtc 50 | } // org 51 | } // namespace impl 52 | } // namespace wrapper 53 | 54 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoFrameBufferEvent.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_VideoFrameBufferEvent.h" 3 | 4 | using ::zsLib::String; 5 | using ::zsLib::Optional; 6 | using ::zsLib::Any; 7 | using ::zsLib::AnyPtr; 8 | using ::zsLib::AnyHolder; 9 | using ::zsLib::Promise; 10 | using ::zsLib::PromisePtr; 11 | using ::zsLib::PromiseWithHolder; 12 | using ::zsLib::PromiseWithHolderPtr; 13 | using ::zsLib::eventing::SecureByteBlock; 14 | using ::zsLib::eventing::SecureByteBlockPtr; 15 | using ::std::shared_ptr; 16 | using ::std::weak_ptr; 17 | using ::std::make_shared; 18 | using ::std::list; 19 | using ::std::set; 20 | using ::std::map; 21 | 22 | // borrow definitions from class 23 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoFrameBufferEvent::WrapperImplType, WrapperImplType); 24 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 25 | 26 | //------------------------------------------------------------------------------ 27 | wrapper::impl::org::webRtc::VideoFrameBufferEvent::VideoFrameBufferEvent() noexcept 28 | { 29 | } 30 | 31 | //------------------------------------------------------------------------------ 32 | wrapper::org::webRtc::VideoFrameBufferEventPtr wrapper::org::webRtc::VideoFrameBufferEvent::wrapper_create() noexcept 33 | { 34 | auto pThis = make_shared(); 35 | pThis->thisWeak_ = pThis; 36 | return pThis; 37 | } 38 | 39 | //------------------------------------------------------------------------------ 40 | wrapper::impl::org::webRtc::VideoFrameBufferEvent::~VideoFrameBufferEvent() noexcept 41 | { 42 | thisWeak_.reset(); 43 | wrapper_dispose(); 44 | } 45 | 46 | //------------------------------------------------------------------------------ 47 | void wrapper::impl::org::webRtc::VideoFrameBufferEvent::wrapper_dispose() noexcept 48 | { 49 | buffer_.reset(); 50 | } 51 | 52 | //------------------------------------------------------------------------------ 53 | wrapper::org::webRtc::VideoFrameBufferPtr wrapper::impl::org::webRtc::VideoFrameBufferEvent::get_buffer() noexcept 54 | { 55 | return buffer_; 56 | } 57 | 58 | //------------------------------------------------------------------------------ 59 | WrapperImplTypePtr WrapperImplType::toWrapper(UseVideoFrameBufferPtr buffer) noexcept 60 | { 61 | auto result = make_shared(); 62 | result->thisWeak_ = result; 63 | result->buffer_ = buffer; 64 | return result; 65 | } 66 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoFrameBufferEvent.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoFrameBufferEvent.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct VideoFrameBufferEvent : public wrapper::org::webRtc::VideoFrameBufferEvent 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoFrameBufferEvent, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoFrameBufferEvent, WrapperImplType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoFrameBuffer, UseVideoFrameBuffer); 18 | 19 | VideoFrameBufferEventWeakPtr thisWeak_; 20 | UseVideoFrameBufferPtr buffer_; 21 | 22 | VideoFrameBufferEvent() noexcept; 23 | virtual ~VideoFrameBufferEvent() noexcept; 24 | void wrapper_dispose() noexcept override; 25 | 26 | 27 | // properties VideoFrameBufferEvent 28 | wrapper::org::webRtc::VideoFrameBufferPtr get_buffer() noexcept override; 29 | 30 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(UseVideoFrameBufferPtr buffer) noexcept; 31 | }; 32 | 33 | } // webRtc 34 | } // org 35 | } // namespace impl 36 | } // namespace wrapper 37 | 38 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoOptions.cpp: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #include "impl_org_webRtc_VideoOptions.h" 4 | 5 | using ::zsLib::String; 6 | using ::zsLib::Optional; 7 | using ::zsLib::Any; 8 | using ::zsLib::AnyPtr; 9 | using ::zsLib::AnyHolder; 10 | using ::zsLib::Promise; 11 | using ::zsLib::PromisePtr; 12 | using ::zsLib::PromiseWithHolder; 13 | using ::zsLib::PromiseWithHolderPtr; 14 | using ::zsLib::eventing::SecureByteBlock; 15 | using ::zsLib::eventing::SecureByteBlockPtr; 16 | using ::std::shared_ptr; 17 | using ::std::weak_ptr; 18 | using ::std::make_shared; 19 | using ::std::list; 20 | using ::std::set; 21 | using ::std::map; 22 | 23 | // borrow definitions from class 24 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoOptions::WrapperImplType, WrapperImplType); 25 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 26 | 27 | //------------------------------------------------------------------------------ 28 | wrapper::impl::org::webRtc::VideoOptions::VideoOptions() noexcept 29 | { 30 | } 31 | 32 | //------------------------------------------------------------------------------ 33 | wrapper::org::webRtc::VideoOptionsPtr wrapper::org::webRtc::VideoOptions::wrapper_create() noexcept 34 | { 35 | auto pThis = make_shared(); 36 | pThis->thisWeak_ = pThis; 37 | return pThis; 38 | } 39 | 40 | //------------------------------------------------------------------------------ 41 | wrapper::impl::org::webRtc::VideoOptions::~VideoOptions() noexcept 42 | { 43 | thisWeak_.reset(); 44 | } 45 | 46 | //------------------------------------------------------------------------------ 47 | void wrapper::impl::org::webRtc::VideoOptions::wrapper_init_org_webRtc_VideoOptions() noexcept 48 | { 49 | } 50 | 51 | 52 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoOptions.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #pragma once 4 | 5 | #include "types.h" 6 | #include "generated/org_webRtc_VideoOptions.h" 7 | 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct VideoOptions : public wrapper::org::webRtc::VideoOptions 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoOptions, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoOptions, WrapperImplType); 18 | VideoOptionsWeakPtr thisWeak_; 19 | 20 | VideoOptions() noexcept; 21 | virtual ~VideoOptions() noexcept; 22 | 23 | void wrapper_init_org_webRtc_VideoOptions() noexcept override; 24 | }; 25 | 26 | } // webRtc 27 | } // org 28 | } // namespace impl 29 | } // namespace wrapper 30 | 31 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoTrackSource.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoTrackSource.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "rtc_base/scoped_ref_ptr.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct VideoTrackSource : public wrapper::org::webRtc::VideoTrackSource 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoTrackSource, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoTrackSource, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::VideoTrackSourceInterface, NativeType); 21 | 22 | typedef rtc::scoped_refptr NativeTypeScopedPtr; 23 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::WebRtcFactory, UseWebRtcFactory); 24 | 25 | VideoTrackSourceWeakPtr thisWeak_; 26 | NativeTypeScopedPtr native_; 27 | UseWebRtcFactoryPtr factory_; 28 | 29 | VideoTrackSource() noexcept; 30 | virtual ~VideoTrackSource() noexcept; 31 | void wrapper_dispose() noexcept override; 32 | 33 | 34 | // properties MediaTrackSource 35 | wrapper::org::webRtc::MediaSourceState get_state() noexcept override; 36 | bool get_remote() noexcept override; 37 | 38 | // properties VideoTrackSource 39 | bool get_isScreencast() noexcept override; 40 | Optional< bool > get_needsDenoising() noexcept override; 41 | Optional< wrapper::org::webRtc::VideoTrackSourceStatsPtr > get_stats() noexcept override; 42 | 43 | UseWebRtcFactoryPtr factory() noexcept { return factory_; } 44 | 45 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeType *native) noexcept; 46 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(NativeTypeScopedPtr native) noexcept; 47 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(WrapperTypePtr wrapper) noexcept; 48 | 49 | ZS_NO_DISCARD() static NativeTypeScopedPtr toNative(WrapperTypePtr wrapper) noexcept; 50 | }; 51 | 52 | } // webRtc 53 | } // org 54 | } // namespace impl 55 | } // namespace wrapper 56 | 57 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_VideoTrackSourceStats.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_VideoTrackSourceStats.h" 6 | 7 | #include "impl_org_webRtc_pre_include.h" 8 | #include "api\mediastreaminterface.h" 9 | #include "impl_org_webRtc_post_include.h" 10 | 11 | namespace wrapper { 12 | namespace impl { 13 | namespace org { 14 | namespace webRtc { 15 | 16 | struct VideoTrackSourceStats : public wrapper::org::webRtc::VideoTrackSourceStats 17 | { 18 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::VideoTrackSourceStats, WrapperType); 19 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::VideoTrackSourceStats, WrapperImplType); 20 | ZS_DECLARE_TYPEDEF_PTR(::webrtc::VideoTrackSourceInterface::Stats, NativeType); 21 | 22 | VideoTrackSourceStatsWeakPtr thisWeak_; 23 | 24 | VideoTrackSourceStats() noexcept; 25 | virtual ~VideoTrackSourceStats() noexcept; 26 | 27 | void wrapper_init_org_webRtc_VideoTrackSourceStats() noexcept override; 28 | 29 | ZS_NO_DISCARD() static WrapperImplTypePtr toWrapper(const NativeType &native) noexcept; 30 | }; 31 | 32 | } // webRtc 33 | } // org 34 | } // namespace impl 35 | } // namespace wrapper 36 | 37 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_WebRtcFactoryConfiguration.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | #pragma once 4 | 5 | #include "types.h" 6 | #include "generated/org_webRtc_WebRtcFactoryConfiguration.h" 7 | 8 | 9 | namespace wrapper { 10 | namespace impl { 11 | namespace org { 12 | namespace webRtc { 13 | 14 | struct WebRtcFactoryConfiguration : public wrapper::org::webRtc::WebRtcFactoryConfiguration 15 | { 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::WebRtcFactoryConfiguration, WrapperType); 17 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::WebRtcFactoryConfiguration, WrapperImplType); 18 | WebRtcFactoryConfigurationWeakPtr thisWeak_; 19 | 20 | WebRtcFactoryConfiguration() noexcept; 21 | virtual ~WebRtcFactoryConfiguration() noexcept; 22 | 23 | void wrapper_init_org_webRtc_WebRtcFactoryConfiguration() noexcept override; 24 | 25 | ZS_NO_DISCARD() static WrapperImplTypePtr clone(WrapperTypePtr wrapper) noexcept; 26 | }; 27 | 28 | } // webRtc 29 | } // org 30 | } // namespace impl 31 | } // namespace wrapper 32 | 33 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_WebRtcLibConfiguration.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "impl_org_webRtc_WebRtcLibConfiguration.h" 3 | 4 | using ::zsLib::String; 5 | using ::zsLib::Optional; 6 | using ::zsLib::Any; 7 | using ::zsLib::AnyPtr; 8 | using ::zsLib::AnyHolder; 9 | using ::zsLib::Promise; 10 | using ::zsLib::PromisePtr; 11 | using ::zsLib::PromiseWithHolder; 12 | using ::zsLib::PromiseWithHolderPtr; 13 | using ::zsLib::eventing::SecureByteBlock; 14 | using ::zsLib::eventing::SecureByteBlockPtr; 15 | using ::std::shared_ptr; 16 | using ::std::weak_ptr; 17 | using ::std::make_shared; 18 | using ::std::list; 19 | using ::std::set; 20 | using ::std::map; 21 | 22 | // borrow definitions from class 23 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::WebRtcLibConfiguration::WrapperImplType, WrapperImplType); 24 | ZS_DECLARE_TYPEDEF_PTR(WrapperImplType::WrapperType, WrapperType); 25 | 26 | //------------------------------------------------------------------------------ 27 | wrapper::impl::org::webRtc::WebRtcLibConfiguration::WebRtcLibConfiguration() noexcept 28 | { 29 | } 30 | 31 | //------------------------------------------------------------------------------ 32 | wrapper::org::webRtc::WebRtcLibConfigurationPtr wrapper::org::webRtc::WebRtcLibConfiguration::wrapper_create() noexcept 33 | { 34 | auto pThis = make_shared(); 35 | pThis->thisWeak_ = pThis; 36 | return pThis; 37 | } 38 | 39 | //------------------------------------------------------------------------------ 40 | wrapper::impl::org::webRtc::WebRtcLibConfiguration::~WebRtcLibConfiguration() noexcept 41 | { 42 | thisWeak_.reset(); 43 | } 44 | 45 | //------------------------------------------------------------------------------ 46 | void wrapper::impl::org::webRtc::WebRtcLibConfiguration::wrapper_init_org_webRtc_WebRtcLibConfiguration() noexcept 47 | { 48 | } 49 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_WebRtcLibConfiguration.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #include "types.h" 5 | #include "generated/org_webRtc_WebRtcLibConfiguration.h" 6 | 7 | 8 | namespace wrapper { 9 | namespace impl { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct WebRtcLibConfiguration : public wrapper::org::webRtc::WebRtcLibConfiguration 14 | { 15 | ZS_DECLARE_TYPEDEF_PTR(wrapper::org::webRtc::WebRtcLibConfiguration, WrapperType); 16 | ZS_DECLARE_TYPEDEF_PTR(wrapper::impl::org::webRtc::WebRtcLibConfiguration, WrapperImplType); 17 | WebRtcLibConfigurationWeakPtr thisWeak_; 18 | 19 | WebRtcLibConfiguration() noexcept; 20 | virtual ~WebRtcLibConfiguration() noexcept; 21 | 22 | void wrapper_init_org_webRtc_WebRtcLibConfiguration() noexcept override; 23 | }; 24 | 25 | } // webRtc 26 | } // org 27 | } // namespace impl 28 | } // namespace wrapper 29 | 30 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_helpers.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifdef __has_include 4 | #if __has_include() 5 | #include 6 | #endif //__has_include() 7 | #endif //__has_include 8 | 9 | #include "impl_org_webRtc_helpers.h" 10 | 11 | using ::zsLib::String; 12 | using ::zsLib::Optional; 13 | using ::zsLib::Any; 14 | using ::zsLib::AnyPtr; 15 | using ::zsLib::AnyHolder; 16 | using ::zsLib::Promise; 17 | using ::zsLib::PromisePtr; 18 | using ::zsLib::PromiseWithHolder; 19 | using ::zsLib::PromiseWithHolderPtr; 20 | using ::zsLib::eventing::SecureByteBlock; 21 | using ::zsLib::eventing::SecureByteBlockPtr; 22 | using ::std::shared_ptr; 23 | using ::std::weak_ptr; 24 | using ::std::make_shared; 25 | using ::std::list; 26 | using ::std::set; 27 | using ::std::map; 28 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_post_include.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef _MSC_VER 3 | #pragma warning(pop) 4 | #endif //_MSC_VER 5 | -------------------------------------------------------------------------------- /windows/wrapper/impl_org_webRtc_pre_include.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef _MSC_VER 3 | #pragma warning(push) 4 | #pragma warning(disable: 4100) 5 | #pragma warning(disable: 4458) 6 | #pragma warning(disable: 4244) 7 | #pragma warning(disable: 4242) 8 | #pragma warning(disable: 4996) 9 | #pragma warning(disable: 4266) 10 | #endif //_MSC_VER 11 | 12 | namespace cricket 13 | { 14 | enum CaptureState : int; 15 | enum MediaType : int; 16 | 17 | struct VideoFormat; 18 | } 19 | 20 | // forward for webrtc can go here 21 | namespace rtc 22 | { 23 | class Thread; 24 | class RTCCertificate; 25 | class IntervalRange; 26 | class KeyParams; 27 | struct SSLFingerprint; 28 | 29 | struct RSAParams; 30 | 31 | enum ECCurve : int; 32 | enum KeyType : int; 33 | } 34 | 35 | namespace webrtc 36 | { 37 | enum Band : int; 38 | enum class SdpSemantics; 39 | enum class SdpType; 40 | enum class RtpTransceiverDirection; 41 | 42 | struct DataBuffer; 43 | struct DataChannelInit; 44 | struct RtpTransceiverInit; 45 | struct RtpParameters; 46 | struct RtpEncodingParameters; 47 | struct RtpRtxParameters; 48 | struct RtpFecParameters; 49 | struct RtcpFeedback; 50 | struct RtpCodecParameters; 51 | struct RtpCodecCapability; 52 | struct RtpHeaderExtensionCapability; 53 | struct RtpExtension; 54 | struct RtpCapabilities; 55 | struct RtpParameters; 56 | 57 | class AudioBuffer; 58 | class AudioFrame; 59 | class RtpSource; 60 | class AudioTrackInterface; 61 | class VideoTrackInterface; 62 | class DtmfSenderInterface; 63 | class RtpSenderInterface; 64 | class RtpReceiverInterface; 65 | class RtpTransceiverInterface; 66 | class SessionDescriptionInterface; 67 | class PeerConnectionInterface; 68 | class PeerConnectionFactoryInterface; 69 | class PeerConnectionFactory; 70 | 71 | class MediaSourceInterface; 72 | class AudioSourceInterface; 73 | class VideoTrackSourceInterface; 74 | 75 | class RTCError; 76 | 77 | class VideoFrame; 78 | 79 | class VideoFrameBuffer; 80 | class I420BufferInterface; 81 | class I420ABufferInterface; 82 | class I444BufferInterface; 83 | class I010BufferInterface; 84 | class NativeHandleBuffer; 85 | class PlanarYuvBuffer; 86 | class PlanarYuv8Buffer; 87 | class PlanarYuv16BBuffer; 88 | 89 | class RTCStats; 90 | class RTCStatsReport; 91 | class RTCStatsCollectorCallback; 92 | } 93 | -------------------------------------------------------------------------------- /windows/wrapper/impl_webrtc_MRCAudioEffectDefinition.cpp: -------------------------------------------------------------------------------- 1 | #include "impl_webrtc_MRCAudioEffectDefinition.h" 2 | 3 | namespace webrtc { 4 | MrcAudioEffectDefinition::MrcAudioEffectDefinition() 5 | { 6 | MixerMode(DefaultAudioMixerMode); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /windows/wrapper/impl_webrtc_MRCAudioEffectDefinition.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "impl_webrtc_MRCEffectTemplate.h" 4 | 5 | #ifdef CPPWINRT_VERSION 6 | 7 | // This class provides an IAudioEffectDefinition which can be used 8 | // to configure and create a MixedRealityCaptureAudioEffect 9 | // object. See https://developer.microsoft.com/en-us/windows/holographic/mixed_reality_capture_for_developers#creating_a_custom_mixed_reality_capture_.28mrc.29_recorder 10 | // for more information about the effect definition properties. 11 | 12 | #define RUNTIMECLASS_MIXEDREALITYCAPTURE_AUDIO_EFFECT L"Windows.Media.MixedRealityCapture.MixedRealityCaptureAudioEffect" 13 | 14 | // 15 | // MixerMode 16 | // Type: AudioMixerMode as UINT32 17 | // 0: Mic audio only 18 | // 1: System audio only 19 | // 2: Mixing mic and system audio (default) 20 | // 21 | #define PROPERTY_MIXERMODE L"MixerMode" 22 | 23 | namespace webrtc { 24 | enum class AudioMixerMode 25 | { 26 | Mic = 0, 27 | Loopback = 1, 28 | MicAndLoopback = 2 29 | }; 30 | 31 | class MrcAudioEffectDefinition : public winrt::implements 32 | { 33 | public: 34 | MrcAudioEffectDefinition(); 35 | 36 | // 37 | // IAudioEffectDefinition 38 | // 39 | winrt::hstring ActivatableClassId() 40 | { 41 | return m_activatableClassId; 42 | } 43 | 44 | winrt::Windows::Foundation::Collections::IPropertySet Properties() 45 | { 46 | return m_propertySet; 47 | } 48 | 49 | // 50 | // Mixed Reality Capture effect properties 51 | // 52 | AudioMixerMode MixerMode() 53 | { 54 | return GetValueFromPropertySet(m_propertySet, PROPERTY_MIXERMODE, DefaultAudioMixerMode); 55 | } 56 | 57 | void MixerMode(AudioMixerMode newValue) 58 | { 59 | m_propertySet.Insert(PROPERTY_MIXERMODE, winrt::box_value(static_cast(newValue))); 60 | } 61 | 62 | private: 63 | static constexpr AudioMixerMode DefaultAudioMixerMode = AudioMixerMode::MicAndLoopback; 64 | private: 65 | winrt::hstring m_activatableClassId{ RUNTIMECLASS_MIXEDREALITYCAPTURE_AUDIO_EFFECT }; 66 | winrt::Windows::Foundation::Collections::PropertySet m_propertySet; 67 | }; 68 | } 69 | 70 | #endif //CPPWINRT_VERSION 71 | -------------------------------------------------------------------------------- /windows/wrapper/impl_webrtc_MRCEffectTemplate.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef __has_include 4 | #if __has_include() 5 | #include 6 | #endif //__has_include() 7 | #endif //__has_include 8 | 9 | #ifdef CPPWINRT_VERSION 10 | 11 | #include 12 | 13 | namespace webrtc { 14 | template 15 | U GetValueFromPropertySet(winrt::Windows::Foundation::Collections::IPropertySet const& propertySet, winrt::hstring const& key, U defaultValue) 16 | { 17 | try 18 | { 19 | return static_cast(static_cast(winrt::unbox_value(propertySet.Lookup(key)))); 20 | } 21 | catch (winrt::hresult_out_of_bounds const& /*e*/) 22 | { 23 | // The key is not present in the PropertySet. Return the default value. 24 | return defaultValue; 25 | } 26 | } 27 | } 28 | 29 | #endif //CPPWINRT_VERSION 30 | -------------------------------------------------------------------------------- /windows/wrapper/impl_webrtc_MRCVideoEffectDefinition.cpp: -------------------------------------------------------------------------------- 1 | #include "impl_webrtc_MRCVideoEffectDefinition.h" 2 | 3 | namespace webrtc { 4 | MrcVideoEffectDefinition::MrcVideoEffectDefinition() 5 | { 6 | StreamType(DefaultStreamType); 7 | HologramCompositionEnabled(DefaultHologramCompositionEnabled); 8 | RecordingIndicatorEnabled(DefaultRecordingIndicatorEnabled); 9 | VideoStabilizationEnabled(DefaultVideoStabilizationEnabled); 10 | VideoStabilizationBufferLength(DefaultVideoStabilizationBufferLength); 11 | //VideoStabilizationBufferLength(0); 12 | GlobalOpacityCoefficient(DefaultGlobalOpacityCoefficient); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_AudioData.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_AUDIODATA 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_AudioData*/ 13 | 14 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_AudioData_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_wrapperClone(org_webRtc_AudioData_t handle); 15 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_wrapperDestroy(org_webRtc_AudioData_t handle); 16 | ORG_WEBRTC_WRAPPER_C_EXPORT_API instance_id_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_wrapperInstanceId(org_webRtc_AudioData_t handle); 17 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_wrapperDispose(org_webRtc_AudioData_t handle); 18 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_AudioData_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_wrapperCreate_AudioData(); 19 | ORG_WEBRTC_WRAPPER_C_EXPORT_API bool_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_get_readOnly(org_webRtc_AudioData_t wrapperThisHandle); 20 | 21 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_get_data( 22 | org_webRtc_AudioData_t wrapperThisHandle, 23 | uintptr_t buffer, 24 | binary_size_t size); 25 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_set_data( 26 | org_webRtc_AudioData_t wrapperThisHandle, 27 | uintptr_t buffer, 28 | binary_size_t size); 29 | 30 | ORG_WEBRTC_WRAPPER_C_EXPORT_API binary_size_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_AudioData_size(org_webRtc_AudioData_t wrapperThisHandle); 31 | 32 | 33 | 34 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 35 | 36 | #ifdef __cplusplus 37 | 38 | 39 | namespace wrapper 40 | { 41 | org_webRtc_AudioData_t org_webRtc_AudioData_wrapperToHandle(wrapper::org::webRtc::AudioDataPtr value); 42 | wrapper::org::webRtc::AudioDataPtr org_webRtc_AudioData_wrapperFromHandle(org_webRtc_AudioData_t handle); 43 | 44 | } /* namespace wrapper */ 45 | #endif /* __cplusplus */ 46 | 47 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_AUDIODATA */ 48 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_EventQueueMaker.cpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 3 | 4 | #include "c_helpers.h" 5 | #include 6 | #include 7 | #include 8 | 9 | #include "c_org_webRtc_EventQueueMaker.h" 10 | #include "../org_webRtc_EventQueueMaker.h" 11 | #include "c_org_webRtc_EventQueue.h" 12 | 13 | using namespace wrapper; 14 | 15 | 16 | namespace wrapper 17 | { 18 | //---------------------------------------------------------------------------- 19 | org_webRtc_EventQueueMaker_t org_webRtc_EventQueueMaker_wrapperToHandle(wrapper::org::webRtc::EventQueueMakerPtr value) 20 | { 21 | typedef org_webRtc_EventQueueMaker_t CType; 22 | typedef wrapper::org::webRtc::EventQueueMakerPtr WrapperTypePtr; 23 | typedef WrapperTypePtr * WrapperTypePtrRawPtr; 24 | if (!value) return 0; 25 | return reinterpret_cast(new WrapperTypePtr(value)); 26 | } 27 | 28 | //---------------------------------------------------------------------------- 29 | wrapper::org::webRtc::EventQueueMakerPtr org_webRtc_EventQueueMaker_wrapperFromHandle(org_webRtc_EventQueueMaker_t handle) 30 | { 31 | typedef wrapper::org::webRtc::EventQueueMakerPtr WrapperTypePtr; 32 | typedef WrapperTypePtr * WrapperTypePtrRawPtr; 33 | if (0 == handle) return WrapperTypePtr(); 34 | return (*reinterpret_cast(handle)); 35 | } 36 | 37 | 38 | } /* namespace wrapper */ 39 | 40 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER */ 41 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_EventQueueMaker.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_EventQueueMaker*/ 13 | 14 | 15 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 16 | 17 | #ifdef __cplusplus 18 | 19 | 20 | namespace wrapper 21 | { 22 | org_webRtc_EventQueueMaker_t org_webRtc_EventQueueMaker_wrapperToHandle(wrapper::org::webRtc::EventQueueMakerPtr value); 23 | wrapper::org::webRtc::EventQueueMakerPtr org_webRtc_EventQueueMaker_wrapperFromHandle(org_webRtc_EventQueueMaker_t handle); 24 | 25 | } /* namespace wrapper */ 26 | #endif /* __cplusplus */ 27 | 28 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER */ 29 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_MediaElementMaker.cpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 3 | 4 | #include "c_helpers.h" 5 | #include 6 | #include 7 | #include 8 | 9 | #include "c_org_webRtc_MediaElementMaker.h" 10 | #include "../org_webRtc_MediaElementMaker.h" 11 | #include "c_org_webRtc_MediaElement.h" 12 | 13 | #include 14 | 15 | 16 | using namespace wrapper; 17 | 18 | //------------------------------------------------------------------------------ 19 | org_webRtc_MediaElement_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaElementMaker_bind(uintptr_t element) 20 | { 21 | return wrapper::org_webRtc_MediaElement_wrapperToHandle(wrapper::impl::org::webRtc::MediaElement::toWrapper((HWND)element)); 22 | } 23 | 24 | //------------------------------------------------------------------------------ 25 | uintptr_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaElementMaker_extract(org_webRtc_MediaElement_t element) 26 | { 27 | auto result = wrapper::impl::org::webRtc::MediaElement::toNative(wrapper::org_webRtc_MediaElement_wrapperFromHandle(element)); 28 | return ((uintptr_t)result); 29 | } 30 | 31 | namespace wrapper 32 | { 33 | //---------------------------------------------------------------------------- 34 | org_webRtc_MediaElementMaker_t org_webRtc_MediaElementMaker_wrapperToHandle(wrapper::org::webRtc::MediaElementMakerPtr value) 35 | { 36 | typedef org_webRtc_MediaElementMaker_t CType; 37 | typedef wrapper::org::webRtc::MediaElementMakerPtr WrapperTypePtr; 38 | typedef WrapperTypePtr * WrapperTypePtrRawPtr; 39 | if (!value) return 0; 40 | return reinterpret_cast(new WrapperTypePtr(value)); 41 | } 42 | 43 | //---------------------------------------------------------------------------- 44 | wrapper::org::webRtc::MediaElementMakerPtr org_webRtc_MediaElementMaker_wrapperFromHandle(org_webRtc_MediaElementMaker_t handle) 45 | { 46 | typedef wrapper::org::webRtc::MediaElementMakerPtr WrapperTypePtr; 47 | typedef WrapperTypePtr * WrapperTypePtrRawPtr; 48 | if (0 == handle) return WrapperTypePtr(); 49 | return (*reinterpret_cast(handle)); 50 | } 51 | 52 | 53 | } /* namespace wrapper */ 54 | 55 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER */ 56 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_MediaElementMaker.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_MediaElementMaker*/ 13 | 14 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_MediaElement_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaElementMaker_bind(uintptr_t element); 15 | ORG_WEBRTC_WRAPPER_C_EXPORT_API uintptr_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaElementMaker_extract(org_webRtc_MediaElement_t element); 16 | 17 | 18 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 19 | 20 | #ifdef __cplusplus 21 | 22 | 23 | namespace wrapper 24 | { 25 | org_webRtc_MediaElementMaker_t org_webRtc_MediaElementMaker_wrapperToHandle(wrapper::org::webRtc::MediaElementMakerPtr value); 26 | wrapper::org::webRtc::MediaElementMakerPtr org_webRtc_MediaElementMaker_wrapperFromHandle(org_webRtc_MediaElementMaker_t handle); 27 | 28 | } /* namespace wrapper */ 29 | #endif /* __cplusplus */ 30 | 31 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER */ 32 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_MediaSample.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIASAMPLE 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_MediaSample*/ 13 | 14 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_MediaSample_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSample_wrapperClone(org_webRtc_MediaSample_t handle); 15 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSample_wrapperDestroy(org_webRtc_MediaSample_t handle); 16 | ORG_WEBRTC_WRAPPER_C_EXPORT_API instance_id_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSample_wrapperInstanceId(org_webRtc_MediaSample_t handle); 17 | ORG_WEBRTC_WRAPPER_C_EXPORT_API std_list_float_t_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSample_getCameraViewTransform(org_webRtc_MediaSample_t wrapperThisHandle); 18 | ORG_WEBRTC_WRAPPER_C_EXPORT_API std_list_float_t_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSample_getCameraProjectionTransform(org_webRtc_MediaSample_t wrapperThisHandle); 19 | 20 | 21 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 22 | 23 | #ifdef __cplusplus 24 | 25 | 26 | namespace wrapper 27 | { 28 | org_webRtc_MediaSample_t org_webRtc_MediaSample_wrapperToHandle(wrapper::org::webRtc::MediaSamplePtr value); 29 | wrapper::org::webRtc::MediaSamplePtr org_webRtc_MediaSample_wrapperFromHandle(org_webRtc_MediaSample_t handle); 30 | 31 | } /* namespace wrapper */ 32 | #endif /* __cplusplus */ 33 | 34 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIASAMPLE */ 35 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_MediaSource.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_MediaSource*/ 13 | 14 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_MediaSource_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSource_wrapperClone(org_webRtc_MediaSource_t handle); 15 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSource_wrapperDestroy(org_webRtc_MediaSource_t handle); 16 | ORG_WEBRTC_WRAPPER_C_EXPORT_API instance_id_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_MediaSource_wrapperInstanceId(org_webRtc_MediaSource_t handle); 17 | 18 | 19 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 20 | 21 | #ifdef __cplusplus 22 | 23 | 24 | namespace wrapper 25 | { 26 | org_webRtc_MediaSource_t org_webRtc_MediaSource_wrapperToHandle(wrapper::org::webRtc::MediaSourcePtr value); 27 | wrapper::org::webRtc::MediaSourcePtr org_webRtc_MediaSource_wrapperFromHandle(org_webRtc_MediaSource_t handle); 28 | 29 | } /* namespace wrapper */ 30 | #endif /* __cplusplus */ 31 | 32 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE */ 33 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_VideoData.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_VIDEODATA 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_VideoData*/ 13 | 14 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_VideoData_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_wrapperClone(org_webRtc_VideoData_t handle); 15 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_wrapperDestroy(org_webRtc_VideoData_t handle); 16 | ORG_WEBRTC_WRAPPER_C_EXPORT_API instance_id_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_wrapperInstanceId(org_webRtc_VideoData_t handle); 17 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_wrapperDispose(org_webRtc_VideoData_t handle); 18 | ORG_WEBRTC_WRAPPER_C_EXPORT_API bool_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_get_is8BitColorSpace(org_webRtc_VideoData_t wrapperThisHandle); 19 | ORG_WEBRTC_WRAPPER_C_EXPORT_API bool_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_get_is16BitColorSpace(org_webRtc_VideoData_t wrapperThisHandle); 20 | 21 | ORG_WEBRTC_WRAPPER_C_EXPORT_API binary_size_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_get_size(org_webRtc_VideoData_t wrapperThisHandle); 22 | 23 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_get_data8bit( 24 | org_webRtc_VideoData_t wrapperThisHandle, 25 | uintptr_t buffer, 26 | binary_size_t size); 27 | 28 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoData_get_data16bit( 29 | org_webRtc_VideoData_t wrapperThisHandle, 30 | uintptr_t buffer, 31 | binary_size_t size); 32 | 33 | 34 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 35 | 36 | #ifdef __cplusplus 37 | 38 | 39 | namespace wrapper 40 | { 41 | org_webRtc_VideoData_t org_webRtc_VideoData_wrapperToHandle(wrapper::org::webRtc::VideoDataPtr value); 42 | wrapper::org::webRtc::VideoDataPtr org_webRtc_VideoData_wrapperFromHandle(org_webRtc_VideoData_t handle); 43 | 44 | } /* namespace wrapper */ 45 | #endif /* __cplusplus */ 46 | 47 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_VIDEODATA */ 48 | -------------------------------------------------------------------------------- /windows/wrapper/override/c/c_org_webRtc_VideoDeviceInfo.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef C_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | 9 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_BEGIN_GUARD 10 | 11 | 12 | /* org_webRtc_VideoDeviceInfo*/ 13 | 14 | ORG_WEBRTC_WRAPPER_C_EXPORT_API org_webRtc_VideoDeviceInfo_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_wrapperClone(org_webRtc_VideoDeviceInfo_t handle); 15 | ORG_WEBRTC_WRAPPER_C_EXPORT_API void ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_wrapperDestroy(org_webRtc_VideoDeviceInfo_t handle); 16 | ORG_WEBRTC_WRAPPER_C_EXPORT_API instance_id_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_wrapperInstanceId(org_webRtc_VideoDeviceInfo_t handle); 17 | 18 | ORG_WEBRTC_WRAPPER_C_EXPORT_API string_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_get_id(org_webRtc_VideoDeviceInfo_t wrapperThisHandle); 19 | ORG_WEBRTC_WRAPPER_C_EXPORT_API string_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_get_name(org_webRtc_VideoDeviceInfo_t wrapperThisHandle); 20 | 21 | ORG_WEBRTC_WRAPPER_C_EXPORT_API bool_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_get_isDefault(org_webRtc_VideoDeviceInfo_t wrapperThisHandle); 22 | ORG_WEBRTC_WRAPPER_C_EXPORT_API bool_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_VideoDeviceInfo_get_isEnabled(org_webRtc_VideoDeviceInfo_t wrapperThisHandle); 23 | 24 | 25 | 26 | ORG_WEBRTC_WRAPPER_C_EXPORT_API string_t ORG_WEBRTC_WRAPPER_C_CALLING_CONVENTION org_webRtc_RTCCodecStats_get_implementation(org_webRtc_RTCCodecStats_t wrapperThisHandle); 27 | 28 | 29 | 30 | 31 | 32 | 33 | ORG_WEBRTC_WRAPPER_C_PLUS_PLUS_END_GUARD 34 | 35 | #ifdef __cplusplus 36 | 37 | 38 | namespace wrapper 39 | { 40 | org_webRtc_VideoDeviceInfo_t org_webRtc_VideoDeviceInfo_wrapperToHandle(wrapper::org::webRtc::VideoDeviceInfoPtr value); 41 | wrapper::org::webRtc::VideoDeviceInfoPtr org_webRtc_VideoDeviceInfo_wrapperFromHandle(org_webRtc_VideoDeviceInfo_t handle); 42 | 43 | } /* namespace wrapper */ 44 | #endif /* __cplusplus */ 45 | 46 | #endif /* ifndef C_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO */ 47 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_AudioData.h: -------------------------------------------------------------------------------- 1 | // Generated by zsLibEventingTool 2 | 3 | 4 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_AUDIODATA 5 | #include 6 | #else // CX_USE_GENERATED_ORG_WEBRTC_AUDIODATA 7 | 8 | #pragma once 9 | 10 | #include "types.h" 11 | #include 12 | 13 | namespace Org { 14 | namespace WebRtc { 15 | 16 | 17 | 18 | public ref class AudioData sealed 19 | { 20 | internal: 21 | wrapper::org::webRtc::AudioDataPtr native_; 22 | 23 | struct WrapperCreate {}; 24 | AudioData(const WrapperCreate &) {} 25 | 26 | static AudioData^ ToCx(wrapper::org::webRtc::AudioDataPtr value); 27 | static wrapper::org::webRtc::AudioDataPtr FromCx(AudioData^ value); 28 | 29 | 30 | 31 | public: 32 | // ::org::webRtc::AudioData 33 | 34 | /// 35 | /// Constructs a new audio data object. 36 | /// 37 | [Windows::Foundation::Metadata::DefaultOverloadAttribute] 38 | AudioData(); 39 | 40 | /// 41 | /// Gets if the data is read-only. 42 | /// 43 | property Platform::Boolean ReadOnly { Platform::Boolean get(); } 44 | /// 45 | /// Gets or sets the audio samples data. 46 | /// 47 | property Windows::Foundation::Collections::IVectorView< int16 >^ Data 48 | { 49 | Windows::Foundation::Collections::IVectorView< int16 >^ get(); 50 | void set(Windows::Foundation::Collections::IVectorView< int16 >^ value); 51 | } 52 | 53 | }; 54 | 55 | } // namespace WebRtc 56 | } // namespace Org 57 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_AUDIODATA 58 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_EventQueue.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_EVENTQUEUE 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | /// 16 | /// A message queue for receiving delegate events. 17 | /// 18 | public ref class EventQueue sealed 19 | { 20 | internal: 21 | wrapper::org::webRtc::EventQueuePtr native_; 22 | 23 | struct WrapperCreate {}; 24 | EventQueue(const WrapperCreate &) {} 25 | 26 | static EventQueue^ ToCx(wrapper::org::webRtc::EventQueuePtr value); 27 | static wrapper::org::webRtc::EventQueuePtr FromCx(EventQueue^ value); 28 | 29 | 30 | 31 | public: 32 | // ::org::webRtc::EventQueue 33 | 34 | #if 0 35 | /// 36 | /// Constructs an event queue object from a native queue type. 37 | /// 38 | [Windows::Foundation::Metadata::DefaultOverloadAttribute, Windows::Foundation::Metadata::OverloadAttribute("EventQueueWithNativeQueue")] 39 | EventQueue(Platform::Object^ queue); 40 | #endif //0 41 | /// 42 | /// Gets or creates an event queue by queue name. If the queue is not 43 | /// found then a new thread queue will be created. 44 | /// 45 | static ::Org::WebRtc::EventQueue^ GetOrCreateThreadQueueByName(Platform::String^ queueName); 46 | /// 47 | /// Creates an event thread pool queue object. If a queue name already 48 | /// exists an existing queue with that name will be returned. 49 | /// 50 | static ::Org::WebRtc::EventQueue^ CreateThreadQueuePool( 51 | Platform::String^ queueName, 52 | uint64 minimumNumberOfThreads 53 | ); 54 | /// 55 | /// The default windows message queue for the system GUI thread. 56 | /// 57 | static ::Org::WebRtc::EventQueue^ GetDefaultForUi(); 58 | 59 | #if 0 60 | /// 61 | /// Gets a native queue from an event queue object. 62 | /// 63 | property Platform::Object^ Queue { Platform::Object^ get(); } 64 | #endif //0 65 | 66 | }; 67 | 68 | } // namespace WebRtc 69 | } // namespace Org 70 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_EVENTQUEUE 71 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_EventQueueMaker.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | #include 10 | 11 | //------------------------------------------------------------------------------ 12 | ::Org::WebRtc::EventQueueMaker^ Org::WebRtc::EventQueueMaker::ToCx(wrapper::org::webRtc::EventQueueMakerPtr value) 13 | { 14 | if (!value) return nullptr; 15 | auto result = ref new EventQueueMaker(WrapperCreate{}); 16 | result->native_ = value; 17 | return result; 18 | } 19 | 20 | //------------------------------------------------------------------------------ 21 | wrapper::org::webRtc::EventQueueMakerPtr Org::WebRtc::EventQueueMaker::FromCx(::Org::WebRtc::EventQueueMaker^ value) 22 | { 23 | if (nullptr == value) return wrapper::org::webRtc::EventQueueMakerPtr(); 24 | return value->native_; 25 | } 26 | 27 | //------------------------------------------------------------------------------ 28 | ::Org::WebRtc::EventQueue^ Org::WebRtc::EventQueueMaker::Bind(Windows::UI::Core::CoreDispatcher^ queue) 29 | { 30 | ::Org::WebRtc::EventQueue^ result {}; 31 | result = ::Internal::Helper::ToCx_Org_WebRtc_EventQueue(wrapper::impl::org::webRtc::EventQueue::toWrapper(queue)); 32 | return result; 33 | } 34 | 35 | //------------------------------------------------------------------------------ 36 | Windows::UI::Core::CoreDispatcher^ Org::WebRtc::EventQueueMaker::Extract(::Org::WebRtc::EventQueue^ queue) 37 | { 38 | return wrapper::impl::org::webRtc::EventQueue::toNative_cx(::Internal::Helper::FromCx_Org_WebRtc_EventQueue(queue)); 39 | } 40 | 41 | 42 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 43 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_EventQueueMaker.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | [Windows::Foundation::Metadata::WebHostHiddenAttribute] 16 | public ref class EventQueueMaker sealed 17 | { 18 | internal: 19 | wrapper::org::webRtc::EventQueueMakerPtr native_; 20 | 21 | struct WrapperCreate {}; 22 | EventQueueMaker(const WrapperCreate &) {} 23 | 24 | static EventQueueMaker^ ToCx(wrapper::org::webRtc::EventQueueMakerPtr value); 25 | static wrapper::org::webRtc::EventQueueMakerPtr FromCx(EventQueueMaker^ value); 26 | 27 | 28 | 29 | public: 30 | // ::org::webRtc::EventQueueMaker 31 | 32 | /// 33 | /// Creates an event queue object from a native queue type. 34 | /// 35 | static ::Org::WebRtc::EventQueue^ Bind(Windows::UI::Core::CoreDispatcher^ queue); 36 | /// 37 | /// Extracts a native queue from an event queue object. 38 | /// 39 | static Windows::UI::Core::CoreDispatcher^ Extract(::Org::WebRtc::EventQueue^ queue); 40 | 41 | 42 | }; 43 | 44 | } // namespace WebRtc 45 | } // namespace Org 46 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 47 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaElement.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENT 4 | 5 | #include 6 | #include 7 | 8 | //------------------------------------------------------------------------------ 9 | ::Org::WebRtc::MediaElement^ Org::WebRtc::MediaElement::ToCx(wrapper::org::webRtc::MediaElementPtr value) 10 | { 11 | if (!value) return nullptr; 12 | auto result = ref new MediaElement(WrapperCreate{}); 13 | result->native_ = value; 14 | return result; 15 | } 16 | 17 | //------------------------------------------------------------------------------ 18 | wrapper::org::webRtc::MediaElementPtr Org::WebRtc::MediaElement::FromCx(::Org::WebRtc::MediaElement^ value) 19 | { 20 | if (nullptr == value) return wrapper::org::webRtc::MediaElementPtr(); 21 | return value->native_; 22 | } 23 | 24 | #if 0 25 | //------------------------------------------------------------------------------ 26 | Org::WebRtc::MediaElement::MediaElement(Platform::Object^ element) 27 | : native_(wrapper::org::webRtc::MediaElement::wrapper_create()) 28 | { 29 | if (!native_) {throw ref new Platform::NullReferenceException();} 30 | native_->wrapper_init_org_webRtc_MediaElement(::Internal::Helper::FromCx(element)); 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | Platform::Object^ Org::WebRtc::MediaElement::Element::get() 35 | { 36 | if (!native_) {throw ref new Platform::NullReferenceException();} 37 | return ::Internal::Helper::ToCx(native_->get_element()); 38 | } 39 | #endif //0 40 | 41 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENT 42 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaElement.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENT 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | /// 16 | /// MediaSource represents an object holder for a platform specific media 17 | /// element. 18 | /// 19 | public ref class MediaElement sealed 20 | { 21 | internal: 22 | wrapper::org::webRtc::MediaElementPtr native_; 23 | 24 | struct WrapperCreate {}; 25 | MediaElement(const WrapperCreate &) {} 26 | 27 | static MediaElement^ ToCx(wrapper::org::webRtc::MediaElementPtr value); 28 | static wrapper::org::webRtc::MediaElementPtr FromCx(MediaElement^ value); 29 | 30 | 31 | 32 | public: 33 | // ::org::webRtc::MediaElement 34 | 35 | #if 0 36 | /// 37 | /// Constructs a media element object from a native media element type. 38 | /// 39 | [Windows::Foundation::Metadata::DefaultOverloadAttribute, Windows::Foundation::Metadata::OverloadAttribute("MediaElementWithNativeQueue")] 40 | MediaElement(Platform::Object^ element); 41 | 42 | /// 43 | /// Gets the platform specific media element. 44 | /// 45 | property Platform::Object^ Element { Platform::Object^ get(); } 46 | #endif //0 47 | 48 | }; 49 | 50 | } // namespace WebRtc 51 | } // namespace Org 52 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENT 53 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaElementMaker.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | #include 10 | 11 | //------------------------------------------------------------------------------ 12 | ::Org::WebRtc::MediaElementMaker^ Org::WebRtc::MediaElementMaker::ToCx(wrapper::org::webRtc::MediaElementMakerPtr value) 13 | { 14 | if (!value) return nullptr; 15 | auto result = ref new MediaElementMaker(WrapperCreate{}); 16 | result->native_ = value; 17 | return result; 18 | } 19 | 20 | //------------------------------------------------------------------------------ 21 | wrapper::org::webRtc::MediaElementMakerPtr Org::WebRtc::MediaElementMaker::FromCx(::Org::WebRtc::MediaElementMaker^ value) 22 | { 23 | if (nullptr == value) return wrapper::org::webRtc::MediaElementMakerPtr(); 24 | return value->native_; 25 | } 26 | 27 | //------------------------------------------------------------------------------ 28 | ::Org::WebRtc::MediaElement^ Org::WebRtc::MediaElementMaker::Bind(Windows::UI::Xaml::Controls::MediaElement^ element) 29 | { 30 | ::Org::WebRtc::MediaElement^ result {}; 31 | result = ::Internal::Helper::ToCx_Org_WebRtc_MediaElement(wrapper::impl::org::webRtc::MediaElement::toWrapper(element)); 32 | return result; 33 | } 34 | 35 | //------------------------------------------------------------------------------ 36 | Windows::UI::Xaml::Controls::MediaElement^ Org::WebRtc::MediaElementMaker::Extract(::Org::WebRtc::MediaElement^ element) 37 | { 38 | Windows::UI::Xaml::Controls::MediaElement^ result {}; 39 | result = wrapper::impl::org::webRtc::MediaElement::toNative_cx(::Internal::Helper::FromCx_Org_WebRtc_MediaElement(element)); 40 | return result; 41 | } 42 | 43 | 44 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 45 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaElementMaker.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | [Windows::Foundation::Metadata::WebHostHiddenAttribute] 16 | public ref class MediaElementMaker sealed 17 | { 18 | internal: 19 | wrapper::org::webRtc::MediaElementMakerPtr native_; 20 | 21 | struct WrapperCreate {}; 22 | MediaElementMaker(const WrapperCreate &) {} 23 | 24 | static MediaElementMaker^ ToCx(wrapper::org::webRtc::MediaElementMakerPtr value); 25 | static wrapper::org::webRtc::MediaElementMakerPtr FromCx(MediaElementMaker^ value); 26 | 27 | 28 | 29 | public: 30 | // ::org::webRtc::MediaElementMaker 31 | 32 | /// 33 | /// Creates an media element object from a media element type. 34 | /// 35 | static ::Org::WebRtc::MediaElement^ Bind(Windows::UI::Xaml::Controls::MediaElement^ element); 36 | /// 37 | /// Extracts a native media element from an media element object. 38 | /// 39 | static Windows::UI::Xaml::Controls::MediaElement^ Extract(::Org::WebRtc::MediaElement^ element); 40 | 41 | 42 | }; 43 | 44 | } // namespace WebRtc 45 | } // namespace Org 46 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 47 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaSample.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIASAMPLE 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | /// 16 | /// MediaSample represents an object holder for a platform specific media 17 | /// element. 18 | /// 19 | public ref class MediaSample sealed 20 | { 21 | internal: 22 | wrapper::org::webRtc::MediaSamplePtr native_; 23 | 24 | struct WrapperCreate {}; 25 | MediaSample(const WrapperCreate &) {} 26 | 27 | static MediaSample^ ToCx(wrapper::org::webRtc::MediaSamplePtr value); 28 | static wrapper::org::webRtc::MediaSamplePtr FromCx(MediaSample^ value); 29 | 30 | 31 | 32 | public: 33 | // ::org::webRtc::MediaSample 34 | 35 | /// 36 | /// Returns camera view transform which maps from the coordinate system to 37 | /// the camera. 38 | /// 39 | Windows::Foundation::Collections::IVectorView< Internal::Helper::HelperFloat >^ GetCameraViewTransform(); 40 | /// 41 | /// Returns camera projection transform which maps from the camera to 42 | /// pixels in the image. 43 | /// 44 | Windows::Foundation::Collections::IVectorView< Internal::Helper::HelperFloat >^ GetCameraProjectionTransform(); 45 | 46 | }; 47 | 48 | } // namespace WebRtc 49 | } // namespace Org 50 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIASAMPLE 51 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaSource.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | //------------------------------------------------------------------------------ 11 | ::Org::WebRtc::MediaSource^ Org::WebRtc::MediaSource::ToCx(wrapper::org::webRtc::MediaSourcePtr value) 12 | { 13 | if (!value) return nullptr; 14 | auto result = ref new MediaSource(WrapperCreate{}); 15 | result->native_ = value; 16 | return result; 17 | } 18 | 19 | //------------------------------------------------------------------------------ 20 | wrapper::org::webRtc::MediaSourcePtr Org::WebRtc::MediaSource::FromCx(::Org::WebRtc::MediaSource^ value) 21 | { 22 | if (nullptr == value) return wrapper::org::webRtc::MediaSourcePtr(); 23 | return value->native_; 24 | } 25 | 26 | //------------------------------------------------------------------------------ 27 | Org::WebRtc::MediaSource::MediaSource(Windows::Media::Core::IMediaSource^ source) 28 | : native_(wrapper::org::webRtc::MediaSource::wrapper_create()) 29 | { 30 | if (!native_) {throw ref new Platform::NullReferenceException();} 31 | 32 | auto wrapperSource = wrapper::impl::org::webRtc::MediaSource::toWrapper(source); 33 | ZS_ASSERT(wrapperSource); 34 | native_->wrapper_init_org_webRtc_MediaSource(wrapperSource->source_); 35 | } 36 | 37 | //------------------------------------------------------------------------------ 38 | Windows::Media::Core::IMediaSource^ Org::WebRtc::MediaSource::Source::get() 39 | { 40 | if (!native_) {throw ref new Platform::NullReferenceException();} 41 | return wrapper::impl::org::webRtc::MediaSource::toNative_cx(native_); 42 | } 43 | 44 | 45 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 46 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_MediaSource.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | /// 16 | /// MediaSource represents an object holder for a platform specific media 17 | /// source. 18 | /// 19 | public ref class MediaSource sealed 20 | { 21 | internal: 22 | wrapper::org::webRtc::MediaSourcePtr native_; 23 | 24 | struct WrapperCreate {}; 25 | MediaSource(const WrapperCreate &) {} 26 | 27 | static MediaSource^ ToCx(wrapper::org::webRtc::MediaSourcePtr value); 28 | static wrapper::org::webRtc::MediaSourcePtr FromCx(MediaSource^ value); 29 | 30 | 31 | 32 | public: 33 | // ::org::webRtc::MediaSource 34 | 35 | /// 36 | /// Constructs a media source object from a native media source type. 37 | /// 38 | [Windows::Foundation::Metadata::DefaultOverloadAttribute, Windows::Foundation::Metadata::OverloadAttribute("MediaSourceWithNativeSource")] 39 | MediaSource(Windows::Media::Core::IMediaSource^ source); 40 | 41 | /// 42 | /// Gets the platform specific media source. 43 | /// 44 | property Windows::Media::Core::IMediaSource^ Source { Windows::Media::Core::IMediaSource^ get(); } 45 | 46 | }; 47 | 48 | } // namespace WebRtc 49 | } // namespace Org 50 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 51 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_VideoDeviceInfo.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | //------------------------------------------------------------------------------ 11 | ::Org::WebRtc::VideoDeviceInfo^ Org::WebRtc::VideoDeviceInfo::ToCx(wrapper::org::webRtc::VideoDeviceInfoPtr value) 12 | { 13 | if (!value) return nullptr; 14 | auto result = ref new VideoDeviceInfo(WrapperCreate{}); 15 | result->native_ = value; 16 | return result; 17 | } 18 | 19 | //------------------------------------------------------------------------------ 20 | wrapper::org::webRtc::VideoDeviceInfoPtr Org::WebRtc::VideoDeviceInfo::FromCx(::Org::WebRtc::VideoDeviceInfo^ value) 21 | { 22 | if (nullptr == value) return wrapper::org::webRtc::VideoDeviceInfoPtr(); 23 | return value->native_; 24 | } 25 | 26 | //------------------------------------------------------------------------------ 27 | Windows::Devices::Enumeration::DeviceInformation^ Org::WebRtc::VideoDeviceInfo::Info::get() 28 | { 29 | if (!native_) {throw ref new Platform::NullReferenceException();} 30 | return wrapper::impl::org::webRtc::VideoDeviceInfo::toNative_cx(native_); 31 | } 32 | 33 | 34 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 35 | -------------------------------------------------------------------------------- /windows/wrapper/override/cx/Org_WebRtc_VideoDeviceInfo.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef CX_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 4 | 5 | #pragma once 6 | 7 | #include 8 | #include 9 | 10 | namespace Org { 11 | namespace WebRtc { 12 | 13 | 14 | 15 | public ref class VideoDeviceInfo sealed 16 | { 17 | internal: 18 | wrapper::org::webRtc::VideoDeviceInfoPtr native_; 19 | 20 | struct WrapperCreate {}; 21 | VideoDeviceInfo(const WrapperCreate &) {} 22 | 23 | static VideoDeviceInfo^ ToCx(wrapper::org::webRtc::VideoDeviceInfoPtr value); 24 | static wrapper::org::webRtc::VideoDeviceInfoPtr FromCx(VideoDeviceInfo^ value); 25 | 26 | 27 | 28 | public: 29 | property Windows::Devices::Enumeration::DeviceInformation^ Info { Windows::Devices::Enumeration::DeviceInformation^ get(); } 30 | 31 | }; 32 | 33 | } // namespace WebRtc 34 | } // namespace Org 35 | #endif //ifndef CX_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 36 | -------------------------------------------------------------------------------- /windows/wrapper/override/dotnet/net_override_org_webRtc_EventQueueMaker.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | using zs_Any_t = System.IntPtr; 4 | using org_webRtc_EventQueue_t = System.IntPtr; 5 | 6 | namespace Org 7 | { 8 | namespace WebRtc 9 | { 10 | 11 | public static class EventQueueMaker 12 | { 13 | 14 | #region Org.WebRtc.EventQueueMaker 15 | 16 | //------------------------------------------------------------------ 17 | //------------------------------------------------------------------ 18 | // Org.WebRtc.EventQueueMaker 19 | //------------------------------------------------------------------ 20 | //------------------------------------------------------------------ 21 | 22 | 23 | #endregion // Org.WebRtc.EventQueueMaker 24 | 25 | 26 | } 27 | 28 | } //WebRtc 29 | } //Org 30 | 31 | -------------------------------------------------------------------------------- /windows/wrapper/override/dotnet/net_override_org_webRtc_MediaElementMaker.cs: -------------------------------------------------------------------------------- 1 | 2 | using zs_Any_t = System.IntPtr; 3 | using org_webRtc_MediaElement_t = System.IntPtr; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | public static class MediaElementMaker 11 | { 12 | 13 | #region Org.WebRtc.MediaElementMaker 14 | 15 | //------------------------------------------------------------------ 16 | //------------------------------------------------------------------ 17 | // Org.WebRtc.MediaElementMaker 18 | //------------------------------------------------------------------ 19 | //------------------------------------------------------------------ 20 | 21 | 22 | /// 23 | /// Creates an media element object from a media element type. 24 | /// 25 | static public Org.WebRtc.MediaElement Bind(System.IntPtr hwnd) 26 | { 27 | org_webRtc_MediaElement_t wrapper_c_wrapper_result = Wrapper.Org_WebRtc.OverrideApi.org_webRtc_MediaElementMaker_bind(hwnd); 28 | return Wrapper.Org_WebRtc.Helpers.org_webRtc_MediaElement_AdoptFromC(wrapper_c_wrapper_result); 29 | } 30 | 31 | /// 32 | /// Extracts a native media element from an media element object. 33 | /// 34 | static public object Extract(Org.WebRtc.MediaElement element) 35 | { 36 | org_webRtc_MediaElement_t wrapper_c_element = Wrapper.Org_WebRtc.Helpers.org_webRtc_MediaElement_ToC(element); 37 | System.IntPtr hwnd = Wrapper.Org_WebRtc.OverrideApi.org_webRtc_MediaElementMaker_extract(wrapper_c_element); 38 | Wrapper.Org_WebRtc.Api.org_webRtc_MediaElement_wrapperDestroy(wrapper_c_element); 39 | return hwnd; 40 | } 41 | 42 | #endregion // Org.WebRtc.MediaElementMaker 43 | 44 | 45 | } 46 | 47 | } //WebRtc 48 | } //Org 49 | 50 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.AudioData.idl: -------------------------------------------------------------------------------- 1 | //import "windows.foundation.idl"; 2 | import "forwards.idl"; 3 | import "output.idl"; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | 11 | [version(1.0)] 12 | [uuid(5383522e-090b-ef6c-b517-30a29261535f)] 13 | interface IAudioData : IInspectable 14 | { 15 | 16 | /// 17 | /// Gets if the data is read-only. 18 | /// 19 | Boolean ReadOnly { get; }; 20 | 21 | /// 22 | /// Gets or sets the audio samples data (int16s encoded in little endian 2 byte pairs). 23 | /// 24 | Windows.Foundation.IMemoryBuffer Data{ get; set; }; 25 | 26 | UInt64 Length{ get; }; 27 | 28 | UInt64 GetData(ref Int16[] values); 29 | UInt64 SetData(Int16[] values); 30 | }; 31 | 32 | runtimeclass AudioData : [default] IAudioData, Windows.Foundation.IClosable 33 | { 34 | 35 | /// 36 | /// Constructs a new audio data object. 37 | /// 38 | [default_overload] 39 | AudioData(); 40 | 41 | /// 42 | /// Cast from Org.WebRtc.IAudioData to Org.WebRtc.AudioData 43 | /// 44 | [default_overload] 45 | [method_name("CastFromIAudioData")] 46 | static Org.WebRtc.AudioData Cast(Org.WebRtc.IAudioData source); 47 | }; 48 | 49 | } // namespace WebRtc 50 | } // namespace Org 51 | 52 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.EventQueueMaker.idl: -------------------------------------------------------------------------------- 1 | //import "windows.foundation.customattributes.idl"; 2 | import "forwards.idl"; 3 | import "output.idl"; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | 11 | [version(1.0)] 12 | [uuid(de70609e-604d-5ced-6090-d3891021c4f4)] 13 | [webhosthidden] 14 | interface IEventQueueMaker : IInspectable 15 | { 16 | }; 17 | 18 | [webhosthidden] 19 | runtimeclass EventQueueMaker : [default] IEventQueueMaker 20 | { 21 | 22 | /// 23 | /// Cast from Org.WebRtc.IEventQueueMaker to Org.WebRtc.EventQueueMaker 24 | /// 25 | [default_overload] 26 | [method_name("CastFromIEventQueueMaker")] 27 | static Org.WebRtc.EventQueueMaker Cast(Org.WebRtc.IEventQueueMaker source); 28 | 29 | /// 30 | /// Creates an event queue object from a native queue type. 31 | /// 32 | static Org.WebRtc.IEventQueue Bind(Windows.UI.Core.CoreDispatcher Queue); 33 | 34 | /// 35 | /// Extracts a native queue from an event queue object. 36 | /// 37 | static Windows.UI.Core.CoreDispatcher Extract(Org.WebRtc.IEventQueue Queue); 38 | }; 39 | 40 | } // namespace WebRtc 41 | } // namespace Org 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.MediaElementMaker.idl: -------------------------------------------------------------------------------- 1 | //import "windows.foundation.customattributes.idl"; 2 | import "forwards.idl"; 3 | import "output.idl"; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | 11 | [version(1.0)] 12 | [uuid(d88e3313-bef8-0322-946d-ef9488c487fd)] 13 | [webhosthidden] 14 | interface IMediaElementMaker : IInspectable 15 | { 16 | }; 17 | 18 | [webhosthidden] 19 | runtimeclass MediaElementMaker : [default] IMediaElementMaker 20 | { 21 | 22 | /// 23 | /// Cast from Org.WebRtc.IMediaElementMaker to Org.WebRtc.MediaElementMaker 24 | /// 25 | [default_overload] 26 | [method_name("CastFromIMediaElementMaker")] 27 | static Org.WebRtc.MediaElementMaker Cast(Org.WebRtc.IMediaElementMaker source); 28 | 29 | /// 30 | /// Creates an media element object from a media element type. 31 | /// 32 | static Org.WebRtc.IMediaElement Bind(Windows.UI.Xaml.Controls.MediaElement Element); 33 | 34 | /// 35 | /// Extracts a native media element from an media element object. 36 | /// 37 | static Windows.UI.Xaml.Controls.MediaElement Extract(Org.WebRtc.IMediaElement Element); 38 | }; 39 | 40 | } // namespace WebRtc 41 | } // namespace Org 42 | 43 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.MediaSample.idl: -------------------------------------------------------------------------------- 1 | //import "windows.foundation.idl"; 2 | import "forwards.idl"; 3 | import "output.idl"; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | 11 | /// 12 | /// MediaSample represents an object holder for a platform specific 13 | /// media sample. 14 | /// 15 | [version(1.0)] 16 | [uuid(893fbdcc-5e3b-454c-3b60-1bbc026302cd)] 17 | interface IMediaSample : IInspectable 18 | { 19 | 20 | /// 21 | /// Returns camera view transform which maps from the coordinate 22 | /// system to the camera. 23 | /// 24 | Windows.Foundation.Collections.IVectorView< Single > GetCameraViewTransform(); 25 | 26 | /// 27 | /// Returns camera projection transform which maps from the camera 28 | /// to pixels in the image. 29 | /// 30 | Windows.Foundation.Collections.IVectorView< Single > GetCameraProjectionTransform(); 31 | }; 32 | 33 | /// 34 | /// MediaSample represents an object holder for a platform specific 35 | /// media sample. 36 | /// 37 | runtimeclass MediaSample : [default] IMediaSample, Windows.Foundation.IClosable 38 | { 39 | 40 | /// 41 | /// Cast from Org.WebRtc.IMediaSample to Org.WebRtc.MediaSample 42 | /// 43 | [default_overload] 44 | [method_name("CastFromIMediaSample")] 45 | static Org.WebRtc.MediaSample Cast(Org.WebRtc.IMediaSample source); 46 | }; 47 | 48 | } // namespace WebRtc 49 | } // namespace Org 50 | 51 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.MediaSource.idl: -------------------------------------------------------------------------------- 1 | //import "windows.foundation.idl"; 2 | import "forwards.idl"; 3 | import "output.idl"; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | 11 | /// 12 | /// MediaSource represents an object holder for a platform specific 13 | /// media source. 14 | /// 15 | [version(1.0)] 16 | [uuid(1c5627cf-8a22-f886-578a-8f7b872ef42d)] 17 | interface IMediaSource : IInspectable 18 | { 19 | 20 | /// 21 | /// Gets the platform specific media source. 22 | /// 23 | Windows.Media.Core.IMediaSource Source { get; }; 24 | }; 25 | 26 | /// 27 | /// MediaSource represents an object holder for a platform specific 28 | /// media source. 29 | /// 30 | runtimeclass MediaSource : [default] IMediaSource 31 | { 32 | 33 | /// 34 | /// Constructs a media source object from a native media source 35 | /// type. 36 | /// 37 | [method_name("MediaSourceWithNativeSource")] 38 | [default_overload] 39 | MediaSource(Windows.Media.Core.IMediaSource Source); 40 | 41 | /// 42 | /// Cast from Org.WebRtc.IMediaSource to Org.WebRtc.MediaSource 43 | /// 44 | [default_overload] 45 | [method_name("CastFromIMediaSource")] 46 | static Org.WebRtc.MediaSource Cast(Org.WebRtc.IMediaSource source); 47 | }; 48 | 49 | } // namespace WebRtc 50 | } // namespace Org 51 | 52 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.VideoData.idl: -------------------------------------------------------------------------------- 1 | //import "windows.foundation.idl"; 2 | import "forwards.idl"; 3 | import "output.idl"; 4 | 5 | namespace Org 6 | { 7 | namespace WebRtc 8 | { 9 | 10 | 11 | [version(1.0)] 12 | [uuid(40919ebf-ab59-7e08-291c-2ba0f6d142c4)] 13 | interface IVideoData : IInspectable 14 | { 15 | 16 | Boolean Is8BitColorSpace { get; }; 17 | 18 | Boolean Is16BitColorSpace { get; }; 19 | 20 | UInt64 Length{ get; }; 21 | 22 | UInt64 GetData8bit(ref UInt8[] values); 23 | UInt64 GetData16bit(ref UInt16[] values); 24 | 25 | /// 26 | /// Gets or sets the video 8 bit color space data. 27 | /// 28 | Windows.Foundation.IMemoryBuffer Data8bit { get; }; 29 | 30 | /// 31 | /// Gets or sets the video 16 bit color space data (as 8 bit / 2 byte little endian). 32 | /// 33 | Windows.Foundation.IMemoryBuffer Data16bit { get; }; 34 | }; 35 | 36 | runtimeclass VideoData : [default] IVideoData, Windows.Foundation.IClosable 37 | { 38 | 39 | /// 40 | /// Cast from Org.WebRtc.IVideoData to Org.WebRtc.VideoData 41 | /// 42 | [default_overload] 43 | [method_name("CastFromIVideoData")] 44 | static Org.WebRtc.VideoData Cast(Org.WebRtc.IVideoData source); 45 | }; 46 | 47 | } // namespace WebRtc 48 | } // namespace Org 49 | 50 | -------------------------------------------------------------------------------- /windows/wrapper/override/msidl/Org.WebRtc.VideoDeviceInfo.idl: -------------------------------------------------------------------------------- 1 | import "forwards.idl"; 2 | import "output.idl"; 3 | 4 | namespace Org 5 | { 6 | namespace WebRtc 7 | { 8 | 9 | 10 | [version(1.0)] 11 | [uuid(8f3d54d9-07d1-1747-6795-031a5c3b67f3)] 12 | interface IVideoDeviceInfo : IInspectable 13 | { 14 | 15 | Windows.Devices.Enumeration.DeviceInformation Info { get; }; 16 | }; 17 | 18 | runtimeclass VideoDeviceInfo : [default] IVideoDeviceInfo 19 | { 20 | 21 | /// 22 | /// Cast from Org.WebRtc.IVideoDeviceInfo to Org.WebRtc.VideoDeviceInfo 23 | /// 24 | [default_overload] 25 | [method_name("CastFromIVideoDeviceInfo")] 26 | static Org.WebRtc.VideoDeviceInfo Cast(Org.WebRtc.IVideoDeviceInfo source); 27 | }; 28 | 29 | } // namespace WebRtc 30 | } // namespace Org 31 | 32 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_AudioData.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_AUDIODATA 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | namespace wrapper { 9 | namespace org { 10 | namespace webRtc { 11 | 12 | struct AudioData 13 | { 14 | static AudioDataPtr wrapper_create() noexcept; 15 | virtual ~AudioData() noexcept {} 16 | 17 | virtual void wrapper_dispose() noexcept = 0; 18 | 19 | virtual void wrapper_init_org_webRtc_AudioData() noexcept = 0; 20 | virtual void wrapper_init_org_webRtc_AudioData(size_t size) noexcept = 0; 21 | 22 | virtual bool readOnly() noexcept = 0; 23 | virtual const int16_t *data() noexcept = 0; 24 | virtual int16_t *mutableData() noexcept = 0; 25 | virtual size_t size() noexcept = 0; 26 | }; 27 | 28 | } // webRtc 29 | } // org 30 | } // namespace wrapper 31 | 32 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_AUDIODATA 33 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_EventQueueMaker.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace wrapper { 10 | namespace org { 11 | namespace webRtc { 12 | 13 | struct EventQueueMaker 14 | { 15 | virtual ~EventQueueMaker() noexcept {} 16 | 17 | #if 0 18 | static wrapper::org::webRtc::EventQueuePtr bind(AnyPtr queue) noexcept; 19 | static AnyPtr extract(wrapper::org::webRtc::EventQueuePtr queue) noexcept; 20 | #endif //0 21 | 22 | }; 23 | 24 | } // webRtc 25 | } // org 26 | } // namespace wrapper 27 | 28 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_EVENTQUEUEMAKER 29 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_MediaElementMaker.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 5 | 6 | #include "types.h" 7 | 8 | namespace wrapper { 9 | namespace org { 10 | namespace webRtc { 11 | 12 | struct MediaElementMaker 13 | { 14 | virtual ~MediaElementMaker() noexcept {} 15 | 16 | #if 0 17 | static wrapper::org::webRtc::MediaElementPtr bind(AnyPtr element) noexcept; 18 | static AnyPtr extract(wrapper::org::webRtc::MediaElementPtr element) noexcept; 19 | #endif //0 20 | }; 21 | 22 | } // webRtc 23 | } // org 24 | } // namespace wrapper 25 | 26 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_MEDIAELEMENTMAKER 27 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_MediaSample.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_MEDIASAMPLE 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | namespace wrapper { 9 | namespace org { 10 | namespace webRtc { 11 | 12 | struct MediaSample 13 | { 14 | static MediaSamplePtr wrapper_create() noexcept; 15 | virtual ~MediaSample() noexcept {} 16 | virtual void wrapper_dispose() noexcept = 0; 17 | }; 18 | 19 | } // webRtc 20 | } // org 21 | } // namespace wrapper 22 | 23 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_MEDIASAMPLE 24 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_MediaSource.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | namespace wrapper { 9 | namespace org { 10 | namespace webRtc { 11 | 12 | struct MediaSource 13 | { 14 | static MediaSourcePtr wrapper_create() noexcept; 15 | virtual ~MediaSource() noexcept {} 16 | 17 | }; 18 | 19 | } // webRtc 20 | } // org 21 | } // namespace wrapper 22 | 23 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_MEDIASOURCE 24 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_VideoData.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_VIDEODATA 3 | 4 | #pragma once 5 | 6 | #include "types.h" 7 | 8 | namespace wrapper { 9 | namespace org { 10 | namespace webRtc { 11 | 12 | struct VideoData 13 | { 14 | static VideoDataPtr wrapper_create() noexcept; 15 | virtual ~VideoData() noexcept {} 16 | 17 | virtual void wrapper_dispose() noexcept = 0; 18 | 19 | virtual bool get_is8BitColorSpace() noexcept = 0; 20 | virtual bool get_is16BitColorSpace() noexcept = 0; 21 | virtual const uint8_t *get_data8bit() noexcept = 0; 22 | virtual const uint16_t *get_data16bit() noexcept = 0; 23 | 24 | virtual size_t get_size() noexcept = 0; 25 | }; 26 | 27 | } // webRtc 28 | } // org 29 | } // namespace wrapper 30 | 31 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_VIDEODATA 32 | -------------------------------------------------------------------------------- /windows/wrapper/override/org_webRtc_VideoDeviceInfo.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 3 | #pragma once 4 | 5 | #include "types.h" 6 | 7 | namespace wrapper { 8 | namespace org { 9 | namespace webRtc { 10 | 11 | struct VideoDeviceInfo 12 | { 13 | static VideoDeviceInfoPtr wrapper_create() noexcept; 14 | virtual ~VideoDeviceInfo() noexcept {} 15 | 16 | virtual String get_id() noexcept = 0; 17 | virtual String get_name() noexcept = 0; 18 | virtual bool get_isDefault() noexcept = 0; 19 | virtual bool get_isEnabled() noexcept = 0; 20 | 21 | }; 22 | 23 | } // webRtc 24 | } // org 25 | } // namespace wrapper 26 | 27 | #endif //ifndef WRAPPER_USE_GENERATED_ORG_WEBRTC_VIDEODEVICEINFO 28 | --------------------------------------------------------------------------------