Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial commit

  • Loading branch information...
commit db3c3947283d22554e00008e130ba38346dae28f 0 parents
@docteurklein authored
2  .gitignore
@@ -0,0 +1,2 @@
+vlm.conf
+/data/*
3  .gitmodules
@@ -0,0 +1,3 @@
+[submodule "vendor/video-js"]
+ path = vendor/video-js
+ url = https://github.com/zencoder/video-js.git
22 README.md
@@ -0,0 +1,22 @@
+## striim
+
+A video/audio on demand setup using vlc and html5 video.
+
+### install
+
+git clone https://github.com/docteurklein/striim.git
+cd striim
+git submodule update --init
+
+### use
+
+Setup a vod file based on vlm configuration ( vlm.conf.dist is a simple example).
+
+Launch vlc using:
+
+ vlc --ttl 12 -vvv --color -I http --http-host localhost:8081 --vlm-conf vlm.conf
+
+
+Open index.html in your browser.
+
+Enjoy.
19 index.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" href="vendor/video-js/video-js.css" type="text/css" media="screen" />
+ </head>
+ <body>
+ <div class="video-js-box">
+ <video class="video-js" id="video-js" width="640" height="264" controls preload>
+ <source src="http://localhost:8090/stream.ogg" type="video/ogg; codecs='theora, vorbis'" />
+ </video>
+ <p class="vjs-no-video"><strong>Download Video:</strong>
+ <a href="http://localhost:8090/stream.ogg">Ogg</a><br>
+ <a href="http://videojs.com">HTML5 Video Player</a> by VideoJS
+ </p>
+ </div>
+ <script src="vendor/video-js/video.js" type="text/javascript"></script>
+ <script src="vod.js" type="text/javascript"></script>
+ </body>
+</html>
1  vendor/video-js
@@ -0,0 +1 @@
+Subproject commit 3fc71d098db0b20b6ad299fb2851706a85096cd9
16 vlm.conf.dist
@@ -0,0 +1,16 @@
+###############
+new VFV vod
+#setup VFV output #transcode{vcodec=vorb,venc=theora,fps=10,vb=500,width=320,heigth=240}:std{access=http,mux=ogg,dst=0.0.0.0:8090/stream.ogg} # low quality
+setup VFV output #transcode{vcodec=vorb,venc=theora,vb=500}:std{access=http,mux=ogg,dst=0.0.0.0:8090/stream.ogg}
+
+setup VFV input /path/to/file
+#setup VFV enabled
+
+###############
+new screen vod
+setup screen output #transcode{vcodec=vorb,venc=theora,fps=10,vb=500,width=320,heigth=240}:std{access=http,mux=ogg,dst=0.0.0.0:8090/stream.ogg}
+
+setup screen input screen://
+#setup screen enabled
+
+###############
32 vod.js
@@ -0,0 +1,32 @@
+(function(undefined) {
+ var call = function(action) {
+ console.log(action);
+ var i = document.createElement('img');
+ i.src = 'http://'+window.location.hostname+':8081/requests/vlm_cmd.xml?command='+encodeURIComponent(action);
+ //console.log(i.src);
+ };
+
+ document.addEventListener('DOMContentLoaded', function () {
+ player = document.getElementById('video-js');
+ player.addEventListener('loadstart', function() {
+ //call('setup VFV disabled');
+ //call('setup VFV enabled');
+ });
+
+ player.addEventListener('play', function() {
+ //call('setup VFV enabled');
+ call('control VFV play');
+ //player.getElementsByTagName('source')[0].src = player.getElementsByTagName('source')[0].src;
+ //player.load();
+ });
+
+ player.addEventListener('pause', function() {
+ call('control VFV pause');
+ });
+
+ player.addEventListener('seeking', function(event) {
+ console.log(arguments);
+ call('control VFV seek + 3s');
+ });
+ });
+}());
Please sign in to comment.
Something went wrong with that request. Please try again.