This file contains 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
import time | |
import os | |
import sys | |
import getopt | |
import io | |
import picamera | |
import RPi.GPIO as GPIO | |
import datetime | |
from PIL import Image | |
import threading |
This file contains 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
var dataChannelSupport = false; | |
//used to have only one interface | |
window.RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection; | |
window.RTCSessionDescription = window.RTCSessionDescription || window.webkitRTCSessionDescription || window.mozRTCSessionDescription; | |
window.RTCIceCandidate = window.RTCIceCandidate || window.webkitRTCIceCandidate || window.mozRTCIceCandidate; | |
(function(){ | |
if(!!window.webkitRTCPeerConnection){ //must be chrome | |
var testPC = new window.RTCPeerConnection({iceServers: [{url:"stun:stunserver.org:3478"}]},{optional: [{RtpDataChannels: true}]}), | |
dc; |