facebookarchive / react-360

Create amazing 360 and VR content using React
https://facebook.github.io/react-360
Other
8.73k stars 1.22k forks source link

Video player in react-360 #599

Open karmaggyatso opened 6 years ago

karmaggyatso commented 6 years ago

Hi,

Recently I created a react-vr project and shifting to react-360. After reading the documents, I realized that many of the components have been removed. Basically, I'm trying to implement a video player in my project, which was possible using<Video> component, but I can't see any document to make a 2D rectangular video player. I even looked at the document page, but it only describes how to set a Video Pano. If you could please tell me a way to set a video player, that would be grateful.

Thank you.

larrylin28 commented 6 years ago

I just brought the 2D rectangular video playing back. From the latest github version, you can call Environment.setScreen to display a 2D video on a relative position correspond to a surface. Document and sample code will be up soon.