Jetson Inference
DNN Vision Library
|
Static class for common WebRTC utility functions used with GStreamer. More...
#include <gstWebRTC.h>
Classes | |
struct | PeerContext |
GStreamer-specific context for each WebRTCPeer. More... | |
Static Public Member Functions | |
static void | onNegotiationNeeded (GstElement *webrtcbin, void *user_data) |
Callback for handling webrtcbin "on-negotation-needed" signal. More... | |
static void | onCreateOffer (GstPromise *promise, void *user_data) |
Callback for handling webrtcbin "create-offer" signal. More... | |
static void | onIceCandidate (GstElement *webrtcbin, uint32_t mline_index, char *candidate, void *user_data) |
Callback for handling webrtcbin "on-ice-candidate" signal. More... | |
static void | onWebsocketMessage (WebRTCPeer *peer, const char *message, size_t message_size, void *user_data) |
Handle incoming websocket messages from the client. More... | |
Static class for common WebRTC utility functions used with GStreamer.
This gets used internally by gstEncoder/gstDecoder for handling WebRTC streams.
|
static |
Callback for handling webrtcbin "create-offer" signal.
This sends an SDP offer to the client.
|
static |
Callback for handling webrtcbin "on-ice-candidate" signal.
This send an ICE candidate to the client.
|
static |
Callback for handling webrtcbin "on-negotation-needed" signal.
It's expected that user_data is set to a WebRTCPeer instance.
|
static |
Handle incoming websocket messages from the client.
This only handles SDP/ICE messages - it's expected that the caller will handle new peer connecting/closing messages.