-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating viromedia with React Native Projects #223
Comments
Hi @Ahmednagyyy, you can follow our guide here that shows how do that for Android: And for iOS do the following for a React Native project you set up:
Note: If you have a new RN project you can run setup-ide.sh --android for android as well. |
Hi @VikAdvani. I have fully implemented the above steps for android in my native react project. It can not run and error: Error type 3 Please show me how to solve the issue! |
@ttDemon it is possible you have a RN/Android issue. Check out this thread, there might be some solutions in there that help -> facebook/react-native#14952 |
@dam00n @VikAdvani I tried to create a new project react native, installed under the instructions for Android, but when running the project appears error: Execution failed for task ':app:transformClassesWithDexForDebug'.
I have searched for fix but not fix yet, i use Window 10. Pls help me! |
There are a couple stackoverflow threads that provide solutions for similar issues you can try: A more recent thread |
@dam00n thank you for confirm! |
In ViroSceneNavigator there is a prop vrModeEnabled. To see videos in 360 mode, you want to set this to false which makes the view mono or 360 view. https://docs.viromedia.com/docs/virovrscenenavigator#section-optional-props |
@dam00n Thanks for confirm. |
Viro utilizes Exoplayer (Android) and AVPlayer (iOS) so it is possible to render HLS Streams in your projects with Viro. We have not ourselves worked with livestreaming video but there are multiple developers on the Viro platform that are working on building apps that include livestreaming. |
looking at the setup ide script for ios - is it replacing the podfile and AppDelegate.m? If so it would be overwriting the existing code there no? |
@dam00n |
@dam00n not really an issue per se - just a question about whether it overwrites those files - because existing projects might have custom code in there that a developer would have to re-apply. If you can confirm that it overwrites - than it just means that would need to be noted in the instructions for a |
@mypark the setup ide script for iOS does overwrite. But it is intended to be used only for new projects. Thanks for the heads up. We will update our documentation where appropriate. |
@dam00n |
@ttDemon we need more information to repro this issue.
If you have the Viro testbed app, can you try the third option, Viro Media Player -> Tap No -> tap on screen to bring up player controllers -> tap on 360 -> does the 360 video play and can you rotate your phone to watch? |
Hi @ttDemon the Samsung A8 does not have a gyroscope which explains why you are unable to see the movie rotate as you rotate the the device :) |
open a new command prompt and write ipconfig in the terminal than take the ipv4 and paste at the place of ngrok it will work |
@Shoaib009 Thanks! It did work. |
Helllo, how can I add viro inside project react native v 0.60+ ! |
Hello guys,
I'm trying to Integrating viromedia with new React Native Project but the doc. it doesn't help at all here is the Link of the official doc for what I need.
https://docs.viromedia.com/docs/integrating-with-react-native-projects
but as you see It's useless.
I Used the samples and its good, but I don't need the sample anymore I want to create my own project without download viromedia app to run my app on it.
All I need is steps about how to install and integrate Viro-media with a new react native project, I'm willing to purchase a license but I can't while I'm not able to use it on my own.
Thanks in advance.
The text was updated successfully, but these errors were encountered: