Skip to content

Instantly share code, notes, and snippets.

View mohanjith's full-sized avatar

Mohanjith Sudirikku Hannadige mohanjith

View GitHub Profile
<video-js id="dalsbruk-vierassatama-live" class="video-js vjs-default-skin vjs-16-9 vjs-big-play-centered" controls poster="https://stream.pilvimies.fi/dalsbruk/vierassatama/index.jpg?v1" width="555" >
<source src="https://stream.pilvimies.fi/dalsbruk/vierassatama/index.m3u8" type="application/x-mpegURL" >
<source src="https://stream.pilvimies.fi/dalsbruk/vierassatama/index.mpd" type="application/dash+xml" >
</video-js>
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.5.4/alt/video.core.min.js"></script>
<script src="https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js"></script>
<script>
var _pmvs_linkElement = document.createElement("link");
_pmvs_linkElement.rel = "stylesheet";
_pmvs_linkElement.href = "https://cdnjs.cloudflare.com/ajax/libs/video.js/7.5.4/video-js.css";
@mohanjith
mohanjith / gpio.py
Created February 19, 2015 10:48
Python script for Raspberry Pi Bv2 with Adafruit 2.8" TFT resistive touch screen that will play/pause playback, play Yle X3M or Radio Nova with tactile buttons using GPIO
import RPi.GPIO as GPIO
from mpd import MPDClient
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.setup(27, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.setup(22, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_UP)