Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Steve Seguin steveseguin

🎯
Focusing
  • be awesome corp
  • Toronto, Canada
View GitHub Profile
View 69_line_p2p_data_transfer_sample.js
<html>
<body>
<div id="results" style="overflow:scroll;max-height:300px;">
starting...
</div>
<script> // https://jsfiddle.net/steveseguin/0t3ayvk8/31/
var connectionID = Math.random()*100000001; // we need to create a stream ID; it needs to be secure/unique, up to ~50 chars.
function RecvDataWindow(){
var iframe = document.createElement("iframe");
iframe.src = "https://vdo.ninja/beta/?view="+connectionID+"&cleanoutput"; // See the info at docs.vdo.ninja for options
@steveseguin
steveseguin / janusvideoroom.py
Created Aug 7, 2021 — forked from saket424/janusvideoroom.py
to publish to videoroom 1234 as user gstwebrtcdemo use 'python3 janusvideoroom.py --server wss://janus.example.com:8989 gstwebrtcdemo'
View janusvideoroom.py
import random
import ssl
import websockets
import asyncio
import os
import sys
import json
import argparse
import string
from websockets.exceptions import ConnectionClosed
@steveseguin
steveseguin / Dockerfile
Created Aug 7, 2021 — forked from tobiasfriden/Dockerfile
Gstreamer WebRTC python demo working Dockerfile
View Dockerfile
FROM maxmcd/gstreamer:1.14-buster
WORKDIR /usr/src
RUN apt-get update && apt-get install -y python3-pip \
pkg-config \
libcairo2-dev \
gcc \
python3-dev \
libgirepository1.0-dev \
@steveseguin
steveseguin / emojis.json
Created Jun 6, 2021 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
View emojis.json
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "&#128104;&zwj;&#128105;&z
View mini.css
.tile {
max-width:200px !important;
}
video {
max-width:200px !important;
}
View discordbot.json
{
"ping":"pong",
"jcalado":"jcalado is awesome",
"python":"python > node"
}
View rotate.css
body {
margin: 0;
}
video.tile {
position: absolute;
transform: rotate(90deg);
transform-origin: bottom left;
width: 100vh;
View CONTRIBUTING.md

You hereby grant Steve Seguin (Steve) a perpetual, worldwide, royalty-free, irrevocable, non-exclusive, and transferable license to use, reproduce, prepare derivative works of, publicly display, publicly perform, distribute the submissions, and to sublicense such rights to others. The rights granted may be exercised in any form or format, and Steve may distribute and sublicense to others on any licensing terms, including without limitation: (a) open source licenses like the GNU General Public License (GPL), or the Berkeley Software Distribution license (BSD); or (b) binary, proprietary, or commercial licenses.

You hereby represent that you are the sole and original author of all Submissions and that, to the best of your knowledge, the submissions do not infringe upon the rights of any third party.

You implicitly agree to these terms with your continued submission.

@steveseguin
steveseguin / CONTRIBUTING.md
Last active Jun 30, 2021
Contributions to projects
View CONTRIBUTING.md

VDO.Ninja Contributor License Agreement (CLA)

To ensure the long-term viability of the open-source VDO.Ninja project, and for the protection of its creator and its users, we request that contributors to the project first agree to some basic terms. The terms when accepted applies to all of your past, present and future contributions.

Contribution Policy

Contributions that only take 20 lines of code or less will have its Intellectual Property implicitly transferred to Stephen Seguin, the creator of VDO.Ninja. You agree with this rule by pushing your code or works to github, by sending the code or works to one of VDO.Ninja's core developers, or by distributing your code or works in any other way.

For all code contributions that take more than 20 lines, you are invited to digitally sign the CLA with the provided CLA Assissant service. You may also print, sign, scan, and then email the CLA to steve@seguin.email.

@steveseguin
steveseguin / getUserMedia.js
Last active Apr 21, 2020
Camera getUserMedia /w Mobile Support
View getUserMedia.js
function grabVideo(quality=0, audioEnable=false){
if( activatedPreview == true){log("activeated preview return");return;}
activatedPreview = true;
log(quality);
log("trying with quality:");
var audioSelect = document.querySelector('select#audioSource');
var videoSelect = document.querySelector('select#videoSource');
var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);