Code Monkey home page Code Monkey logo

aframe-vr-player's Introduction

AFRAME VR PLAYER

A versatile web application that allows you to immerse yourself in virtual reality experiences right from your browser. Whether you want to stream videos from your PC or play videos from your local storage, AFRAME VR Player has got you covered

Features

Streaming Mode (Server)

  • Stream from PC: Utilize the server mode to stream videos directly from your PC to your VR headset. Simply set up your PC as the server and enjoy seamless playback in VR.

Local Storage Mode (Web App)

  • Play from Local Storage: With the file picker feature, you can easily select and play videos stored on your device (less flexible and convenience).

VR Experience

  • Immersive VR Environment: Enjoy a fully immersive virtual reality experience with support for various VR headsets, allowing you to feel like you're right in the midst of the action ๐Ÿ˜‰.

User-Friendly Interface

  • Intuitive Controls: Navigate through your video library and adjust settings effortlessly with our user-friendly interface designed for seamless interaction.

Usage

Online

Use the online version on your web browser. Choose the video with file picker.

CLI

  1. Download from the latest version from releases section
  2. Choose the videos folder and launch an instance on your PC.
  3. Make sure your device and PC are connected on the same wifi/network
  4. go to the URL specified on the cli (192.168.X.X) on web browser of your device(I recommend Chrome on cardboard or firefox reality on oculus quest)
  5. Accept SSL certificate and enjoy

NOTE: You can generate your own SSL certificates using:

openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365

make sure to keep cert.pem & key.pem on the same folder as the app

OR

you can generate it online: https://www.cryptool.org/en/cto/openssl

Development

git clone --depth=1 https://github.com/mysterion/aframe-vr-player.git
npm install 
npm run devhost

# optional
# use test/files.py to serve videos from local folder
# don't forget to set VITE_LISTING_URL & VITE_FILE_GET_URL in .env file

Compatibility

VR Player is compatible with a wide range of VR headsets, including:

  • Oculus Quest
  • Google Cardboard
  • HTC Vive
  • PlayStation VR
  • Samsung Gear VR
  • And more!

As this project uses AFRAME which uses WebXR API It should be run on WebXR compatible Web Browsers(More Info.)

Contributing

We welcome contributions from the community to enhance AFRAME VR Player and make it even better. If you have any suggestions, bug reports, or feature requests, please feel free to open an issue or submit a pull request on GitHub.

Acknowledgments

aframe

aframe-stereo-component

three.js

aframe-vr-player's People

Contributors

mysterion avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

aframe-vr-player's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.