Open IRIBApps opened 1 year ago
Hello Guys,I', trying to display video using ViroVideo but every time app crashes.this is my source code:
const HelloWorldSceneAR = () => { const [text,setText]=useState("Initializing AR...");
function onInitialized(state, reason) {
console.log("erorrrrrrrrr",state,reason);
if (state === ViroTrackingStateConstants.TRACKING_NORMAL) {
alert("good initalize......");
} else if (state === ViroTrackingStateConstants.TRACKING_UNAVAILABLE) {
// Handle loss of tracking
}
}
return (
<ViroARScene onTrackingUpdated={onInitialized}>
<ViroVideo width={1.7} height={0.95}
position={[0, -5, -2.9]} scale={[2, 2, 2]} paused={false}
source={require("./res/alphachica.mp4")}
loop={true} muted={false} volume={1.0}
/>
);
};
export default () => {
return (
<ViroARSceneNavigator
autofocus={true}
initialScene={{
scene: HelloWorldSceneAR,
}}
style={styles.f1}
/>
);
};
var styles = StyleSheet.create({
f1: {flex: 1},
helloWorldTextStyle: {
fontFamily: 'Arial',
fontSize: 30,
color: '#ffffff',
textAlignVertical: 'center',
textAlign: 'center',
},
where is the problem?thank you for your attention as i said,app crashes!
got any solution for this?
been having the same issue.
same here, is there any debugging method?
Environment
Please provide the following information about your environment:
Description
Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.