剛嘗試了怎麼樣在區域網路中使用 WebRTC 來進行 VOIP,意外發現其實滿簡單的。分享一下我的步驟
P.S 這是提供給外部網路不通的環境下,如果外部網路通暢,那麼可以直接用現有服務,如 https://talky.io/ 即可
git clone https://github.com/andyet/signalmaster
import SceneKit | |
import XCPlayground | |
let width:CGFloat = 400 | |
let height:CGFloat = 400 | |
var view = SCNView(frame: CGRect( | |
x: 0, | |
y: 0, | |
width: width, |
剛嘗試了怎麼樣在區域網路中使用 WebRTC 來進行 VOIP,意外發現其實滿簡單的。分享一下我的步驟
P.S 這是提供給外部網路不通的環境下,如果外部網路通暢,那麼可以直接用現有服務,如 https://talky.io/ 即可
git clone https://github.com/andyet/signalmaster
// TESTED ON nightly-build ver 0.8 (of_v20130813) in Visual Studio 2012 - Win64 | |
// MAKE APP ALWAYS ON TOP | |
HWND AppWindow = GetActiveWindow(); | |
SetWindowPos(AppWindow, HWND_TOPMOST, NULL, NULL, NULL, NULL, SWP_NOMOVE | SWP_NOSIZE); | |
// DISABLE FUNCTION DESCRIBED ABOVE | |
HWND AppWindow = GetActiveWindow(); |
var hue = require("node-hue-api"); | |
var HueApi = require("node-hue-api").HueApi; | |
var gpio = require("gpio"); | |
var nodemailer = require("nodemailer"); | |
/* ************* */ | |
/* CONF */ | |
/* ************* */ | |
var usernameHue = ''; // md5sum |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>distccd-rpi</string> | |
<key>Program</key> | |
<string>/Users/YOUR_USER_NAME/Scripts/launchd-distccd.sh</string> | |
<key>RunAtLoad</key> | |
<true/> |
I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!
Install FFmpeg
Install ImageMagick
var serialport = require('node-serialport') | |
var sp = new serialport.SerialPort("/dev/ttyO3", { | |
parser: serialport.parsers.raw, | |
baud: 9600 | |
}) | |
sp.on('data', function(chunk) { | |
console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
}) |
// Minimal audio streaming using OpenSL. | |
// | |
// Loosely based on the Android NDK sample code. | |
// Hardcoded to 44.1kHz stereo 16-bit audio, because as far as I'm concerned, | |
// that's the only format that makes any sense. | |
#include <assert.h> | |
#include <string.h> | |
// for native audio |
# Timecode burn with ffmpeg | |
# ffmpeg must be configured with --enable-libfreetype | |
# box=1 - tells ffmpeg to draw a box around the text | |
# boxcolor - format is 0xRRGGBB[AA] | |
ffmpeg -i video.mov -vcodec libx264 -cmp 22 -vf "drawtext=fontfile=DroidSansMono.ttf: timecode='09\:57\:00\:00': r=23.976: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000099" -y output.mov |