exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
997 stars 117 forks source link

MediaPlayer not initialized! #1383

Open bknill opened 5 years ago

bknill commented 5 years ago

We're using an html

        <video id='videoEl' className='mediaEl'  crossOrigin='anonymous' playsInline='true' webkit-playsinline='true' ></video>
        <audio id='audioEl' className='mediaEl'  crossOrigin='anonymous' ></audio>

These then get used as source for the various elements, i.e. 360 video sphere.

I get the error 'MediaPlayer not initialized!' when ever Exokit tries to play a media file, can you let me know how to handle media with Exokit?

avaer commented 5 years ago

That code looks correct, but <video> tag is waiting on https://github.com/exokitxr/exokit/pull/1361, which would need additional work on Oculus integration.

bknill commented 5 years ago

Ahh.. is this required for the Go?

Any idea of timeframe around this? Or alternative ways of handling video ?

avaer commented 5 years ago

Go and Quest are mostly the same in terms of Exokit. :P

No timeframe, but would love help integrating Android's MediaPlayer api to the <video> tag if that's a requirement. That's probably the easiest way to handle video playback.

bknill commented 5 years ago

I'd love to be able to help but I have absolutely no idea how to achieve that.

bknill commented 5 years ago

hey @modulesio is there any progress on this one?