This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"time" | |
) | |
func main() { | |
data := make([]byte, 2048) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <glib.h> | |
#include <stdio.h> | |
#include <gnu/libc-version.h> | |
typedef struct { | |
GSource parent; | |
} custom_t; | |
static gboolean custom_prepare(GSource *source, gint *timeout) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById("btn").onclick = async () => { | |
await run(); | |
} | |
async function run() { | |
let stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: false }); | |
/* sender */ | |
let sender = new RTCPeerConnection(); | |
sender.onicecandidate = e => receiver.addIceCandidate(e.candidate); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
gst "github.com/spreadspace/go-gstreamer" | |
"github.com/ziutek/glib" | |
) |