react-native-native-video-player icon indicating copy to clipboard operation
react-native-native-video-player copied to clipboard

Update Example

Open hungdev opened this issue 6 years ago • 5 comments

I cant setup this lib on IOS. it always gets the error. Please update example

hungdev avatar Aug 04 '18 18:08 hungdev

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.

BondGoat avatar Aug 07 '18 02:08 BondGoat

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. ass

hungdev avatar Aug 07 '18 02:08 hungdev

Hi @hungdev ,

Can you try this: import { NativeModules } from 'react-native'

NativeModules.RNVideoPlayer.showVideoPlayer(...)

BondGoat avatar Aug 07 '18 03:08 BondGoat

@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 ?

hungdev avatar Aug 07 '18 14:08 hungdev

i tried with

import { NativeModules } from 'react-native'

NativeModules.RNVideoPlayer.showVideoPlayer(...)

but it still gets error. screen shot 2018-08-07 at 10 08 42 pm

hungdev avatar Aug 07 '18 15:08 hungdev