Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Spatial audio rendering via Omnitone #181

Merged
merged 20 commits into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
55a07fc
fix: VR switches to low res. after 1 chunk on HLS
gjanblaszczyk Jun 18, 2019
c56e24c
Adds support for Spatial audio via Omnitone.
gjanblaszczyk Jul 22, 2019
7d6fd7b
adds demo example for spatial media
gjanblaszczyk Jul 22, 2019
db9fea4
updates package-lock.json file
gjanblaszczyk Jul 22, 2019
f97846f
Merge pull request #1 from gjanblaszczyk/omnitone
gjanblaszczyk Jul 23, 2019
b514054
changes projection from 360_CUBE to 360
gjanblaszczyk Aug 1, 2019
f8dbbf3
Fixes problem with audiocontext suspended
gjanblaszczyk Aug 1, 2019
d6c803d
adds z-index: -1 to the video tag element.
gjanblaszczyk Aug 20, 2019
1c90b11
Merge branch 'fix-quality-issue-on-hls' into omnitone
gjanblaszczyk Aug 20, 2019
d96a3df
resolves conflicts
gjanblaszczyk Aug 28, 2019
905dd9a
Merge branch 'master' into omnitone
gjanblaszczyk Aug 28, 2019
f0e1ed7
renames `enableOmnitone` to `omnitone`
gjanblaszczyk Aug 30, 2019
43fa8f1
makes omnitone external and doesn't include it to the build files.
gjanblaszczyk Aug 30, 2019
1cb5174
updates readme file
gjanblaszczyk Aug 30, 2019
97d4e75
Merge tag 'v1.6.1' into omnitone
gjanblaszczyk Sep 6, 2019
f155f96
converts omnitone error to the warning message.
gjanblaszczyk Sep 6, 2019
46bef97
makes omnitone library a dev dependency
gjanblaszczyk Sep 9, 2019
b7baa1f
uses a reference to the omnitone instead of importing it
gjanblaszczyk Sep 9, 2019
5b7ebdb
demo page uses external spatial example from Google
gjanblaszczyk Sep 9, 2019
5411e59
updates description for omnitone option
gjanblaszczyk Sep 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Maintenance Status: Stable
- [`'360_TB'`](#360_tb)
- [`player.mediainfo.projection`](#playermediainfoprojection)
- [`debug`](#debug)
- [`enableOmnitone`](#enableomnitone)
- [`omnitone`](#omnitone)
- [Credits](#credits)
- [Support](#support)

Expand Down Expand Up @@ -227,13 +229,27 @@ See [`projection`](#projection) above for information of values. Note that `AUTO

Enable debug logging for this plugin

### `enableOmnitone`

> type: `boolean`, default: `false`

Enable Omnitone library for Spatial audio rendering

### `omnitone`

> type: `object`, default: `{}`

Default options for omnitone library. Please check available options on https://github.com/GoogleChrome/omnitone


## Credits ##

This project is a conglomeration of a few amazing open source libraries.

* [VideoJS](http://www.videojs.com)
* [Three.js](http://threejs.org)
* [webvr-polyfill](https://github.com/borismus/webvr-polyfill)
* [Omnitone] (https://googlechrome.github.io/omnitone)

## Support ##
This work is sponsored by [Brightcove](https://www.brightcove.com), [HapYak](http://corp.hapyak.com/) and [StreamShark](https://streamshark.io)
29 changes: 29 additions & 0 deletions examples/spatial.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>videojs-vr Demo</title>
<link href="../node_modules/video.js/dist/video-js.css" rel="stylesheet">
<link href="../dist/videojs-vr.css" rel="stylesheet">
</head>
<body>
<video width="640" height="300" id="videojs-vr-player" class="video-js vjs-default-skin" controls playsinline>
<source src="your-spatial-video.mp4" type="video/mp4">
gjanblaszczyk marked this conversation as resolved.
Show resolved Hide resolved
</video>
<ul>
<li><a href="../">return to main example</a></li>
</ul>
<script src="../node_modules/video.js/dist/video.js"></script>
<script src="../dist/videojs-vr.js"></script>
<script>
(function(window, videojs) {
var player = window.player = videojs('videojs-vr-player');
player.mediainfo = player.mediainfo || {};
player.mediainfo.projection = '360';

// AUTO is the default and looks at mediainfo
var vr = window.vr = player.vr({projection: 'AUTO', debug: true, forceCardboard: false, enableOmnitone: true, omnitone: {}});
}(window, window.videojs));
</script>
</body>
</html>
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<li><a href="examples/cube.html">Cube Video example</a></li>
<li><a href="examples/fluid.html">"Fluid" video size example</a></li>
<li><a href="examples/iframe.html">Iframe example</a></li>
<li><a href="examples/spatial.html">Spatial audio example</a></li>
</ul>
<script src="node_modules/video.js/dist/video.js"></script>
<script src="dist/videojs-vr.js"></script>
Expand Down
Loading