MetaCDN / videojs-vr_OLD

A video.js plugin that turns a video element into a HTML5 Panoramic 360 video player.
MIT License
24 stars 16 forks source link

How can we integrate videojs-vr in aframe : aframe.io/ #21

Closed codechikbhoka closed 7 years ago

codechikbhoka commented 7 years ago

I want to have video-js vr as a 360 degree video player instead of aframe's own a-videosphere because video-js vr has support for HLS stream and a-videosphere doesn't. How can I do it ?

jbroberg commented 7 years ago

Hey @kfarr did you have some thoughts on this? @codechikbhoka I think the question more broadly is how do you integrate VideoJS itself into a-frame.

Alternatively (if that approach is too heavy weight) you could consider integrating a library like hls.js directly into a-videosphere.

codechikbhoka commented 7 years ago

Is everybody connected here :P. I have put up this question here after discussing with @kfarr

jbroberg commented 7 years ago

Haha - kinda in this 360/VR space! If the objective is to just get HLS support on desktop with a-frame videosphere you should I'd say the fastest way is the HLS.js route.

codechikbhoka commented 7 years ago

you mentioned "desktop" specifically for the HLS.js approach. Do you think it requires more efforts for mobile (android) or HMD's like oculus. Webvr part is handled by a-frame itself, then what more problem is there ?

jbroberg commented 7 years ago

I'd say (in theory) it's actually easier on mobile. Desktop browsers like Chrome/Firefox don't have native HLS support so need a 3rd party library to do so.

Chrome on Android has a HLS engine which means no 3rd party libraries should be needed. You should just be able to set your video source to be a HLS m3u8. I've never tried it with a-videosphere however.