From 91b7963725f0a6b3e1d34e92aa25b5bc5fdf1eb9 Mon Sep 17 00:00:00 2001 From: Kevin Staunton-Lambert Date: Tue, 15 Jun 2021 01:26:29 +1000 Subject: [PATCH] fix: separate 180_LR/180_TB, add 180_MONO, fix cropping in 180 views. --- README.md | 10 ++++++++++ examples/180-mono.html | 28 ++++++++++++++++++++++++++++ index.html | 1 + samples/video_180_lefteyeonly.mp4 | Bin 0 -> 4690346 bytes src/plugin.js | 14 ++++++++------ src/utils.js | 4 +++- 6 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 examples/180-mono.html create mode 100644 samples/video_180_lefteyeonly.mp4 diff --git a/README.md b/README.md index 60ba9845..ec5ee8e1 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,8 @@ Maintenance Status: Stable - [`motionControls`](#motioncontrols) - [`projection`](#projection) - [`'180'`](#180) + - [`'180_lr'`](#180_lr) + - [`'180_mono'`](#180_mono) - [`'360'`, `'Sphere'`, or `'equirectangular'`](#360-sphere-or-equirectangular) - [`'Cube'` or `'360_CUBE'`](#cube-or-360_cube) - [`'NONE'`](#none) @@ -207,6 +209,14 @@ Can be any of the following: #### `'180'` The video is half sphere and the user should not be able to look behind themselves +#### `'180_lr'` +Used for side-by-side 180 videos +The video is half sphere and the user should not be able to look behind themselves + +#### `'180_mono'` +Used for monoscopic 180 videos +The video is half sphere and the user should not be able to look behind themselves + #### `'360'`, `'Sphere'`, or `'equirectangular'` The video is a sphere diff --git a/examples/180-mono.html b/examples/180-mono.html new file mode 100644 index 00000000..10980907 --- /dev/null +++ b/examples/180-mono.html @@ -0,0 +1,28 @@ + + + + + videojs-vr Demo + + + + + + + + + + + diff --git a/index.html b/index.html index aee736da..b04c8f08 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@