react-native-ar / react-native-arkit

React Native binding for iOS ARKit
MIT License
1.72k stars 143 forks source link

Video #183

Open Tamiyadd opened 6 years ago

Tamiyadd commented 6 years ago

Hi, it's possible to show video using SKVideoNode? how can i achieve that? thanks

RWOverdijk commented 5 years ago

👍

Playing a video would be amazing.

Jackyaung commented 5 years ago

did you already get the way to achieve the SKVideoNode with react-native-arkit?

Jackyaung commented 5 years ago

Solved: <ARKit.Sprite position={{ x: 0, y: 0.8, z: 0 }}> <Video source={{uri:'http://192.168.2.239/storage/uploads/2018/12/10/5c0e5fe701ebcstation6-1.mp4'}} style={{height:60,width:90}} rate={1.0} volume={10} muted={false} resizeMode={'cover'} playWhenInactive={false} playInBackground={false} ignoreSilentSwitch={'ignore'} progressUpdateInterval={250.0} /> </ARKit.Sprite>

RWOverdijk commented 5 years ago

<3