supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

Is there a way to load 360 video? #117

Open huyle93 opened 6 years ago

huyle93 commented 6 years ago

I try to load a 360 mp4 video similar to the static web version using tag or having video tag inside but was not successful.

fabiosalvi commented 6 years ago

I have the same issue. I want to load a videosphere, but I cant' do it using a-assets. Hence I can't use aframe-video-controls on it.

As far as I've experienced the bug surely does concern videos inside a-assets and the bug surely does not concern images inside a-assets. As for sounds the situation is unknown.

To be precise, this snippet works.

render() {
    return (
      <Scene>
          <Entity
              primitive="a-videosphere"
              src="myVideo.mp4"
          />
      </Scene>
    );
}

This doesn't.

render() {
    return (
      <Scene>
           <a-assets>
               <video id="coolVideo" src="myVideo.mp4"></video>
           </a-assets>

          <Entity
              primitive="a-videosphere"
              src="#coolVideo"
          />
      </Scene>
    );
}