mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
Update webrtc bindings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/-/merge_requests/29>
This commit is contained in:
parent
18e3a2639e
commit
239320e190
15 changed files with 518 additions and 2541 deletions
File diff suppressed because it is too large
Load diff
18
sources/generated/Gst.WebRTC/OnErrorHandler.cs
Normal file
18
sources/generated/Gst.WebRTC/OnErrorHandler.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace Gst.WebRTC {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void OnErrorHandler(object o, OnErrorArgs args);
|
||||
|
||||
public class OnErrorArgs : GLib.SignalArgs {
|
||||
public IntPtr Error{
|
||||
get {
|
||||
return (IntPtr) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
18
sources/generated/Gst.WebRTC/OnMessageDataHandler.cs
Normal file
18
sources/generated/Gst.WebRTC/OnMessageDataHandler.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace Gst.WebRTC {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void OnMessageDataHandler(object o, OnMessageDataArgs args);
|
||||
|
||||
public class OnMessageDataArgs : GLib.SignalArgs {
|
||||
public GLib.Bytes Data{
|
||||
get {
|
||||
return (GLib.Bytes) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
18
sources/generated/Gst.WebRTC/OnMessageStringHandler.cs
Normal file
18
sources/generated/Gst.WebRTC/OnMessageStringHandler.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
// This file was generated by the Gtk# code generator.
|
||||
// Any changes made will be lost if regenerated.
|
||||
|
||||
namespace Gst.WebRTC {
|
||||
|
||||
using System;
|
||||
|
||||
public delegate void OnMessageStringHandler(object o, OnMessageStringArgs args);
|
||||
|
||||
public class OnMessageStringArgs : GLib.SignalArgs {
|
||||
public string Data{
|
||||
get {
|
||||
return (string) Args [0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -13,20 +13,9 @@ namespace Gst.WebRTC {
|
|||
|
||||
public WebRTCDTLSTransport (IntPtr raw) : base(raw) {}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gst_webrtc_dtls_transport_new(uint session_id);
|
||||
|
||||
public WebRTCDTLSTransport (uint session_id) : base (IntPtr.Zero)
|
||||
protected WebRTCDTLSTransport() : base(IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (WebRTCDTLSTransport)) {
|
||||
var vals = new List<GLib.Value> ();
|
||||
var names = new List<string> ();
|
||||
names.Add ("session_id");
|
||||
vals.Add (new GLib.Value (session_id));
|
||||
CreateNativeObject (names.ToArray (), vals.ToArray ());
|
||||
return;
|
||||
}
|
||||
Raw = gst_webrtc_dtls_transport_new(session_id);
|
||||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
}
|
||||
|
||||
[GLib.Property ("certificate")]
|
||||
|
@ -89,9 +78,6 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_dtls_transport_set_transport(IntPtr raw, IntPtr ice);
|
||||
|
||||
[GLib.Property ("transport")]
|
||||
public Gst.WebRTC.WebRTCICETransport Transport {
|
||||
get {
|
||||
|
@ -100,63 +86,6 @@ namespace Gst.WebRTC {
|
|||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
gst_webrtc_dtls_transport_set_transport(Handle, value == null ? IntPtr.Zero : value.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCICETransport TransportField {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("transport"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCICETransport;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCDTLSTransportState StateField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("state"));
|
||||
return (Gst.WebRTC.WebRTCDTLSTransportState) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ClientField {
|
||||
get {
|
||||
unsafe {
|
||||
bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("client"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public uint SessionIdField {
|
||||
get {
|
||||
unsafe {
|
||||
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("session_id"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.Element Dtlssrtpenc {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("dtlssrtpenc"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.Element;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.Element Dtlssrtpdec {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("dtlssrtpdec"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.Element;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -165,16 +94,7 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_padding"
|
||||
, Gst.Object.class_abi.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, null
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
|
@ -205,90 +125,12 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("transport"
|
||||
, Gst.Object.abi_info.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // transport
|
||||
, null
|
||||
, "state"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("state"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCDTLSTransportState))) // state
|
||||
, "transport"
|
||||
, "client"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_stateAlign), "state")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("client"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(bool)) // client
|
||||
, "state"
|
||||
, "session_id"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_clientAlign), "client")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("session_id"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(uint)) // session_id
|
||||
, "client"
|
||||
, "dtlssrtpenc"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDTLSTransport_session_idAlign), "session_id")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("dtlssrtpenc"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // dtlssrtpenc
|
||||
, "session_id"
|
||||
, "dtlssrtpdec"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("dtlssrtpdec"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // dtlssrtpdec
|
||||
, "dtlssrtpenc"
|
||||
, "_padding"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "dtlssrtpdec"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields);
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDTLSTransport_stateAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCDTLSTransportState state;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDTLSTransport_clientAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private bool client;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDTLSTransport_session_idAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private uint session_id;
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
|
|
|
@ -133,121 +133,23 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
public GLib.Mutex Lock {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("lock"));
|
||||
return new GLib.Mutex((*raw_ptr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string LabelField {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("label"));
|
||||
return GLib.Marshaller.Utf8PtrToString ((*raw_ptr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool OrderedField {
|
||||
get {
|
||||
unsafe {
|
||||
bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("ordered"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public uint MaxPacketLifetimeField {
|
||||
get {
|
||||
unsafe {
|
||||
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("max_packet_lifetime"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public uint MaxRetransmitsField {
|
||||
get {
|
||||
unsafe {
|
||||
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("max_retransmits"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string ProtocolField {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("protocol"));
|
||||
return GLib.Marshaller.Utf8PtrToString ((*raw_ptr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool NegotiatedField {
|
||||
get {
|
||||
unsafe {
|
||||
bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("negotiated"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int IdField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("id"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCPriorityType PriorityField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("priority"));
|
||||
return (Gst.WebRTC.WebRTCPriorityType) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCDataChannelState ReadyStateField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("ready_state"));
|
||||
return (Gst.WebRTC.WebRTCDataChannelState) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ulong BufferedAmountField {
|
||||
get {
|
||||
unsafe {
|
||||
ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("buffered_amount"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ulong BufferedAmountLowThresholdField {
|
||||
get {
|
||||
unsafe {
|
||||
ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("buffered_amount_low_threshold"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("on-buffered-amount-low")]
|
||||
public event System.EventHandler OnBufferedAmountLowEvent {
|
||||
[GLib.Signal("on-error")]
|
||||
public event Gst.WebRTC.OnErrorHandler OnError {
|
||||
add {
|
||||
this.AddSignalHandler ("on-buffered-amount-low", value);
|
||||
this.AddSignalHandler ("on-error", value, typeof (Gst.WebRTC.OnErrorArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("on-buffered-amount-low", value);
|
||||
this.RemoveSignalHandler ("on-error", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("send-string")]
|
||||
public event Gst.WebRTC.SendStringEventHandler SendStringEvent {
|
||||
add {
|
||||
this.AddSignalHandler ("send-string", value, typeof (Gst.WebRTC.SendStringEventArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("send-string", value);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -261,26 +163,6 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("on-message-string")]
|
||||
public event Gst.WebRTC.OnMessageStringEventHandler OnMessageStringEvent {
|
||||
add {
|
||||
this.AddSignalHandler ("on-message-string", value, typeof (Gst.WebRTC.OnMessageStringEventArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("on-message-string", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("on-open")]
|
||||
public event System.EventHandler OnOpenEvent {
|
||||
add {
|
||||
this.AddSignalHandler ("on-open", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("on-open", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("close")]
|
||||
public event System.EventHandler CloseEvent {
|
||||
add {
|
||||
|
@ -292,73 +174,83 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
|
||||
[GLib.Signal("on-message-data")]
|
||||
public event Gst.WebRTC.OnMessageDataEventHandler OnMessageDataEvent {
|
||||
public event Gst.WebRTC.OnMessageDataHandler OnMessageData {
|
||||
add {
|
||||
this.AddSignalHandler ("on-message-data", value, typeof (Gst.WebRTC.OnMessageDataEventArgs));
|
||||
this.AddSignalHandler ("on-message-data", value, typeof (Gst.WebRTC.OnMessageDataArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("on-message-data", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("send-string")]
|
||||
public event Gst.WebRTC.SendStringEventHandler SendStringEvent {
|
||||
[GLib.Signal("on-buffered-amount-low")]
|
||||
public event System.EventHandler OnBufferedAmountLow {
|
||||
add {
|
||||
this.AddSignalHandler ("send-string", value, typeof (Gst.WebRTC.SendStringEventArgs));
|
||||
this.AddSignalHandler ("on-buffered-amount-low", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("send-string", value);
|
||||
this.RemoveSignalHandler ("on-buffered-amount-low", value);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("on-error")]
|
||||
public event Gst.WebRTC.OnErrorEventHandler OnErrorEvent {
|
||||
[GLib.Signal("on-open")]
|
||||
public event System.EventHandler OnOpen {
|
||||
add {
|
||||
this.AddSignalHandler ("on-error", value, typeof (Gst.WebRTC.OnErrorEventArgs));
|
||||
this.AddSignalHandler ("on-open", value);
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("on-error", value);
|
||||
this.RemoveSignalHandler ("on-open", value);
|
||||
}
|
||||
}
|
||||
|
||||
static OnBufferedAmountLowEventNativeDelegate OnBufferedAmountLowEvent_cb_delegate;
|
||||
static OnBufferedAmountLowEventNativeDelegate OnBufferedAmountLowEventVMCallback {
|
||||
[GLib.Signal("on-message-string")]
|
||||
public event Gst.WebRTC.OnMessageStringHandler OnMessageString {
|
||||
add {
|
||||
this.AddSignalHandler ("on-message-string", value, typeof (Gst.WebRTC.OnMessageStringArgs));
|
||||
}
|
||||
remove {
|
||||
this.RemoveSignalHandler ("on-message-string", value);
|
||||
}
|
||||
}
|
||||
|
||||
static CloseEventNativeDelegate CloseEvent_cb_delegate;
|
||||
static CloseEventNativeDelegate CloseEventVMCallback {
|
||||
get {
|
||||
if (OnBufferedAmountLowEvent_cb_delegate == null)
|
||||
OnBufferedAmountLowEvent_cb_delegate = new OnBufferedAmountLowEventNativeDelegate (OnBufferedAmountLowEvent_cb);
|
||||
return OnBufferedAmountLowEvent_cb_delegate;
|
||||
if (CloseEvent_cb_delegate == null)
|
||||
CloseEvent_cb_delegate = new CloseEventNativeDelegate (CloseEvent_cb);
|
||||
return CloseEvent_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideOnBufferedAmountLowEvent (GLib.GType gtype)
|
||||
static void OverrideCloseEvent (GLib.GType gtype)
|
||||
{
|
||||
OverrideOnBufferedAmountLowEvent (gtype, OnBufferedAmountLowEventVMCallback);
|
||||
OverrideCloseEvent (gtype, CloseEventVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideOnBufferedAmountLowEvent (GLib.GType gtype, OnBufferedAmountLowEventNativeDelegate callback)
|
||||
static void OverrideCloseEvent (GLib.GType gtype, CloseEventNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "on-buffered-amount-low", callback);
|
||||
OverrideVirtualMethod (gtype, "close", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnBufferedAmountLowEventNativeDelegate (IntPtr inst);
|
||||
delegate void CloseEventNativeDelegate (IntPtr inst);
|
||||
|
||||
static void OnBufferedAmountLowEvent_cb (IntPtr inst)
|
||||
static void CloseEvent_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnOnBufferedAmountLowEvent ();
|
||||
__obj.OnCloseEvent ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnBufferedAmountLowEvent")]
|
||||
protected virtual void OnOnBufferedAmountLowEvent ()
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideCloseEvent")]
|
||||
protected virtual void OnCloseEvent ()
|
||||
{
|
||||
InternalOnBufferedAmountLowEvent ();
|
||||
InternalCloseEvent ();
|
||||
}
|
||||
|
||||
private void InternalOnBufferedAmountLowEvent ()
|
||||
private void InternalCloseEvent ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
|
@ -370,44 +262,93 @@ namespace Gst.WebRTC {
|
|||
v.Dispose ();
|
||||
}
|
||||
|
||||
static OnErrorEventNativeDelegate OnErrorEvent_cb_delegate;
|
||||
static OnErrorEventNativeDelegate OnErrorEventVMCallback {
|
||||
static OnBufferedAmountLowNativeDelegate OnBufferedAmountLow_cb_delegate;
|
||||
static OnBufferedAmountLowNativeDelegate OnBufferedAmountLowVMCallback {
|
||||
get {
|
||||
if (OnErrorEvent_cb_delegate == null)
|
||||
OnErrorEvent_cb_delegate = new OnErrorEventNativeDelegate (OnErrorEvent_cb);
|
||||
return OnErrorEvent_cb_delegate;
|
||||
if (OnBufferedAmountLow_cb_delegate == null)
|
||||
OnBufferedAmountLow_cb_delegate = new OnBufferedAmountLowNativeDelegate (OnBufferedAmountLow_cb);
|
||||
return OnBufferedAmountLow_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideOnErrorEvent (GLib.GType gtype)
|
||||
static void OverrideOnBufferedAmountLow (GLib.GType gtype)
|
||||
{
|
||||
OverrideOnErrorEvent (gtype, OnErrorEventVMCallback);
|
||||
OverrideOnBufferedAmountLow (gtype, OnBufferedAmountLowVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideOnErrorEvent (GLib.GType gtype, OnErrorEventNativeDelegate callback)
|
||||
static void OverrideOnBufferedAmountLow (GLib.GType gtype, OnBufferedAmountLowNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "on-error", callback);
|
||||
OverrideVirtualMethod (gtype, "on-buffered-amount-low", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnErrorEventNativeDelegate (IntPtr inst, IntPtr error);
|
||||
delegate void OnBufferedAmountLowNativeDelegate (IntPtr inst);
|
||||
|
||||
static void OnErrorEvent_cb (IntPtr inst, IntPtr error)
|
||||
static void OnBufferedAmountLow_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnOnErrorEvent (error);
|
||||
__obj.OnOnBufferedAmountLow ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnErrorEvent")]
|
||||
protected virtual void OnOnErrorEvent (IntPtr error)
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnBufferedAmountLow")]
|
||||
protected virtual void OnOnBufferedAmountLow ()
|
||||
{
|
||||
InternalOnErrorEvent (error);
|
||||
InternalOnBufferedAmountLow ();
|
||||
}
|
||||
|
||||
private void InternalOnErrorEvent (IntPtr error)
|
||||
private void InternalOnBufferedAmountLow ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static OnErrorNativeDelegate OnError_cb_delegate;
|
||||
static OnErrorNativeDelegate OnErrorVMCallback {
|
||||
get {
|
||||
if (OnError_cb_delegate == null)
|
||||
OnError_cb_delegate = new OnErrorNativeDelegate (OnError_cb);
|
||||
return OnError_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideOnError (GLib.GType gtype)
|
||||
{
|
||||
OverrideOnError (gtype, OnErrorVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideOnError (GLib.GType gtype, OnErrorNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "on-error", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnErrorNativeDelegate (IntPtr inst, IntPtr error);
|
||||
|
||||
static void OnError_cb (IntPtr inst, IntPtr error)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnOnError (error);
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnError")]
|
||||
protected virtual void OnOnError (IntPtr error)
|
||||
{
|
||||
InternalOnError (error);
|
||||
}
|
||||
|
||||
private void InternalOnError (IntPtr error)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
|
@ -421,44 +362,44 @@ namespace Gst.WebRTC {
|
|||
v.Dispose ();
|
||||
}
|
||||
|
||||
static OnMessageDataEventNativeDelegate OnMessageDataEvent_cb_delegate;
|
||||
static OnMessageDataEventNativeDelegate OnMessageDataEventVMCallback {
|
||||
static OnMessageDataNativeDelegate OnMessageData_cb_delegate;
|
||||
static OnMessageDataNativeDelegate OnMessageDataVMCallback {
|
||||
get {
|
||||
if (OnMessageDataEvent_cb_delegate == null)
|
||||
OnMessageDataEvent_cb_delegate = new OnMessageDataEventNativeDelegate (OnMessageDataEvent_cb);
|
||||
return OnMessageDataEvent_cb_delegate;
|
||||
if (OnMessageData_cb_delegate == null)
|
||||
OnMessageData_cb_delegate = new OnMessageDataNativeDelegate (OnMessageData_cb);
|
||||
return OnMessageData_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideOnMessageDataEvent (GLib.GType gtype)
|
||||
static void OverrideOnMessageData (GLib.GType gtype)
|
||||
{
|
||||
OverrideOnMessageDataEvent (gtype, OnMessageDataEventVMCallback);
|
||||
OverrideOnMessageData (gtype, OnMessageDataVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideOnMessageDataEvent (GLib.GType gtype, OnMessageDataEventNativeDelegate callback)
|
||||
static void OverrideOnMessageData (GLib.GType gtype, OnMessageDataNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "on-message-data", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnMessageDataEventNativeDelegate (IntPtr inst, IntPtr data);
|
||||
delegate void OnMessageDataNativeDelegate (IntPtr inst, IntPtr data);
|
||||
|
||||
static void OnMessageDataEvent_cb (IntPtr inst, IntPtr data)
|
||||
static void OnMessageData_cb (IntPtr inst, IntPtr data)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnOnMessageDataEvent (new GLib.Bytes(data));
|
||||
__obj.OnOnMessageData (new GLib.Bytes(data));
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageDataEvent")]
|
||||
protected virtual void OnOnMessageDataEvent (GLib.Bytes data)
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageData")]
|
||||
protected virtual void OnOnMessageData (GLib.Bytes data)
|
||||
{
|
||||
InternalOnMessageDataEvent (data);
|
||||
InternalOnMessageData (data);
|
||||
}
|
||||
|
||||
private void InternalOnMessageDataEvent (GLib.Bytes data)
|
||||
private void InternalOnMessageData (GLib.Bytes data)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
|
@ -472,44 +413,44 @@ namespace Gst.WebRTC {
|
|||
v.Dispose ();
|
||||
}
|
||||
|
||||
static OnMessageStringEventNativeDelegate OnMessageStringEvent_cb_delegate;
|
||||
static OnMessageStringEventNativeDelegate OnMessageStringEventVMCallback {
|
||||
static OnMessageStringNativeDelegate OnMessageString_cb_delegate;
|
||||
static OnMessageStringNativeDelegate OnMessageStringVMCallback {
|
||||
get {
|
||||
if (OnMessageStringEvent_cb_delegate == null)
|
||||
OnMessageStringEvent_cb_delegate = new OnMessageStringEventNativeDelegate (OnMessageStringEvent_cb);
|
||||
return OnMessageStringEvent_cb_delegate;
|
||||
if (OnMessageString_cb_delegate == null)
|
||||
OnMessageString_cb_delegate = new OnMessageStringNativeDelegate (OnMessageString_cb);
|
||||
return OnMessageString_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideOnMessageStringEvent (GLib.GType gtype)
|
||||
static void OverrideOnMessageString (GLib.GType gtype)
|
||||
{
|
||||
OverrideOnMessageStringEvent (gtype, OnMessageStringEventVMCallback);
|
||||
OverrideOnMessageString (gtype, OnMessageStringVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideOnMessageStringEvent (GLib.GType gtype, OnMessageStringEventNativeDelegate callback)
|
||||
static void OverrideOnMessageString (GLib.GType gtype, OnMessageStringNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "on-message-string", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnMessageStringEventNativeDelegate (IntPtr inst, IntPtr data);
|
||||
delegate void OnMessageStringNativeDelegate (IntPtr inst, IntPtr data);
|
||||
|
||||
static void OnMessageStringEvent_cb (IntPtr inst, IntPtr data)
|
||||
static void OnMessageString_cb (IntPtr inst, IntPtr data)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnOnMessageStringEvent (GLib.Marshaller.Utf8PtrToString (data));
|
||||
__obj.OnOnMessageString (GLib.Marshaller.Utf8PtrToString (data));
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageStringEvent")]
|
||||
protected virtual void OnOnMessageStringEvent (string data)
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnMessageString")]
|
||||
protected virtual void OnOnMessageString (string data)
|
||||
{
|
||||
InternalOnMessageStringEvent (data);
|
||||
InternalOnMessageString (data);
|
||||
}
|
||||
|
||||
private void InternalOnMessageStringEvent (string data)
|
||||
private void InternalOnMessageString (string data)
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
|
@ -523,44 +464,44 @@ namespace Gst.WebRTC {
|
|||
v.Dispose ();
|
||||
}
|
||||
|
||||
static OnOpenEventNativeDelegate OnOpenEvent_cb_delegate;
|
||||
static OnOpenEventNativeDelegate OnOpenEventVMCallback {
|
||||
static OnOpenNativeDelegate OnOpen_cb_delegate;
|
||||
static OnOpenNativeDelegate OnOpenVMCallback {
|
||||
get {
|
||||
if (OnOpenEvent_cb_delegate == null)
|
||||
OnOpenEvent_cb_delegate = new OnOpenEventNativeDelegate (OnOpenEvent_cb);
|
||||
return OnOpenEvent_cb_delegate;
|
||||
if (OnOpen_cb_delegate == null)
|
||||
OnOpen_cb_delegate = new OnOpenNativeDelegate (OnOpen_cb);
|
||||
return OnOpen_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideOnOpenEvent (GLib.GType gtype)
|
||||
static void OverrideOnOpen (GLib.GType gtype)
|
||||
{
|
||||
OverrideOnOpenEvent (gtype, OnOpenEventVMCallback);
|
||||
OverrideOnOpen (gtype, OnOpenVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideOnOpenEvent (GLib.GType gtype, OnOpenEventNativeDelegate callback)
|
||||
static void OverrideOnOpen (GLib.GType gtype, OnOpenNativeDelegate callback)
|
||||
{
|
||||
OverrideVirtualMethod (gtype, "on-open", callback);
|
||||
}
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void OnOpenEventNativeDelegate (IntPtr inst);
|
||||
delegate void OnOpenNativeDelegate (IntPtr inst);
|
||||
|
||||
static void OnOpenEvent_cb (IntPtr inst)
|
||||
static void OnOpen_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnOnOpenEvent ();
|
||||
__obj.OnOnOpen ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnOpenEvent")]
|
||||
protected virtual void OnOnOpenEvent ()
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideOnOpen")]
|
||||
protected virtual void OnOnOpen ()
|
||||
{
|
||||
InternalOnOpenEvent ();
|
||||
InternalOnOpen ();
|
||||
}
|
||||
|
||||
private void InternalOnOpenEvent ()
|
||||
private void InternalOnOpen ()
|
||||
{
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
|
||||
|
@ -588,12 +529,8 @@ namespace Gst.WebRTC {
|
|||
|
||||
static void OverrideSendDataEvent (GLib.GType gtype, SendDataEventNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("send_data"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
|
||||
}
|
||||
OverrideVirtualMethod (gtype, "send-data", callback);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void SendDataEventNativeDelegate (IntPtr inst, IntPtr data);
|
||||
|
||||
|
@ -615,14 +552,16 @@ namespace Gst.WebRTC {
|
|||
|
||||
private void InternalSendDataEvent (GLib.Bytes data)
|
||||
{
|
||||
SendDataEventNativeDelegate unmanaged = null;
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("send_data"));
|
||||
unmanaged = (SendDataEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SendDataEventNativeDelegate));
|
||||
}
|
||||
if (unmanaged == null) return;
|
||||
|
||||
unmanaged (this.Handle, data == null ? IntPtr.Zero : data.Handle);
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (data);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
static SendStringEventNativeDelegate SendStringEvent_cb_delegate;
|
||||
|
@ -641,12 +580,8 @@ namespace Gst.WebRTC {
|
|||
|
||||
static void OverrideSendStringEvent (GLib.GType gtype, SendStringEventNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("send_string"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
|
||||
}
|
||||
OverrideVirtualMethod (gtype, "send-string", callback);
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void SendStringEventNativeDelegate (IntPtr inst, IntPtr data);
|
||||
|
||||
|
@ -668,69 +603,16 @@ namespace Gst.WebRTC {
|
|||
|
||||
private void InternalSendStringEvent (string data)
|
||||
{
|
||||
SendStringEventNativeDelegate unmanaged = null;
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("send_string"));
|
||||
unmanaged = (SendStringEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SendStringEventNativeDelegate));
|
||||
}
|
||||
if (unmanaged == null) return;
|
||||
|
||||
IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
|
||||
unmanaged (this.Handle, native_data);
|
||||
GLib.Marshaller.Free (native_data);
|
||||
}
|
||||
|
||||
static CloseEventNativeDelegate CloseEvent_cb_delegate;
|
||||
static CloseEventNativeDelegate CloseEventVMCallback {
|
||||
get {
|
||||
if (CloseEvent_cb_delegate == null)
|
||||
CloseEvent_cb_delegate = new CloseEventNativeDelegate (CloseEvent_cb);
|
||||
return CloseEvent_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideCloseEvent (GLib.GType gtype)
|
||||
{
|
||||
OverrideCloseEvent (gtype, CloseEventVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideCloseEvent (GLib.GType gtype, CloseEventNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("close"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate void CloseEventNativeDelegate (IntPtr inst);
|
||||
|
||||
static void CloseEvent_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
WebRTCDataChannel __obj = GLib.Object.GetObject (inst, false) as WebRTCDataChannel;
|
||||
__obj.OnCloseEvent ();
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCDataChannel), ConnectionMethod="OverrideCloseEvent")]
|
||||
protected virtual void OnCloseEvent ()
|
||||
{
|
||||
InternalCloseEvent ();
|
||||
}
|
||||
|
||||
private void InternalCloseEvent ()
|
||||
{
|
||||
CloseEventNativeDelegate unmanaged = null;
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("close"));
|
||||
unmanaged = (CloseEventNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CloseEventNativeDelegate));
|
||||
}
|
||||
if (unmanaged == null) return;
|
||||
|
||||
unmanaged (this.Handle);
|
||||
GLib.Value ret = GLib.Value.Empty;
|
||||
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
|
||||
GLib.Value[] vals = new GLib.Value [2];
|
||||
vals [0] = new GLib.Value (this);
|
||||
inst_and_params.Append (vals [0]);
|
||||
vals [1] = new GLib.Value (data);
|
||||
inst_and_params.Append (vals [1]);
|
||||
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
|
||||
foreach (GLib.Value v in vals)
|
||||
v.Dispose ();
|
||||
}
|
||||
|
||||
|
||||
|
@ -739,40 +621,7 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("send_data"
|
||||
, GLib.Object.class_abi.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // send_data
|
||||
, null
|
||||
, "send_string"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("send_string"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // send_string
|
||||
, "send_data"
|
||||
, "close"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("close"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // close
|
||||
, "send_string"
|
||||
, "_padding"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "close"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
|
@ -799,58 +648,6 @@ namespace Gst.WebRTC {
|
|||
gst_webrtc_data_channel_close(Handle);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_on_buffered_amount_low(IntPtr raw);
|
||||
|
||||
public void OnBufferedAmountLow() {
|
||||
gst_webrtc_data_channel_on_buffered_amount_low(Handle);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_on_close(IntPtr raw);
|
||||
|
||||
public void OnClose() {
|
||||
gst_webrtc_data_channel_on_close(Handle);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_on_error(IntPtr raw, IntPtr error);
|
||||
|
||||
public void OnError(IntPtr error) {
|
||||
gst_webrtc_data_channel_on_error(Handle, error);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_on_message_data(IntPtr raw, IntPtr data);
|
||||
|
||||
public void OnMessageData(GLib.Bytes data) {
|
||||
gst_webrtc_data_channel_on_message_data(Handle, data == null ? IntPtr.Zero : data.Handle);
|
||||
}
|
||||
|
||||
public void OnMessageData() {
|
||||
OnMessageData (null);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_on_message_string(IntPtr raw, IntPtr str);
|
||||
|
||||
public void OnMessageString(string str) {
|
||||
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
|
||||
gst_webrtc_data_channel_on_message_string(Handle, native_str);
|
||||
GLib.Marshaller.Free (native_str);
|
||||
}
|
||||
|
||||
public void OnMessageString() {
|
||||
OnMessageString (null);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_on_open(IntPtr raw);
|
||||
|
||||
public void OnOpen() {
|
||||
gst_webrtc_data_channel_on_open(Handle);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_data_channel_send_data(IntPtr raw, IntPtr data);
|
||||
|
||||
|
@ -886,180 +683,12 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("lock"
|
||||
, GLib.Object.abi_info.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // lock
|
||||
, null
|
||||
, "label"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("label"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // label
|
||||
, "lock"
|
||||
, "ordered"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("ordered"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(bool)) // ordered
|
||||
, "label"
|
||||
, "max_packet_lifetime"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_orderedAlign), "ordered")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("max_packet_lifetime"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(uint)) // max_packet_lifetime
|
||||
, "ordered"
|
||||
, "max_retransmits"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_max_packet_lifetimeAlign), "max_packet_lifetime")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("max_retransmits"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(uint)) // max_retransmits
|
||||
, "max_packet_lifetime"
|
||||
, "protocol"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_max_retransmitsAlign), "max_retransmits")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("protocol"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // protocol
|
||||
, "max_retransmits"
|
||||
, "negotiated"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("negotiated"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(bool)) // negotiated
|
||||
, "protocol"
|
||||
, "id"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_negotiatedAlign), "negotiated")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("id"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(int)) // id
|
||||
, "negotiated"
|
||||
, "priority"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_idAlign), "id")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("priority"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCPriorityType))) // priority
|
||||
, "id"
|
||||
, "ready_state"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_priorityAlign), "priority")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("ready_state"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCDataChannelState))) // ready_state
|
||||
, "priority"
|
||||
, "buffered_amount"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_ready_stateAlign), "ready_state")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("buffered_amount"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(ulong)) // buffered_amount
|
||||
, "ready_state"
|
||||
, "buffered_amount_low_threshold"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_buffered_amountAlign), "buffered_amount")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("buffered_amount_low_threshold"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(ulong)) // buffered_amount_low_threshold
|
||||
, "buffered_amount"
|
||||
, "_padding"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCDataChannel_buffered_amount_low_thresholdAlign), "buffered_amount_low_threshold")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "buffered_amount_low_threshold"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_orderedAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private bool ordered;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_max_packet_lifetimeAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private uint max_packet_lifetime;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_max_retransmitsAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private uint max_retransmits;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_negotiatedAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private bool negotiated;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_idAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private int id;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_priorityAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCPriorityType priority;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_ready_stateAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCDataChannelState ready_state;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_buffered_amountAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private ulong buffered_amount;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCDataChannel_buffered_amount_low_thresholdAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private ulong buffered_amount_low_threshold;
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
|
|
|
@ -48,60 +48,6 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCICERole Role {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("role"));
|
||||
return (Gst.WebRTC.WebRTCICERole) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCICEComponent ComponentField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("component"));
|
||||
return (Gst.WebRTC.WebRTCICEComponent) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCICEConnectionState StateField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("state"));
|
||||
return (Gst.WebRTC.WebRTCICEConnectionState) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCICEGatheringState GatheringStateField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("gathering_state"));
|
||||
return (Gst.WebRTC.WebRTCICEGatheringState) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.Element Src {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("src"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.Element;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.Element Sink {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("sink"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.Element;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Signal("on-selected-candidate-pair-change")]
|
||||
public event System.EventHandler OnSelectedCandidatePairChange {
|
||||
add {
|
||||
|
@ -222,88 +168,13 @@ namespace Gst.WebRTC {
|
|||
v.Dispose ();
|
||||
}
|
||||
|
||||
static GatherCandidatesNativeDelegate GatherCandidates_cb_delegate;
|
||||
static GatherCandidatesNativeDelegate GatherCandidatesVMCallback {
|
||||
get {
|
||||
if (GatherCandidates_cb_delegate == null)
|
||||
GatherCandidates_cb_delegate = new GatherCandidatesNativeDelegate (GatherCandidates_cb);
|
||||
return GatherCandidates_cb_delegate;
|
||||
}
|
||||
}
|
||||
|
||||
static void OverrideGatherCandidates (GLib.GType gtype)
|
||||
{
|
||||
OverrideGatherCandidates (gtype, GatherCandidatesVMCallback);
|
||||
}
|
||||
|
||||
static void OverrideGatherCandidates (GLib.GType gtype, GatherCandidatesNativeDelegate callback)
|
||||
{
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("gather_candidates"));
|
||||
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
|
||||
}
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
||||
delegate bool GatherCandidatesNativeDelegate (IntPtr inst);
|
||||
|
||||
static bool GatherCandidates_cb (IntPtr inst)
|
||||
{
|
||||
try {
|
||||
WebRTCICETransport __obj = GLib.Object.GetObject (inst, false) as WebRTCICETransport;
|
||||
bool __result;
|
||||
__result = __obj.OnGatherCandidates ();
|
||||
return __result;
|
||||
} catch (Exception e) {
|
||||
GLib.ExceptionManager.RaiseUnhandledException (e, true);
|
||||
// NOTREACHED: above call does not return.
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler(Type=typeof(Gst.WebRTC.WebRTCICETransport), ConnectionMethod="OverrideGatherCandidates")]
|
||||
protected virtual bool OnGatherCandidates ()
|
||||
{
|
||||
return InternalGatherCandidates ();
|
||||
}
|
||||
|
||||
private bool InternalGatherCandidates ()
|
||||
{
|
||||
GatherCandidatesNativeDelegate unmanaged = null;
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("gather_candidates"));
|
||||
unmanaged = (GatherCandidatesNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GatherCandidatesNativeDelegate));
|
||||
}
|
||||
if (unmanaged == null) return false;
|
||||
|
||||
bool __result = unmanaged (this.Handle);
|
||||
return __result;
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("gather_candidates"
|
||||
, Gst.Object.class_abi.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // gather_candidates
|
||||
, null
|
||||
, "_padding"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "gather_candidates"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
|
@ -323,36 +194,6 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_ice_transport_connection_state_change(IntPtr raw, int new_state);
|
||||
|
||||
public void ConnectionStateChange(Gst.WebRTC.WebRTCICEConnectionState new_state) {
|
||||
gst_webrtc_ice_transport_connection_state_change(Handle, (int) new_state);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_ice_transport_gathering_state_change(IntPtr raw, int new_state);
|
||||
|
||||
public void GatheringStateChange(Gst.WebRTC.WebRTCICEGatheringState new_state) {
|
||||
gst_webrtc_ice_transport_gathering_state_change(Handle, (int) new_state);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_ice_transport_new_candidate(IntPtr raw, uint stream_id, int component, IntPtr attr);
|
||||
|
||||
public void NewCandidate(uint stream_id, Gst.WebRTC.WebRTCICEComponent component, string attr) {
|
||||
IntPtr native_attr = GLib.Marshaller.StringToPtrGStrdup (attr);
|
||||
gst_webrtc_ice_transport_new_candidate(Handle, stream_id, (int) component, native_attr);
|
||||
GLib.Marshaller.Free (native_attr);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern void gst_webrtc_ice_transport_selected_pair_change(IntPtr raw);
|
||||
|
||||
public void SelectedPairChange() {
|
||||
gst_webrtc_ice_transport_selected_pair_change(Handle);
|
||||
}
|
||||
|
||||
|
||||
static WebRTCICETransport ()
|
||||
{
|
||||
|
@ -364,97 +205,12 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("role"
|
||||
, Gst.Object.abi_info.Fields
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICERole))) // role
|
||||
, null
|
||||
, "component"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_roleAlign), "role")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("component"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICEComponent))) // component
|
||||
, "role"
|
||||
, "state"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_componentAlign), "component")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("state"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICEConnectionState))) // state
|
||||
, "component"
|
||||
, "gathering_state"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_stateAlign), "state")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("gathering_state"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCICEGatheringState))) // gathering_state
|
||||
, "state"
|
||||
, "src"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCICETransport_gathering_stateAlign), "gathering_state")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("src"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // src
|
||||
, "gathering_state"
|
||||
, "sink"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("sink"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // sink
|
||||
, "src"
|
||||
, "_padding"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "sink"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields);
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCICETransport_roleAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCICERole role;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCICETransport_componentAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCICEComponent component;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCICETransport_stateAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCICEConnectionState state;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCICETransport_gathering_stateAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCICEGatheringState gathering_state;
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
|
|
|
@ -13,24 +13,18 @@ namespace Gst.WebRTC {
|
|||
|
||||
public WebRTCRTPReceiver (IntPtr raw) : base(raw) {}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gst_webrtc_rtp_receiver_new();
|
||||
|
||||
public WebRTCRTPReceiver () : base (IntPtr.Zero)
|
||||
protected WebRTCRTPReceiver() : base(IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (WebRTCRTPReceiver)) {
|
||||
CreateNativeObject (new string [0], new GLib.Value[0]);
|
||||
return;
|
||||
}
|
||||
Raw = gst_webrtc_rtp_receiver_new();
|
||||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
}
|
||||
|
||||
[GLib.Property ("transport")]
|
||||
public Gst.WebRTC.WebRTCDTLSTransport Transport {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("transport"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport;
|
||||
}
|
||||
GLib.Value val = GetProperty ("transport");
|
||||
Gst.WebRTC.WebRTCDTLSTransport ret = (Gst.WebRTC.WebRTCDTLSTransport) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,16 +34,7 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_padding"
|
||||
, Gst.Object.class_abi.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, null
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
|
@ -80,24 +65,7 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("transport"
|
||||
, Gst.Object.abi_info.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // transport
|
||||
, null
|
||||
, "_padding"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "transport"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields);
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
|
|
|
@ -13,16 +13,9 @@ namespace Gst.WebRTC {
|
|||
|
||||
public WebRTCRTPSender (IntPtr raw) : base(raw) {}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern IntPtr gst_webrtc_rtp_sender_new();
|
||||
|
||||
public WebRTCRTPSender () : base (IntPtr.Zero)
|
||||
protected WebRTCRTPSender() : base(IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (WebRTCRTPSender)) {
|
||||
CreateNativeObject (new string [0], new GLib.Value[0]);
|
||||
return;
|
||||
}
|
||||
Raw = gst_webrtc_rtp_sender_new();
|
||||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
}
|
||||
|
||||
[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
|
@ -41,21 +34,13 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("transport")]
|
||||
public Gst.WebRTC.WebRTCDTLSTransport Transport {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("transport"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCDTLSTransport;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCPriorityType PriorityField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("priority"));
|
||||
return (Gst.WebRTC.WebRTCPriorityType) (*raw_ptr);
|
||||
}
|
||||
GLib.Value val = GetProperty ("transport");
|
||||
Gst.WebRTC.WebRTCDTLSTransport ret = (Gst.WebRTC.WebRTCDTLSTransport) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -65,16 +50,7 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_padding"
|
||||
, Gst.Object.class_abi.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, null
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
|
@ -105,52 +81,12 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("transport"
|
||||
, Gst.Object.abi_info.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // transport
|
||||
, null
|
||||
, "send_encodings"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("send_encodings"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // send_encodings
|
||||
, "transport"
|
||||
, "priority"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("priority"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCPriorityType))) // priority
|
||||
, "send_encodings"
|
||||
, "_padding"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCRTPSender_priorityAlign), "priority")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "priority"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields);
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCRTPSender_priorityAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCPriorityType priority;
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
|
|
|
@ -18,6 +18,31 @@ namespace Gst.WebRTC {
|
|||
CreateNativeObject (new string [0], new GLib.Value [0]);
|
||||
}
|
||||
|
||||
[GLib.Property ("codec-preferences")]
|
||||
public Gst.Caps CodecPreferences {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("codec-preferences");
|
||||
Gst.Caps ret = (Gst.Caps) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
GLib.Value val = new GLib.Value(value, "GstCaps*");
|
||||
SetProperty("codec-preferences", val);
|
||||
val.Dispose ();
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("current-direction")]
|
||||
public Gst.WebRTC.WebRTCRTPTransceiverDirection CurrentDirection {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("current-direction");
|
||||
Gst.WebRTC.WebRTCRTPTransceiverDirection ret = (Gst.WebRTC.WebRTCRTPTransceiverDirection) (Enum) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("direction")]
|
||||
public Gst.WebRTC.WebRTCRTPTransceiverDirection Direction {
|
||||
get {
|
||||
|
@ -33,6 +58,26 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("kind")]
|
||||
public Gst.WebRTC.WebRTCKind Kind {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("kind");
|
||||
Gst.WebRTC.WebRTCKind ret = (Gst.WebRTC.WebRTCKind) (Enum) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("mid")]
|
||||
public string Mid {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("mid");
|
||||
string ret = (string) val;
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[GLib.Property ("mlineindex")]
|
||||
public uint Mlineindex {
|
||||
get {
|
||||
|
@ -63,103 +108,13 @@ namespace Gst.WebRTC {
|
|||
}
|
||||
}
|
||||
|
||||
public uint Mline {
|
||||
get {
|
||||
unsafe {
|
||||
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("mline"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string Mid {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("mid"));
|
||||
return GLib.Marshaller.Utf8PtrToString ((*raw_ptr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool Stopped {
|
||||
get {
|
||||
unsafe {
|
||||
bool* raw_ptr = (bool*)(((byte*)Handle) + abi_info.GetFieldOffset("stopped"));
|
||||
return (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCRTPSender SenderField {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("sender"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCRTPSender;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCRTPReceiver ReceiverField {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("receiver"));
|
||||
return GLib.Object.GetObject((*raw_ptr)) as Gst.WebRTC.WebRTCRTPReceiver;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCRTPTransceiverDirection DirectionField {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("direction"));
|
||||
return (Gst.WebRTC.WebRTCRTPTransceiverDirection) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCRTPTransceiverDirection CurrentDirection {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("current_direction"));
|
||||
return (Gst.WebRTC.WebRTCRTPTransceiverDirection) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.Caps CodecPreferences {
|
||||
get {
|
||||
unsafe {
|
||||
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("codec_preferences"));
|
||||
return (*raw_ptr) == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque ((*raw_ptr), typeof (Gst.Caps), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Gst.WebRTC.WebRTCKind Kind {
|
||||
get {
|
||||
unsafe {
|
||||
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("kind"));
|
||||
return (Gst.WebRTC.WebRTCKind) (*raw_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Internal representation of the wrapped structure ABI.
|
||||
static GLib.AbiStruct _class_abi = null;
|
||||
static public new GLib.AbiStruct class_abi {
|
||||
get {
|
||||
if (_class_abi == null)
|
||||
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("_padding"
|
||||
, Gst.Object.class_abi.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, null
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_class_abi = new GLib.AbiStruct (Gst.Object.class_abi.Fields);
|
||||
|
||||
return _class_abi;
|
||||
}
|
||||
|
@ -190,128 +145,12 @@ namespace Gst.WebRTC {
|
|||
static public new GLib.AbiStruct abi_info {
|
||||
get {
|
||||
if (_abi_info == null)
|
||||
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
|
||||
new GLib.AbiField("mline"
|
||||
, Gst.Object.abi_info.Fields
|
||||
, (uint) Marshal.SizeOf(typeof(uint)) // mline
|
||||
, null
|
||||
, "mid"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_mlineAlign), "mline")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("mid"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // mid
|
||||
, "mline"
|
||||
, "stopped"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("stopped"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(bool)) // stopped
|
||||
, "mid"
|
||||
, "sender"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_stoppedAlign), "stopped")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("sender"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // sender
|
||||
, "stopped"
|
||||
, "receiver"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("receiver"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // receiver
|
||||
, "sender"
|
||||
, "direction"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("direction"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCRTPTransceiverDirection))) // direction
|
||||
, "receiver"
|
||||
, "current_direction"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_directionAlign), "direction")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("current_direction"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCRTPTransceiverDirection))) // current_direction
|
||||
, "direction"
|
||||
, "codec_preferences"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_current_directionAlign), "current_direction")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("codec_preferences"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) // codec_preferences
|
||||
, "current_direction"
|
||||
, "kind"
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("kind"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.WebRTC.WebRTCKind))) // kind
|
||||
, "codec_preferences"
|
||||
, "_padding"
|
||||
, (long) Marshal.OffsetOf(typeof(GstWebRTCRTPTransceiver_kindAlign), "kind")
|
||||
, 0
|
||||
),
|
||||
new GLib.AbiField("_padding"
|
||||
, -1
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
|
||||
, "kind"
|
||||
, null
|
||||
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
||||
, 0
|
||||
),
|
||||
});
|
||||
_abi_info = new GLib.AbiStruct (Gst.Object.abi_info.Fields);
|
||||
|
||||
return _abi_info;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCRTPTransceiver_mlineAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private uint mline;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCRTPTransceiver_stoppedAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private bool stopped;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCRTPTransceiver_directionAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCRTPTransceiverDirection direction;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCRTPTransceiver_current_directionAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCRTPTransceiverDirection current_direction;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GstWebRTCRTPTransceiver_kindAlign
|
||||
{
|
||||
sbyte f1;
|
||||
private Gst.WebRTC.WebRTCKind kind;
|
||||
}
|
||||
|
||||
|
||||
// End of the ABI representation.
|
||||
|
||||
|
|
|
@ -981,58 +981,5 @@ int main (int argc, char *argv[]) {
|
|||
g_print("\"GstVideoInfo.fps_d\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstVideoInfo, fps_d));
|
||||
g_print("\"GstVideoInfo.offset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstVideoInfo, offset));
|
||||
g_print("\"GstVideoInfo.stride\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstVideoInfo, stride));
|
||||
g_print("\"sizeof(GstWebRTCDTLSTransportClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDTLSTransportClass));
|
||||
g_print("\"sizeof(GstWebRTCDTLSTransport)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDTLSTransport));
|
||||
g_print("\"GstWebRTCDTLSTransport.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, transport));
|
||||
g_print("\"GstWebRTCDTLSTransport.state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, state));
|
||||
g_print("\"GstWebRTCDTLSTransport.client\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, client));
|
||||
g_print("\"GstWebRTCDTLSTransport.session_id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, session_id));
|
||||
g_print("\"GstWebRTCDTLSTransport.dtlssrtpenc\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, dtlssrtpenc));
|
||||
g_print("\"GstWebRTCDTLSTransport.dtlssrtpdec\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDTLSTransport, dtlssrtpdec));
|
||||
g_print("\"sizeof(GstWebRTCDataChannelClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDataChannelClass));
|
||||
g_print("\"GstWebRTCDataChannelClass.send_data\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannelClass, send_data));
|
||||
g_print("\"GstWebRTCDataChannelClass.send_string\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannelClass, send_string));
|
||||
g_print("\"GstWebRTCDataChannelClass.close\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannelClass, close));
|
||||
g_print("\"sizeof(GstWebRTCDataChannel)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCDataChannel));
|
||||
g_print("\"GstWebRTCDataChannel.lock\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, lock));
|
||||
g_print("\"GstWebRTCDataChannel.label\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, label));
|
||||
g_print("\"GstWebRTCDataChannel.ordered\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, ordered));
|
||||
g_print("\"GstWebRTCDataChannel.max_packet_lifetime\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, max_packet_lifetime));
|
||||
g_print("\"GstWebRTCDataChannel.max_retransmits\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, max_retransmits));
|
||||
g_print("\"GstWebRTCDataChannel.protocol\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, protocol));
|
||||
g_print("\"GstWebRTCDataChannel.negotiated\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, negotiated));
|
||||
g_print("\"GstWebRTCDataChannel.id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, id));
|
||||
g_print("\"GstWebRTCDataChannel.priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, priority));
|
||||
g_print("\"GstWebRTCDataChannel.ready_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, ready_state));
|
||||
g_print("\"GstWebRTCDataChannel.buffered_amount\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, buffered_amount));
|
||||
g_print("\"GstWebRTCDataChannel.buffered_amount_low_threshold\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCDataChannel, buffered_amount_low_threshold));
|
||||
g_print("\"sizeof(GstWebRTCICETransportClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCICETransportClass));
|
||||
g_print("\"GstWebRTCICETransportClass.gather_candidates\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransportClass, gather_candidates));
|
||||
g_print("\"sizeof(GstWebRTCICETransport)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCICETransport));
|
||||
g_print("\"GstWebRTCICETransport.role\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, role));
|
||||
g_print("\"GstWebRTCICETransport.component\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, component));
|
||||
g_print("\"GstWebRTCICETransport.state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, state));
|
||||
g_print("\"GstWebRTCICETransport.gathering_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, gathering_state));
|
||||
g_print("\"GstWebRTCICETransport.src\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, src));
|
||||
g_print("\"GstWebRTCICETransport.sink\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, sink));
|
||||
g_print("\"sizeof(GstWebRTCRTPReceiverClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPReceiverClass));
|
||||
g_print("\"sizeof(GstWebRTCRTPReceiver)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPReceiver));
|
||||
g_print("\"GstWebRTCRTPReceiver.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPReceiver, transport));
|
||||
g_print("\"sizeof(GstWebRTCRTPSenderClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPSenderClass));
|
||||
g_print("\"sizeof(GstWebRTCRTPSender)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPSender));
|
||||
g_print("\"GstWebRTCRTPSender.transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, transport));
|
||||
g_print("\"GstWebRTCRTPSender.send_encodings\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, send_encodings));
|
||||
g_print("\"GstWebRTCRTPSender.priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPSender, priority));
|
||||
g_print("\"sizeof(GstWebRTCRTPTransceiverClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPTransceiverClass));
|
||||
g_print("\"sizeof(GstWebRTCRTPTransceiver)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstWebRTCRTPTransceiver));
|
||||
g_print("\"GstWebRTCRTPTransceiver.mline\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, mline));
|
||||
g_print("\"GstWebRTCRTPTransceiver.mid\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, mid));
|
||||
g_print("\"GstWebRTCRTPTransceiver.stopped\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, stopped));
|
||||
g_print("\"GstWebRTCRTPTransceiver.sender\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, sender));
|
||||
g_print("\"GstWebRTCRTPTransceiver.receiver\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, receiver));
|
||||
g_print("\"GstWebRTCRTPTransceiver.direction\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, direction));
|
||||
g_print("\"GstWebRTCRTPTransceiver.current_direction\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, current_direction));
|
||||
g_print("\"GstWebRTCRTPTransceiver.codec_preferences\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, codec_preferences));
|
||||
g_print("\"GstWebRTCRTPTransceiver.kind\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCRTPTransceiver, kind));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -975,59 +975,6 @@ namespace AbiTester {
|
|||
Console.WriteLine("\"GstVideoInfo.fps_d\": \"" + Gst.Video.VideoInfo.abi_info.GetFieldOffset("fps_d") + "\"");
|
||||
Console.WriteLine("\"GstVideoInfo.offset\": \"" + Gst.Video.VideoInfo.abi_info.GetFieldOffset("offset") + "\"");
|
||||
Console.WriteLine("\"GstVideoInfo.stride\": \"" + Gst.Video.VideoInfo.abi_info.GetFieldOffset("stride") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCDTLSTransportClass)\": \"" + Gst.WebRTC.WebRTCDTLSTransport.class_abi.Size + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCDTLSTransport)\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDTLSTransport.transport\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("transport") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDTLSTransport.state\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("state") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDTLSTransport.client\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("client") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDTLSTransport.session_id\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("session_id") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDTLSTransport.dtlssrtpenc\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("dtlssrtpenc") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDTLSTransport.dtlssrtpdec\": \"" + Gst.WebRTC.WebRTCDTLSTransport.abi_info.GetFieldOffset("dtlssrtpdec") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCDataChannelClass)\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannelClass.send_data\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.GetFieldOffset("send_data") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannelClass.send_string\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.GetFieldOffset("send_string") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannelClass.close\": \"" + Gst.WebRTC.WebRTCDataChannel.class_abi.GetFieldOffset("close") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCDataChannel)\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.lock\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("lock") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.label\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("label") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.ordered\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("ordered") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.max_packet_lifetime\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("max_packet_lifetime") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.max_retransmits\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("max_retransmits") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.protocol\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("protocol") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.negotiated\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("negotiated") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.id\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("id") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.priority\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("priority") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.ready_state\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("ready_state") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.buffered_amount\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("buffered_amount") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCDataChannel.buffered_amount_low_threshold\": \"" + Gst.WebRTC.WebRTCDataChannel.abi_info.GetFieldOffset("buffered_amount_low_threshold") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCICETransportClass)\": \"" + Gst.WebRTC.WebRTCICETransport.class_abi.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransportClass.gather_candidates\": \"" + Gst.WebRTC.WebRTCICETransport.class_abi.GetFieldOffset("gather_candidates") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCICETransport)\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransport.role\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("role") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransport.component\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("component") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransport.state\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("state") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransport.gathering_state\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("gathering_state") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransport.src\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("src") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCICETransport.sink\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("sink") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCRTPReceiverClass)\": \"" + Gst.WebRTC.WebRTCRTPReceiver.class_abi.Size + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCRTPReceiver)\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPReceiver.transport\": \"" + Gst.WebRTC.WebRTCRTPReceiver.abi_info.GetFieldOffset("transport") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCRTPSenderClass)\": \"" + Gst.WebRTC.WebRTCRTPSender.class_abi.Size + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCRTPSender)\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPSender.transport\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("transport") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPSender.send_encodings\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("send_encodings") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPSender.priority\": \"" + Gst.WebRTC.WebRTCRTPSender.abi_info.GetFieldOffset("priority") + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCRTPTransceiverClass)\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.class_abi.Size + "\"");
|
||||
Console.WriteLine("\"sizeof(GstWebRTCRTPTransceiver)\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.Size + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.mline\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("mline") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.mid\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("mid") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.stopped\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("stopped") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.sender\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("sender") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.receiver\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("receiver") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.direction\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("direction") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.current_direction\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("current_direction") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.codec_preferences\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("codec_preferences") + "\"");
|
||||
Console.WriteLine("\"GstWebRTCRTPTransceiver.kind\": \"" + Gst.WebRTC.WebRTCRTPTransceiver.abi_info.GetFieldOffset("kind") + "\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31296,51 +31296,19 @@
|
|||
<member cname="GST_WEBRTC_STATS_CERTIFICATE" name="Certificate" value="14" />
|
||||
</enum>
|
||||
<object name="WebRTCDTLSTransport" cname="GstWebRTCDTLSTransport" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCDTLSTransportClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</class_struct>
|
||||
<class_struct cname="GstWebRTCDTLSTransportClass" />
|
||||
<method name="GetType" cname="gst_webrtc_dtls_transport_get_type" shared="true">
|
||||
<return-type type="GType" />
|
||||
</method>
|
||||
<constructor cname="gst_webrtc_dtls_transport_new">
|
||||
<parameters>
|
||||
<parameter name="session_id" type="guint" />
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetTransport" cname="gst_webrtc_dtls_transport_set_transport">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter name="ice" type="GstWebRTCICETransport*" />
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="Certificate" cname="certificate" type="gchar*" readable="true" writeable="true" construct="false" construct-only="false" />
|
||||
<property name="Client" cname="client" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
|
||||
<property name="RemoteCertificate" cname="remote-certificate" type="gchar*" readable="true" writeable="false" construct="false" construct-only="false" />
|
||||
<property name="SessionId" cname="session-id" type="guint" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<property name="State" cname="state" type="GstWebRTCDTLSTransportState" readable="true" writeable="false" construct="false" construct-only="false" />
|
||||
<property name="Transport" cname="transport" type="GstWebRTCICETransport*" readable="true" writeable="false" construct="false" construct-only="false" />
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
|
||||
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="TransportField" type="GstWebRTCICETransport*" />
|
||||
<field cname="state" access="public" writeable="false" readable="true" is_callback="false" name="StateField" type="GstWebRTCDTLSTransportState" />
|
||||
<field cname="client" access="public" writeable="false" readable="true" is_callback="false" name="ClientField" type="gboolean" />
|
||||
<field cname="session_id" access="public" writeable="false" readable="true" is_callback="false" name="SessionIdField" type="guint" />
|
||||
<field cname="dtlssrtpenc" access="public" writeable="false" readable="true" is_callback="false" name="Dtlssrtpenc" type="GstElement*" />
|
||||
<field cname="dtlssrtpdec" access="public" writeable="false" readable="true" is_callback="false" name="Dtlssrtpdec" type="GstElement*" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</object>
|
||||
<object name="WebRTCDataChannel" cname="GstWebRTCDataChannel" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GObject" version="1.18">
|
||||
<class_struct cname="GstWebRTCDataChannelClass" version="1.18">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<method signal_vm="send_data" />
|
||||
<method signal_vm="send_string" />
|
||||
<method signal_vm="close" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</class_struct>
|
||||
<object name="WebRTCDataChannel" cname="GstWebRTCDataChannel" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GObject">
|
||||
<class_struct cname="GstWebRTCDataChannelClass" />
|
||||
<method name="GetType" cname="gst_webrtc_data_channel_get_type" shared="true">
|
||||
<return-type type="GType" />
|
||||
</method>
|
||||
|
@ -31348,40 +31316,6 @@
|
|||
<return-type type="void" />
|
||||
<parameters />
|
||||
</method>
|
||||
<method name="OnBufferedAmountLow" cname="gst_webrtc_data_channel_on_buffered_amount_low">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
</method>
|
||||
<method name="OnClose" cname="gst_webrtc_data_channel_on_close">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
</method>
|
||||
<method name="OnError" cname="gst_webrtc_data_channel_on_error">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter name="error" type="GError*" owned="true">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="OnMessageData" cname="gst_webrtc_data_channel_on_message_data">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="GBytes*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="OnMessageString" cname="gst_webrtc_data_channel_on_message_string">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="str" type="const-gchar*" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="OnOpen" cname="gst_webrtc_data_channel_on_open">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
</method>
|
||||
<method name="SendData" cname="gst_webrtc_data_channel_send_data">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
|
@ -31407,66 +31341,46 @@
|
|||
<property name="Priority" cname="priority" type="GstWebRTCPriorityType" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<property name="Protocol" cname="protocol" type="gchar*" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<property name="ReadyState" cname="ready-state" type="GstWebRTCDataChannelState" readable="true" writeable="false" construct="false" construct-only="false" />
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GObject*" hidden="true" />
|
||||
<field cname="lock" access="public" writeable="false" readable="true" is_callback="false" name="Lock" type="GMutex*" />
|
||||
<field cname="label" access="public" writeable="false" readable="true" is_callback="false" name="LabelField" type="gchar*" />
|
||||
<field cname="ordered" access="public" writeable="false" readable="true" is_callback="false" name="OrderedField" type="gboolean" />
|
||||
<field cname="max_packet_lifetime" access="public" writeable="false" readable="true" is_callback="false" name="MaxPacketLifetimeField" type="guint" />
|
||||
<field cname="max_retransmits" access="public" writeable="false" readable="true" is_callback="false" name="MaxRetransmitsField" type="guint" />
|
||||
<field cname="protocol" access="public" writeable="false" readable="true" is_callback="false" name="ProtocolField" type="gchar*" />
|
||||
<field cname="negotiated" access="public" writeable="false" readable="true" is_callback="false" name="NegotiatedField" type="gboolean" />
|
||||
<field cname="id" access="public" writeable="false" readable="true" is_callback="false" name="IdField" type="gint" />
|
||||
<field cname="priority" access="public" writeable="false" readable="true" is_callback="false" name="PriorityField" type="GstWebRTCPriorityType" />
|
||||
<field cname="ready_state" access="public" writeable="false" readable="true" is_callback="false" name="ReadyStateField" type="GstWebRTCDataChannelState" />
|
||||
<field cname="buffered_amount" access="public" writeable="false" readable="true" is_callback="false" name="BufferedAmountField" type="guint64" />
|
||||
<field cname="buffered_amount_low_threshold" access="public" writeable="false" readable="true" is_callback="false" name="BufferedAmountLowThresholdField" type="guint64" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
<signal name="CloseEvent" cname="close" when="last" field_name="close">
|
||||
<signal name="CloseEvent" cname="close" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnBufferedAmountLowEvent" cname="on-buffered-amount-low" when="last">
|
||||
<signal name="OnBufferedAmountLow" cname="on-buffered-amount-low" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnCloseEvent" cname="on-close" when="last" hidden="true">
|
||||
<signal name="OnClose" cname="on-close" when="last" hidden="true">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnErrorEvent" cname="on-error" when="last">
|
||||
<signal name="OnError" cname="on-error" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter name="error" type="GError*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnMessageDataEvent" cname="on-message-data" when="last">
|
||||
<signal name="OnMessageData" cname="on-message-data" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="GBytes*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnMessageStringEvent" cname="on-message-string" when="last">
|
||||
<signal name="OnMessageString" cname="on-message-string" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="const-gchar*" />
|
||||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnOpenEvent" cname="on-open" when="last">
|
||||
<signal name="OnOpen" cname="on-open" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="SendDataEvent" cname="send-data" when="last" field_name="send_data">
|
||||
<signal name="SendDataEvent" cname="send-data" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="GBytes*">
|
||||
|
@ -31475,7 +31389,7 @@
|
|||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="SendStringEvent" cname="send-string" when="last" field_name="send_string">
|
||||
<signal name="SendStringEvent" cname="send-string" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="const-gchar*" />
|
||||
|
@ -31484,55 +31398,13 @@
|
|||
</signal>
|
||||
</object>
|
||||
<object name="WebRTCICETransport" cname="GstWebRTCICETransport" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCICETransportClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<method vm="gather_candidates" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</class_struct>
|
||||
<class_struct cname="GstWebRTCICETransportClass" />
|
||||
<method name="GetType" cname="gst_webrtc_ice_transport_get_type" shared="true">
|
||||
<return-type type="GType" />
|
||||
</method>
|
||||
<virtual_method name="GatherCandidates" cname="gather_candidates">
|
||||
<return-type type="gboolean" />
|
||||
<parameters />
|
||||
</virtual_method>
|
||||
<method name="ConnectionStateChange" cname="gst_webrtc_ice_transport_connection_state_change">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter name="new_state" type="GstWebRTCICEConnectionState" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GatheringStateChange" cname="gst_webrtc_ice_transport_gathering_state_change">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter name="new_state" type="GstWebRTCICEGatheringState" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="NewCandidate" cname="gst_webrtc_ice_transport_new_candidate">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter name="stream_id" type="guint" />
|
||||
<parameter name="component" type="GstWebRTCICEComponent" />
|
||||
<parameter name="attr" type="const-gchar*" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SelectedPairChange" cname="gst_webrtc_ice_transport_selected_pair_change">
|
||||
<return-type type="void" />
|
||||
<parameters />
|
||||
</method>
|
||||
<property name="Component" cname="component" type="GstWebRTCICEComponent" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<property name="GatheringState" cname="gathering-state" type="GstWebRTCICEGatheringState" readable="true" writeable="false" construct="false" construct-only="false" />
|
||||
<property name="State" cname="state" type="GstWebRTCICEConnectionState" readable="true" writeable="false" construct="false" construct-only="false" />
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
|
||||
<field cname="role" access="public" writeable="false" readable="true" is_callback="false" name="Role" type="GstWebRTCICERole" />
|
||||
<field cname="component" access="public" writeable="false" readable="true" is_callback="false" name="ComponentField" type="GstWebRTCICEComponent" />
|
||||
<field cname="state" access="public" writeable="false" readable="true" is_callback="false" name="StateField" type="GstWebRTCICEConnectionState" />
|
||||
<field cname="gathering_state" access="public" writeable="false" readable="true" is_callback="false" name="GatheringStateField" type="GstWebRTCICEGatheringState" />
|
||||
<field cname="src" access="public" writeable="false" readable="true" is_callback="false" name="Src" type="GstElement*" />
|
||||
<field cname="sink" access="public" writeable="false" readable="true" is_callback="false" name="Sink" type="GstElement*" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
<signal name="OnNewCandidate" cname="on-new-candidate" when="last">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
|
@ -31544,32 +31416,18 @@
|
|||
<parameters />
|
||||
</signal>
|
||||
</object>
|
||||
<object name="WebRTCRTPReceiver" cname="GstWebRTCRTPReceiver" opaque="false" hidden="false" parent="GstObject" version="1.16">
|
||||
<class_struct cname="GstWebRTCRTPReceiverClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</class_struct>
|
||||
<object name="WebRTCRTPReceiver" cname="GstWebRTCRTPReceiver" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCRTPReceiverClass" />
|
||||
<method name="GetType" cname="gst_webrtc_rtp_receiver_get_type" shared="true">
|
||||
<return-type type="GType" />
|
||||
</method>
|
||||
<constructor cname="gst_webrtc_rtp_receiver_new" disable_void_ctor="" />
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
|
||||
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
<property name="Transport" cname="transport" type="GstWebRTCDTLSTransport*" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
|
||||
</object>
|
||||
<object name="WebRTCRTPSender" cname="GstWebRTCRTPSender" opaque="false" hidden="false" parent="GstObject" version="1.16">
|
||||
<class_struct cname="GstWebRTCRTPSenderClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</class_struct>
|
||||
<object name="WebRTCRTPSender" cname="GstWebRTCRTPSender" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCRTPSenderClass" />
|
||||
<method name="GetType" cname="gst_webrtc_rtp_sender_get_type" shared="true">
|
||||
<return-type type="GType" />
|
||||
</method>
|
||||
<constructor cname="gst_webrtc_rtp_sender_new" disable_void_ctor="" />
|
||||
<method name="SetPriority" cname="gst_webrtc_rtp_sender_set_priority" version="1.20">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
|
@ -31577,39 +31435,21 @@
|
|||
</parameters>
|
||||
</method>
|
||||
<property name="Priority" cname="priority" type="GstWebRTCPriorityType" readable="true" writeable="true" construct="false" construct-only="false" version="1.20" />
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
|
||||
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*" />
|
||||
<field cname="send_encodings" access="public" writeable="false" readable="true" is_callback="false" name="SendEncodings" type="GArray*" array="true" null_term_array="true" />
|
||||
<field cname="priority" access="public" writeable="false" readable="true" is_callback="false" name="PriorityField" type="GstWebRTCPriorityType" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
<property name="Transport" cname="transport" type="GstWebRTCDTLSTransport*" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
|
||||
</object>
|
||||
<object name="WebRTCRTPTransceiver" cname="GstWebRTCRTPTransceiver" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstObject" version="1.16">
|
||||
<class_struct cname="GstWebRTCRTPTransceiverClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</class_struct>
|
||||
<object name="WebRTCRTPTransceiver" cname="GstWebRTCRTPTransceiver" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCRTPTransceiverClass" />
|
||||
<method name="GetType" cname="gst_webrtc_rtp_transceiver_get_type" shared="true">
|
||||
<return-type type="GType" />
|
||||
</method>
|
||||
<property name="CodecPreferences" cname="codec-preferences" type="GstCaps*" readable="true" writeable="true" construct="false" construct-only="false" version="1.20" />
|
||||
<property name="CurrentDirection" cname="current-direction" type="GstWebRTCRTPTransceiverDirection" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
|
||||
<property name="Direction" cname="direction" type="GstWebRTCRTPTransceiverDirection" readable="true" writeable="true" construct="false" construct-only="false" version="1.18" />
|
||||
<property name="Kind" cname="kind" type="GstWebRTCKind" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
|
||||
<property name="Mid" cname="mid" type="gchar*" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
|
||||
<property name="Mlineindex" cname="mlineindex" type="guint" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<property name="Receiver" cname="receiver" type="GstWebRTCRTPReceiver*" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<property name="Sender" cname="sender" type="GstWebRTCRTPSender*" readable="true" writeable="true" construct="false" construct-only="true" />
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*" hidden="true" />
|
||||
<field cname="mline" access="public" writeable="false" readable="true" is_callback="false" name="Mline" type="guint" />
|
||||
<field cname="mid" access="public" writeable="false" readable="true" is_callback="false" name="Mid" type="gchar*" />
|
||||
<field cname="stopped" access="public" writeable="false" readable="true" is_callback="false" name="Stopped" type="gboolean" />
|
||||
<field cname="sender" access="public" writeable="false" readable="true" is_callback="false" name="SenderField" type="GstWebRTCRTPSender*" />
|
||||
<field cname="receiver" access="public" writeable="false" readable="true" is_callback="false" name="ReceiverField" type="GstWebRTCRTPReceiver*" />
|
||||
<field cname="direction" access="public" writeable="false" readable="true" is_callback="false" name="DirectionField" type="GstWebRTCRTPTransceiverDirection" />
|
||||
<field cname="current_direction" access="public" writeable="false" readable="true" is_callback="false" name="CurrentDirection" type="GstWebRTCRTPTransceiverDirection" />
|
||||
<field cname="codec_preferences" access="public" writeable="false" readable="true" is_callback="false" name="CodecPreferences" type="GstCaps*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="kind" access="public" writeable="false" readable="true" is_callback="false" name="Kind" type="GstWebRTCKind" />
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4" padding="true" />
|
||||
</object>
|
||||
<boxed name="WebRTCSessionDescription" cname="GstWebRTCSessionDescription" opaque="false" hidden="false">
|
||||
<method name="GetType" cname="gst_webrtc_session_description_get_type" shared="true">
|
||||
|
|
|
@ -414,8 +414,11 @@ generated_sources = [
|
|||
'Gst.WebRTC/Constants.cs',
|
||||
'Gst.WebRTC/Global.cs',
|
||||
'Gst.WebRTC/OnErrorEventHandler.cs',
|
||||
'Gst.WebRTC/OnErrorHandler.cs',
|
||||
'Gst.WebRTC/OnMessageDataEventHandler.cs',
|
||||
'Gst.WebRTC/OnMessageDataHandler.cs',
|
||||
'Gst.WebRTC/OnMessageStringEventHandler.cs',
|
||||
'Gst.WebRTC/OnMessageStringHandler.cs',
|
||||
'Gst.WebRTC/OnNewCandidateHandler.cs',
|
||||
'Gst.WebRTC/SendDataEventHandler.cs',
|
||||
'Gst.WebRTC/SendStringEventHandler.cs',
|
||||
|
|
|
@ -31685,51 +31685,19 @@
|
|||
<member cname="GST_WEBRTC_STATS_CERTIFICATE" name="Certificate" value="14"/>
|
||||
</enum>
|
||||
<object name="WebRTCDTLSTransport" cname="GstWebRTCDTLSTransport" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCDTLSTransportClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</class_struct>
|
||||
<class_struct cname="GstWebRTCDTLSTransportClass"/>
|
||||
<method name="GetType" cname="gst_webrtc_dtls_transport_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<constructor cname="gst_webrtc_dtls_transport_new">
|
||||
<parameters>
|
||||
<parameter name="session_id" type="guint"/>
|
||||
</parameters>
|
||||
</constructor>
|
||||
<method name="SetTransport" cname="gst_webrtc_dtls_transport_set_transport">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="ice" type="GstWebRTCICETransport*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<property name="Certificate" cname="certificate" type="gchar*" readable="true" writeable="true" construct="false" construct-only="false"/>
|
||||
<property name="Client" cname="client" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
|
||||
<property name="RemoteCertificate" cname="remote-certificate" type="gchar*" readable="true" writeable="false" construct="false" construct-only="false"/>
|
||||
<property name="SessionId" cname="session-id" type="guint" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<property name="State" cname="state" type="GstWebRTCDTLSTransportState" readable="true" writeable="false" construct="false" construct-only="false"/>
|
||||
<property name="Transport" cname="transport" type="GstWebRTCICETransport*" readable="true" writeable="false" construct="false" construct-only="false"/>
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
|
||||
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="TransportField" type="GstWebRTCICETransport*"/>
|
||||
<field cname="state" access="public" writeable="false" readable="true" is_callback="false" name="StateField" type="GstWebRTCDTLSTransportState"/>
|
||||
<field cname="client" access="public" writeable="false" readable="true" is_callback="false" name="ClientField" type="gboolean"/>
|
||||
<field cname="session_id" access="public" writeable="false" readable="true" is_callback="false" name="SessionIdField" type="guint"/>
|
||||
<field cname="dtlssrtpenc" access="public" writeable="false" readable="true" is_callback="false" name="Dtlssrtpenc" type="GstElement*"/>
|
||||
<field cname="dtlssrtpdec" access="public" writeable="false" readable="true" is_callback="false" name="Dtlssrtpdec" type="GstElement*"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</object>
|
||||
<object name="WebRTCDataChannel" cname="GstWebRTCDataChannel" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GObject" version="1.18">
|
||||
<class_struct cname="GstWebRTCDataChannelClass" version="1.18">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<method signal_vm="send_data"/>
|
||||
<method signal_vm="send_string"/>
|
||||
<method signal_vm="close"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</class_struct>
|
||||
<object name="WebRTCDataChannel" cname="GstWebRTCDataChannel" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GObject">
|
||||
<class_struct cname="GstWebRTCDataChannelClass"/>
|
||||
<method name="GetType" cname="gst_webrtc_data_channel_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
|
@ -31737,40 +31705,6 @@
|
|||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
</method>
|
||||
<method name="OnBufferedAmountLow" cname="gst_webrtc_data_channel_on_buffered_amount_low">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
</method>
|
||||
<method name="OnClose" cname="gst_webrtc_data_channel_on_close">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
</method>
|
||||
<method name="OnError" cname="gst_webrtc_data_channel_on_error">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="error" type="GError*" owned="true">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="OnMessageData" cname="gst_webrtc_data_channel_on_message_data">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="GBytes*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="OnMessageString" cname="gst_webrtc_data_channel_on_message_string">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="str" type="const-gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="OnOpen" cname="gst_webrtc_data_channel_on_open">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
</method>
|
||||
<method name="SendData" cname="gst_webrtc_data_channel_send_data">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
|
@ -31796,66 +31730,46 @@
|
|||
<property name="Priority" cname="priority" type="GstWebRTCPriorityType" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<property name="Protocol" cname="protocol" type="gchar*" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<property name="ReadyState" cname="ready-state" type="GstWebRTCDataChannelState" readable="true" writeable="false" construct="false" construct-only="false"/>
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GObject*"/>
|
||||
<field cname="lock" access="public" writeable="false" readable="true" is_callback="false" name="Lock" type="GMutex*"/>
|
||||
<field cname="label" access="public" writeable="false" readable="true" is_callback="false" name="LabelField" type="gchar*"/>
|
||||
<field cname="ordered" access="public" writeable="false" readable="true" is_callback="false" name="OrderedField" type="gboolean"/>
|
||||
<field cname="max_packet_lifetime" access="public" writeable="false" readable="true" is_callback="false" name="MaxPacketLifetimeField" type="guint"/>
|
||||
<field cname="max_retransmits" access="public" writeable="false" readable="true" is_callback="false" name="MaxRetransmitsField" type="guint"/>
|
||||
<field cname="protocol" access="public" writeable="false" readable="true" is_callback="false" name="ProtocolField" type="gchar*"/>
|
||||
<field cname="negotiated" access="public" writeable="false" readable="true" is_callback="false" name="NegotiatedField" type="gboolean"/>
|
||||
<field cname="id" access="public" writeable="false" readable="true" is_callback="false" name="IdField" type="gint"/>
|
||||
<field cname="priority" access="public" writeable="false" readable="true" is_callback="false" name="PriorityField" type="GstWebRTCPriorityType"/>
|
||||
<field cname="ready_state" access="public" writeable="false" readable="true" is_callback="false" name="ReadyStateField" type="GstWebRTCDataChannelState"/>
|
||||
<field cname="buffered_amount" access="public" writeable="false" readable="true" is_callback="false" name="BufferedAmountField" type="guint64"/>
|
||||
<field cname="buffered_amount_low_threshold" access="public" writeable="false" readable="true" is_callback="false" name="BufferedAmountLowThresholdField" type="guint64"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
<signal name="CloseEvent" cname="close" when="last" field_name="close">
|
||||
<signal name="CloseEvent" cname="close" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnBufferedAmountLowEvent" cname="on-buffered-amount-low" when="last">
|
||||
<signal name="OnBufferedAmountLow" cname="on-buffered-amount-low" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnCloseEvent" cname="on-close" when="last">
|
||||
<signal name="OnClose" cname="on-close" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnErrorEvent" cname="on-error" when="last">
|
||||
<signal name="OnError" cname="on-error" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="error" type="GError*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnMessageDataEvent" cname="on-message-data" when="last">
|
||||
<signal name="OnMessageData" cname="on-message-data" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="GBytes*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnMessageStringEvent" cname="on-message-string" when="last">
|
||||
<signal name="OnMessageString" cname="on-message-string" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="const-gchar*"/>
|
||||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="OnOpenEvent" cname="on-open" when="last">
|
||||
<signal name="OnOpen" cname="on-open" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="SendDataEvent" cname="send-data" when="last" field_name="send_data">
|
||||
<signal name="SendDataEvent" cname="send-data" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="GBytes*">
|
||||
|
@ -31864,7 +31778,7 @@
|
|||
</parameters>
|
||||
<warning>Signal renamed because of existing method with same name</warning>
|
||||
</signal>
|
||||
<signal name="SendStringEvent" cname="send-string" when="last" field_name="send_string">
|
||||
<signal name="SendStringEvent" cname="send-string" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter allow-none="1" name="data" type="const-gchar*"/>
|
||||
|
@ -31873,55 +31787,13 @@
|
|||
</signal>
|
||||
</object>
|
||||
<object name="WebRTCICETransport" cname="GstWebRTCICETransport" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCICETransportClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<method vm="gather_candidates"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</class_struct>
|
||||
<class_struct cname="GstWebRTCICETransportClass"/>
|
||||
<method name="GetType" cname="gst_webrtc_ice_transport_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<virtual_method name="GatherCandidates" cname="gather_candidates">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters/>
|
||||
</virtual_method>
|
||||
<method name="ConnectionStateChange" cname="gst_webrtc_ice_transport_connection_state_change">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="new_state" type="GstWebRTCICEConnectionState"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GatheringStateChange" cname="gst_webrtc_ice_transport_gathering_state_change">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="new_state" type="GstWebRTCICEGatheringState"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="NewCandidate" cname="gst_webrtc_ice_transport_new_candidate">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter name="stream_id" type="guint"/>
|
||||
<parameter name="component" type="GstWebRTCICEComponent"/>
|
||||
<parameter name="attr" type="const-gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SelectedPairChange" cname="gst_webrtc_ice_transport_selected_pair_change">
|
||||
<return-type type="void"/>
|
||||
<parameters/>
|
||||
</method>
|
||||
<property name="Component" cname="component" type="GstWebRTCICEComponent" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<property name="GatheringState" cname="gathering-state" type="GstWebRTCICEGatheringState" readable="true" writeable="false" construct="false" construct-only="false"/>
|
||||
<property name="State" cname="state" type="GstWebRTCICEConnectionState" readable="true" writeable="false" construct="false" construct-only="false"/>
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
|
||||
<field cname="role" access="public" writeable="false" readable="true" is_callback="false" name="Role" type="GstWebRTCICERole"/>
|
||||
<field cname="component" access="public" writeable="false" readable="true" is_callback="false" name="ComponentField" type="GstWebRTCICEComponent"/>
|
||||
<field cname="state" access="public" writeable="false" readable="true" is_callback="false" name="StateField" type="GstWebRTCICEConnectionState"/>
|
||||
<field cname="gathering_state" access="public" writeable="false" readable="true" is_callback="false" name="GatheringStateField" type="GstWebRTCICEGatheringState"/>
|
||||
<field cname="src" access="public" writeable="false" readable="true" is_callback="false" name="Src" type="GstElement*"/>
|
||||
<field cname="sink" access="public" writeable="false" readable="true" is_callback="false" name="Sink" type="GstElement*"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
<signal name="OnNewCandidate" cname="on-new-candidate" when="last">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
|
@ -31933,32 +31805,18 @@
|
|||
<parameters/>
|
||||
</signal>
|
||||
</object>
|
||||
<object name="WebRTCRTPReceiver" cname="GstWebRTCRTPReceiver" opaque="false" hidden="false" parent="GstObject" version="1.16">
|
||||
<class_struct cname="GstWebRTCRTPReceiverClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</class_struct>
|
||||
<object name="WebRTCRTPReceiver" cname="GstWebRTCRTPReceiver" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCRTPReceiverClass"/>
|
||||
<method name="GetType" cname="gst_webrtc_rtp_receiver_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<constructor cname="gst_webrtc_rtp_receiver_new" disable_void_ctor=""/>
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
|
||||
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
<property name="Transport" cname="transport" type="GstWebRTCDTLSTransport*" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
|
||||
</object>
|
||||
<object name="WebRTCRTPSender" cname="GstWebRTCRTPSender" opaque="false" hidden="false" parent="GstObject" version="1.16">
|
||||
<class_struct cname="GstWebRTCRTPSenderClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</class_struct>
|
||||
<object name="WebRTCRTPSender" cname="GstWebRTCRTPSender" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCRTPSenderClass"/>
|
||||
<method name="GetType" cname="gst_webrtc_rtp_sender_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<constructor cname="gst_webrtc_rtp_sender_new" disable_void_ctor=""/>
|
||||
<method name="SetPriority" cname="gst_webrtc_rtp_sender_set_priority" version="1.20">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
|
@ -31966,39 +31824,21 @@
|
|||
</parameters>
|
||||
</method>
|
||||
<property name="Priority" cname="priority" type="GstWebRTCPriorityType" readable="true" writeable="true" construct="false" construct-only="false" version="1.20"/>
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
|
||||
<field cname="transport" access="public" writeable="false" readable="true" is_callback="false" name="Transport" type="GstWebRTCDTLSTransport*"/>
|
||||
<field cname="send_encodings" access="public" writeable="false" readable="true" is_callback="false" name="SendEncodings" type="GArray*" array="true" null_term_array="true"/>
|
||||
<field cname="priority" access="public" writeable="false" readable="true" is_callback="false" name="PriorityField" type="GstWebRTCPriorityType"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
<property name="Transport" cname="transport" type="GstWebRTCDTLSTransport*" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
|
||||
</object>
|
||||
<object name="WebRTCRTPTransceiver" cname="GstWebRTCRTPTransceiver" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstObject" version="1.16">
|
||||
<class_struct cname="GstWebRTCRTPTransceiverClass">
|
||||
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstObjectClass">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</class_struct>
|
||||
<object name="WebRTCRTPTransceiver" cname="GstWebRTCRTPTransceiver" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstObject">
|
||||
<class_struct cname="GstWebRTCRTPTransceiverClass"/>
|
||||
<method name="GetType" cname="gst_webrtc_rtp_transceiver_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
</method>
|
||||
<property name="CodecPreferences" cname="codec-preferences" type="GstCaps*" readable="true" writeable="true" construct="false" construct-only="false" version="1.20"/>
|
||||
<property name="CurrentDirection" cname="current-direction" type="GstWebRTCRTPTransceiverDirection" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
|
||||
<property name="Direction" cname="direction" type="GstWebRTCRTPTransceiverDirection" readable="true" writeable="true" construct="false" construct-only="false" version="1.18"/>
|
||||
<property name="Kind" cname="kind" type="GstWebRTCKind" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
|
||||
<property name="Mid" cname="mid" type="gchar*" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
|
||||
<property name="Mlineindex" cname="mlineindex" type="guint" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<property name="Receiver" cname="receiver" type="GstWebRTCRTPReceiver*" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<property name="Sender" cname="sender" type="GstWebRTCRTPSender*" readable="true" writeable="true" construct="false" construct-only="true"/>
|
||||
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstObject*"/>
|
||||
<field cname="mline" access="public" writeable="false" readable="true" is_callback="false" name="Mline" type="guint"/>
|
||||
<field cname="mid" access="public" writeable="false" readable="true" is_callback="false" name="Mid" type="gchar*"/>
|
||||
<field cname="stopped" access="public" writeable="false" readable="true" is_callback="false" name="Stopped" type="gboolean"/>
|
||||
<field cname="sender" access="public" writeable="false" readable="true" is_callback="false" name="SenderField" type="GstWebRTCRTPSender*"/>
|
||||
<field cname="receiver" access="public" writeable="false" readable="true" is_callback="false" name="ReceiverField" type="GstWebRTCRTPReceiver*"/>
|
||||
<field cname="direction" access="public" writeable="false" readable="true" is_callback="false" name="DirectionField" type="GstWebRTCRTPTransceiverDirection"/>
|
||||
<field cname="current_direction" access="public" writeable="false" readable="true" is_callback="false" name="CurrentDirection" type="GstWebRTCRTPTransceiverDirection"/>
|
||||
<field cname="codec_preferences" access="public" writeable="false" readable="true" is_callback="false" name="CodecPreferences" type="GstCaps*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</field>
|
||||
<field cname="kind" access="public" writeable="false" readable="true" is_callback="false" name="Kind" type="GstWebRTCKind"/>
|
||||
<field cname="_padding" access="public" writeable="false" readable="true" is_callback="false" name="_Padding" type="gpointer" array="true" array_len="4"/>
|
||||
</object>
|
||||
<boxed name="WebRTCSessionDescription" cname="GstWebRTCSessionDescription" opaque="false" hidden="false">
|
||||
<method name="GetType" cname="gst_webrtc_session_description_get_type" shared="true">
|
||||
|
|
Loading…
Reference in a new issue