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
//from: http://stackoverflow.com/questions/934012/get-image-data-in-javascript | |
function getBase64Image(img) { | |
// Create an empty canvas element | |
var canvas = document.createElement("canvas"); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
// Copy the image contents to the canvas | |
var ctx = canvas.getContext("2d"); |
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
# begin build properties | |
# autogenerated by buildinfo.sh | |
ro.build.id=JSS15J | |
ro.build.display.id=JSS15J.I9505XXUEML1 | |
ro.build.version.incremental=I9505XXUEML1 | |
ro.build.version.sdk=18 | |
ro.build.version.codename=REL | |
ro.build.version.release=4.3 | |
ro.build.date=Tue Dec 10 14:28:08 KST 2013 | |
ro.build.date.utc=1386653288 |
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
/* Code snippets from Unite 2015 - A coder's guide to spline-based procedural geometry */ | |
/* https://www.youtube.com/watch?v=o9RK6O2kOKo */ | |
// Optimized GetPoint | |
Vector3 GetPoint( Vector3[] pts, float t ) { | |
float omt = 1f-t; | |
float omt2 = omt * omt; | |
float t2 = t * t; | |
return pts[0] * ( omt2 * omt ) + | |
pts[1] * ( 3f * omt2 * t ) + |
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
LibJitsi.start(); | |
MediaService mediaService = LibJitsi.getMediaService(); | |
//I assume that I have a working video and audio MediaDevice | |
MediaDevice randomVideoDevice = createVideoDevice(); | |
MediaDevice randomAudioDevice = createAudioDevice(); | |
//I create the MediaFormat for each stream | |
MediaFormat videoFormat |
NewerOlder