Skip to content

Instantly share code, notes, and snippets.

View mondain's full-sized avatar
🏠
Working from home

Paul Gregoire mondain

🏠
Working from home
View GitHub Profile
@mondain
mondain / gist:27cd5c9ea5728eb148fc87075582132c
Created July 8, 2017 02:54
WebRTC Firefox 54 SDP offer
v=0
o=mozilla...THIS_IS_SDPARTA-54.0 1039943552010360183 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 7D:D6:A1:06:55:5B:A4:51:D7:25:1D:82:0E:93:8D:50:3D:7E:65:32:EF:8C:B2:46:71:36:E0:30:4A:BD:C6:3B
a=group:BUNDLE sdparta_0 sdparta_1
a=ice-options:trickle
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
@mondain
mondain / gist:95a6af74a2b2a85bfcdf40cdfd4e4bd7
Created July 8, 2017 02:54
WebRTC Apple Safari (preview) SDP offer
v=0
o=- 9045225780225639943 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio video
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
b=AS:50
a=rtcp:9 IN IP4 0.0.0.0
@mondain
mondain / gist:3e3437f244970bfb8eee38ec2fe71ef0
Created July 8, 2017 02:53
WebRTC Microsoft Edge SDP offer
v=0
o=thisisadapterortc 4297110096882024 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE a06j75e7a6 jqcf8mqvs4
a=ice-options:trickle
m=audio 9 UDP/TLS/RTP/SAVPF 104 102 9 0 8 103 97 13 118 101
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
@mondain
mondain / gist:983892136d64975c9871c6ecedda7a29
Created July 8, 2017 02:45
ConnectivityCheckServer - Failed to send BINDING-RESPONSE(0x101)
UA: Edge on Win
2017-07-07 19:02:19,248 [NioProcessor-18] DEBUG c.r.webrtc.stream.RTCSourceStream - Offer: v=0
o=thisisadapterortc 3579037566002956 2 IN IP4 127.0.0.1
s=-
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE 9wj9mdiaks 0k3vfndwv6
a=ice-options:trickle
m=audio 9 UDP/TLS/RTP/SAVPF 104 102 9 0 8 103 97 13 118 101
@mondain
mondain / gist:acbec32fb1d120b7da1b393bfca8180b
Last active May 12, 2017 14:46
ffmpeg and the libopus encoder
av_register_all(); // Initialize libavformat and register all the muxers, demuxers and protocols (but not the codecs)
avcodec_register_all(); // Register the codec and initialize libavcodec
SwrContext *swr;
AVCodec *codec;
AVCodecContext *context;
// get the libopus codec encoder
codec = avcodec_find_encoder_by_name("libopus");
if (codec) {
swr = swr_alloc_set_opts(NULL, // we're allocating a new context
@mondain
mondain / gist:c45741c79026b0623f12fffe9b7f7c8b
Created October 5, 2016 13:18
Working with exiting Maven Projects in Eclipse
Here's what I do..
1. Create my new branch
2. Pull the code
3. Execute `mvn eclipse:eclipse` in each project subdirectory
4. Import into Eclipse as generic existing (not Maven)
5. Click on each project and select `Configure` then `Convert to Maven project`
6. Click on each project and select `Properties` then `Java Build Path` then `Libraries`, remove direct library links leaving `Maven Dependencies`, `JRE System...`, `Junit 4` entries
@mondain
mondain / REDSUPPORT-352.md
Last active August 30, 2016 19:04
Info for REDSUPPORT-352 ticket

Properties / statistics requested:

  • stream start time (unix timestamp)
  • stream end time (unix timestamp)
  • broadcaster user agent
  • video codec
  • audio codec
  • video size (width and height)
  • FPS
  • total bitrate (bits per second)
@mondain
mondain / publisher.mxml
Created July 11, 2016 15:26
Publisher flex mxml to show sending of onStreamSend data
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="320" height="400" minWidth="220" minHeight="176"
currentState="start" creationComplete="init()">
<fx:Script><![CDATA[
import flash.events.*;
import flash.media.*;
@mondain
mondain / subscriber.mxml
Created July 11, 2016 15:23
Subscriber flex mxml to show acceptance of onStreamSend data
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="220" height="176" minWidth="220" minHeight="176"
currentState="start" creationComplete="init()">
<fx:Script><![CDATA[
import flash.events.*;
import flash.media.*;
@mondain
mondain / Onename
Created June 9, 2016 11:39
Onename
Verifying that +mondain is my blockchain ID. https://onename.com/mondain