#define STR(x) #x
#define RTP_CAPS_OPUS(x) "application/x-rtp,media=audio,encoding-name=OPUS,payload=" STR(x)
-#define RTP_CAPS_VP8(x) "application/x-rtp,media=video,encoding-name=VP8,payload=" STR(x)
static gboolean
start_pipeline (void)
{
int i;
gboolean ret;
- GstPlugin *plugin;
GstRegistry *registry;
const gchar *needed[] = { "opus", "nice", "webrtc", "dtls", "srtp",
"rtpmanager", "audiotestsrc", NULL
registry = gst_registry_get ();
ret = TRUE;
for (i = 0; i < g_strv_length ((gchar **) needed); i++) {
+ GstPlugin *plugin;
plugin = gst_registry_find_plugin (registry, needed[i]);
if (!plugin) {
g_print ("Required gstreamer plugin '%s' not found\n", needed[i]);
#include <json-glib/json-glib.h>
#include <string.h>
-
-
#define RTP_PAYLOAD_TYPE "96"
#define SOUP_HTTP_PORT 57778
#define STUN_SERVER "stun.l.google.com:19302"
-
-
typedef struct _ReceiverEntry ReceiverEntry;
ReceiverEntry *create_receiver_entry (SoupWebsocketConnection * connection);
gboolean exit_sighandler (gpointer user_data);
-
-
-
struct _ReceiverEntry
{
SoupWebsocketConnection *connection;
GstElement *webrtcbin;
};
-
-
const gchar *html_source = " \n \
<html> \n \
<head> \n \
</html> \n \
";
-
-
-
ReceiverEntry *
create_receiver_entry (SoupWebsocketConnection * connection)
{