This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |