Skip to content

Instantly share code, notes, and snippets.

View MCDELTAT's full-sized avatar

Aaron Chamberlain MCDELTAT

View GitHub Profile
@MCDELTAT
MCDELTAT / StreamPlayer.jsx
Created August 10, 2019 15:12
Two React compontents for playing HLS streams or RTMP
import React from 'react';
import * as Redux from 'react-redux';
import VideojsPlayer from 'VideojsPlayer';
import videojs from 'video.js';
import 'videojs-contrib-hls';
require('!style-loader!css-loader!video.js/dist/video-js.css');
var StreamPlayer = React.createClass({
// If the props change (via state), then change the player source
@MCDELTAT
MCDELTAT / index.html
Created November 2, 2017 03:10
LTT_JS_MinMax
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>LLT MIN Max</title>
</head>
<body>
<script src="./min-max.js" type="text/javascript"></script>
<script type="text/javascript">
const numbers = [-1, 14, 5, 3, 9] // min = -1, max = 14
@MCDELTAT
MCDELTAT / StreamPlayer.jsx
Created April 7, 2017 02:31
videojs-HLS error code. No compatible source was found for this media.
import React from 'react';
import * as Redux from 'react-redux';
import VideojsPlayer from 'VideojsPlayer';
require('!style-loader!css-loader!video.js/dist/video-js.css');
var StreamPlayer = React.createClass({
render() {
const videoJSOptions = {
autoplay: true,
@MCDELTAT
MCDELTAT / oscTest.py
Created March 27, 2014 16:09
touchOSC + pyOSC
"""OSC Test Script
Written by Aaron Chamberlain Dec. 2013
The purpose of this script is to make a very simple communication structure to the popular
application touchOSC. This is achieved through the pyOSC library. However, since the pyOSC
documentation is scarce and only one large example is included, I am going to strip down
the basic structures of that file to implement a very simple bi-directional communication.
"""
#!/usr/bin/env python