react-native-native-video-player
react-native-native-video-player copied to clipboard
Update Example
I cant setup this lib on IOS. it always gets the error. Please update example
Hi @hungdev ,
Sorry too busy these days, cannot feedback you in-time. So about the last info, you said that you can build yr App now, but there's an error of undefined method.
Did you follow the guideline and edit this in XCode:
- Edit the path variable from $(SRCROOT)/../../../HuntersLog to $(SRCROOT)/../../../[YOUR PROJECT FOLDER NAME]
Please also update your current status, so I can have something to help.
Thanks.
I opened 'node_modules/react-native-native-video-player/ios/RNVideoPlayer.xcodeproj' with Xcode and go to Build Settings > Search Paths > Header Search Paths then edit the path variable from $(SRCROOT)/../../../HuntersLog to $(SRCROOT)/../../../VideoDemo
and it can build. But after build success, it gets an error.
Hi @hungdev ,
Can you try this: import { NativeModules } from 'react-native'
NativeModules.RNVideoPlayer.showVideoPlayer(...)
@BondGoat could you talk more about this line: Add RNVideoPlayer in ios folder to your ios project
I don't understand this that line. I think I'm wrong this step. where is the RNVideoPlayer? your mean is RNVideoPlayer.xcodeproj in node_modules/react-native-native-video-player/ios ?
i tried with
import { NativeModules } from 'react-native'
NativeModules.RNVideoPlayer.showVideoPlayer(...)
but it still gets error.