BondGoat / react-native-native-video-player

React native video player, used for Android, iOS. It will lauch a Native Video, not an Embeded Component
GNU General Public License v3.0
50 stars 44 forks source link

Update Example #24

Open hungdev opened 5 years ago

hungdev commented 5 years ago

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

BondGoat commented 5 years ago

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:

Please also update your current status, so I can have something to help.

Thanks.

hungdev commented 5 years ago

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
BondGoat commented 5 years ago

Hi @hungdev ,

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

NativeModules.RNVideoPlayer.showVideoPlayer(...)

hungdev commented 5 years ago

@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 commented 5 years ago

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