viromedia / virocore

ViroCore cross-platform AR/VR renderer
MIT License
364 stars 108 forks source link

Video 360 background not playing in ARScene #280

Open dpr10 opened 5 years ago

dpr10 commented 5 years ago

Environment

Please provide the following information about your environment:

  1. OS: Windows
  2. Version: 1.14.0
  3. Device(s): Samsung Galaxy S9+

Description

I'm starting to use ViroCore and I'm tryng to create a AR app with a 360 video as background, I follow the documentation and the video is painting as background but no playing at all.

Reproducible Demo

VideoTexture videoTexture = new VideoTexture(mViroView.getViroContext(),
    Uri.parse("file:///android_asset/prueba_s_santa_alpha.mp4"));
mScene.setBackgroundTexture(videoTexture);
videoTexture.play();
mViroView.setScene(mScene);
dthian commented 5 years ago

Hi @dpr10, this should work. I've tried both setting the background texture directly and using a sphere as the background - and both works. Have you tried testing with different videos?