WebRTCRTPTransceiver Parameter on Emit()
I'm using webrtcbin, and I need to use the signal "add-transceiver". This signal needs a WebRTCRTPTransceiverDirection parameter, which is an enum. The following lines throw an exception:
Caps capsTransceiverVideo = Caps.FromString("application/x-rtp, media=video, encoding-name=(string)H264, clock-rate=90000, payload=97"); WebRTCRTPTransceiverDirection direction = WebRTCRTPTransceiverDirection.Sendrecv; var videoTransceiver = webrtcbin.Emit("add-transceiver", direction, capsTransceiverVideo);
System.ApplicationException: 'Invalid parameter type: expected , got Gst.WebRTC.WebRTCRTPTransceiverDirection'
After some research, the WebRTCRTPTransceiverDirection GType is not registered. Is it something that bindinator would generate automatically?
I have added the line in Application constructor, and it's ok.
Is there a preference to add it to Gst.Application constructor or in GtkSharp.ObjectManager.Initialize?