From 6410aa28324a925902db71ebbd815dab362026da Mon Sep 17 00:00:00 2001 From: Benjamin Baudel Date: Thu, 16 Nov 2017 11:14:40 +0100 Subject: [PATCH 1/7] Add HLS sample --- projects/hls/config.json | 147 +++++++++++++++++++++++++++++++++++++++ projects/hls/index.html | 62 +++++++++++++++++ 2 files changed, 209 insertions(+) create mode 100644 projects/hls/config.json create mode 100644 projects/hls/index.html diff --git a/projects/hls/config.json b/projects/hls/config.json new file mode 100644 index 0000000..80702b4 --- /dev/null +++ b/projects/hls/config.json @@ -0,0 +1,147 @@ +{ + "story": + { + "uid": "mpegdash-story", + "name": "MPEG-DASH Video Story", + "slug": "mpegdash-story", + "description": "This is sample of MPEG-DASH video display", + "default": "scene-0", + + "scenes": + [ + { + "uid": "scene-0", + "name": "First scene", + "slug": "first-scene", + "description": "This is the first scene", + + "media": + { + "uid": "video-0", + "type": "video", + + "source": + { + "format": "equi", + "streaming": "hls", + "url": "https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8" + }, + + "options": + { + "autoPlay": true, + "loop": true, + "volume": 0.5 + } + }, + + "camera": + { + "fov": + { + "default": 90 + } + } + }, + + { + "uid": "scene-1", + "name": "Second scene", + "slug": "second-scene", + "description": "This is the second scene", + "background": "#111", + + "media": + { + "uid": "video-1", + "type": "video", + + "source": + { + "format": "flat", + "streaming": "hls", + "url": "http://www.streambox.fr/playlists/x31jrg1/x31jrg1.m3u8" + }, + + "options": + { + "autoPlay": true, + "loop": true, + "volume": 0.5 + } + }, + + "camera": + { + "fov": + { + "default": 180 + } + }, + + "view": + { + "type": "flat" + } + } + ] + }, + + "plugins": + { + "prefix": "../../plugins/", + + "engines": + [ + { + "uid": "org.forgejs.previousnextbuttons", + "url": "PreviousNextButtons/" + }, + + { + "uid": "org.forgejs.videocors", + "url": "VideoCORS/" + }, + + { + "uid": "org.forgejs.mobilevideoplay", + "url": "MobileVideoPlay/" + }, + + { + "uid": "org.forgejs.gyroscopebutton", + "url": "GyroscopeButton/" + } + ], + + "instances": + [ + { + "uid": "previousnextbuttons", + "engine": "org.forgejs.previousnextbuttons", + "index": 10 + }, + + { + "uid": "videocors", + "engine": "org.forgejs.videocors" + }, + + { + "uid": "mobilevideoplay", + "engine": "org.forgejs.mobilevideoplay" + }, + + { + "uid": "gyrobutton", + "engine": "org.forgejs.gyroscopebutton", + + "options": + { + "bottom": 10, + "left": 10 + } + } + ] + } +} \ No newline at end of file diff --git a/projects/hls/index.html b/projects/hls/index.html new file mode 100644 index 0000000..86e1592 --- /dev/null +++ b/projects/hls/index.html @@ -0,0 +1,62 @@ + + + + + + + + + + + ForgeJS sample - HLS videos + + + + + + +
+ + + + + + + + + + + + + + + + + + \ No newline at end of file From d1061a3be5b883c354909aff16b8a1d23a918e40 Mon Sep 17 00:00:00 2001 From: Benjamin Baudel Date: Thu, 16 Nov 2017 13:40:53 +0100 Subject: [PATCH 2/7] Remove unused code --- projects/hls/index.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/hls/index.html b/projects/hls/index.html index 86e1592..1698391 100644 --- a/projects/hls/index.html +++ b/projects/hls/index.html @@ -36,11 +36,6 @@ - @@ -49,7 +44,7 @@ - + @@ -44,7 +44,7 @@ - + + @@ -50,7 +50,7 @@ - +