aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.66k stars 3.97k forks source link

No picture on Mobile iOS 11 in case of HLS and Videogular player #3679

Open Samuel-Ayvazyan opened 6 years ago

Samuel-Ayvazyan commented 6 years ago

Use case: Angular 6 + Videogular2 player + AFame + HLS On Mobile, iOS11 Video player is working but no picture. On Desktop everything is working perfectly.

I have created Showcase where you can see the code and the demo. Video player without AFrame working everywhere, but with AFrame I can see the only black screen but the player is working.

GitHub: https://github.com/Samuel-Ayvazyan/videogular-aframe-live-streaming Demo from this repo: http://videogular2-aframe.freedom-dev.com/video-aframe

I suppose that issue can be one of this but required the advice of Aframe contributors:

This is not a duplicate of any other issue, checked all of them and I think this is not a case we had before.

machenmusik commented 6 years ago

In Videogular we are giving src to ".m3u8" by attribute [vgHls] so it is rendered to the player in the correct way. So maybe Aframe trying to get src before this.

By default I think A-Frame tries to use src immediately e.g. if you use a-video with video element selector that is initially invalid. You can try not assigning a-video src until your element is ready, to work around that issue.