Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.6 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.6 KB

Theta live VR

dependencies Status Build Status

Javascript package helping you create VR-friendly (Cardboard compatible !) 360° livestream for the Ricoh Theta S.

Example

Usage

Including

Clone the project, and import the module in your app. ThetaLiveVR use UMD, so you can use which method suits the better for your project.

Creating a ThetaLiveVR instance

You'll need a container which will render the view, a canvas to act as a texture and an URI to your motion-jpeg stream. How easy.

let container = document.getElementById('container');
let canvas    = document.getElementById('canvas');
let streamURI = 'http://localhost:8080/stream.jpg';

let liveVR    = new ThetaLiveVR(container, canvas, streamURI);
liveVR.init();

Full working example here.
Note: this example uses a proxy server to avoid CORS problems

Contributing

As this project has been made for a school project, it may not suit your needs. If you have any suggestion, please submit an issue or pull request.

Resources

Useful links that helped me to build this project. Thanks to them !