Skip to content

Instantly share code, notes, and snippets.

{
"session_id": 3039233206,
"session_last_activity": 10261417481,
"session_transport": "janus.transport.websockets",
"handle_id": 3987567556,
"created": 10201432676,
"current_time": 10318787528,
"plugin": "janus.plugin.streaming",
"plugin_specific": {
"state": "watching",
@dotannn
dotannn / monitor_log_2.json
Last active December 10, 2015 13:03
Janus Admin API monitor - ICE Failed
{
"session_id": 3039233206,
"session_last_activity": 10261417481,
"session_transport": "janus.transport.websockets",
"handle_id": 3987567556,
"created": 10201432676,
"current_time": 10318787528,
"plugin": "janus.plugin.streaming",
"plugin_specific": {
"state": "watching",
{
"session_id": 3823901730,
"session_last_activity": 7602360063,
"session_transport": "janus.transport.websockets",
"handle_id": 920970154,
"created": 7589729868,
"current_time": 7614318105,
"plugin": "janus.plugin.streaming",
"plugin_specific": {
"state": "watching",
@dotannn
dotannn / SDP
Last active December 10, 2015 13:10
Local network logs - successfull connection
PeerConnection ID: 1449654731284000 (id=46 url=http://website.com/p/D3aiHxr7pndBCmsjd)
ICE Stats
Local Candidate Remote Candidate ICE State Priority Nominated Selected
10.0.0.8:51408/udp(host) 10.0.0.1:41935/udp(host) succeeded 8646913483540791000 true true
10.0.0.8:51408/udp(host) 79.177.4.228:41935/udp(serverreflexive) failed 7205760503270605000 true
79.177.4.228:51408/udp(serverreflexive) 79.177.4.228:41935/udp(serverreflexive) succeeded 7205760502381560000 true
SDP
Local SDP
v=0
@dotannn
dotannn / janus-client-config.js
Created December 10, 2015 13:14
Janus Configs (same in both connections)
var iceServers = [
{url:'stun:stun.services.mozilla.com:3478'}];
janus = new Janus(
{
server: server,
iceServers:iceServers,
success: function() {
@dotannn
dotannn / SDP.sdp
Created December 10, 2015 13:17
Internet connection logs - unsuccessful !
PeerConnection ID: 1449653307427000 (id=33 url=http://www.XXX.com/p/jgjBcHcj8cMN5p2un)
ICE Stats
Local Candidate Remote Candidate ICE State Priority Nominated Selected
10.0.0.8:52346/udp(host) 10.0.0.1:35514/udp(host) failed 8646913483524145000
10.0.0.8:52346/udp(host) 79.176.199.9:35514/udp(serverreflexive) failed 7205760503253959000
79.177.4.228:52346/udp(serverreflexive)
SDP
Local SDP
v=0
@dotannn
dotannn / draw_sphere.py
Created November 21, 2016 16:01
python sphere
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
u = np.linspace(0, 2 * np.pi, 100)
v = np.linspace(0, np.pi, 100)