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

Different behaviour of VideoPano component in React-vr and React-360 #575

Open shurick31 opened 6 years ago

shurick31 commented 6 years ago

Expected behavior

the VideoPano component play video with sound on mobile devices.

Actual behavior

The React-vr version run as expected (tested on IOS Safari, Chrome and Mozilla browsers), plays video with sound, of course, in the IOS Safari browser needs to pause / unmute / play video. The bundle, built with React-360 plays only muted video.

Reproduction

chunk of code:

      <View
        style={{
          transform:[{translate:[0,0,-4]}],
          layoutOrigin: [0.5, 0.5]
        }}
      >
      <VideoPano
        playerState={this.state.playerState}
        source={[
          asset('video.mp4', {format: 'mp4', layout: 'SPHERE'}),
        ]}
      />
         <VideoControl
           style={{
             height: 0.2,
             width: 2,
             transform:[{translate:[1,0,1]}]
           }}
          playerState={this.state.playerState} />
      </View>

Or you can get it from:

Additional Information

andrewimm commented 6 years ago

VideoPano is no longer supported in React 360. You should be using Environment to play 360 videos: https://facebook.github.io/react-360/docs/photos-and-videos.html