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

Linking in IOS

Open pyeonjaesik opened this issue 6 years ago • 16 comments

  1. Import RNVideoProcessing.h into your project_name-bridging-header.h

what does it mean?

pyeonjaesik avatar Jun 29 '19 11:06 pyeonjaesik

Please @shahen94, I'm lost here too.

mths0x5f avatar Jul 01 '19 15:07 mths0x5f

Please @shahen94, I'm lost here too22. please~~

pyeonjaesik avatar Jul 02 '19 10:07 pyeonjaesik

@mths0x5f did you solve this problem?

pyeonjaesik avatar Jul 03 '19 12:07 pyeonjaesik

docs aren't maintained, and I could never get this library to work after a few days of trying, but here's a start: https://github.com/shahen94/react-native-video-processing/issues/144

bwillem avatar Jul 09 '19 14:07 bwillem

@pyeonjaesik did you click on the screenshot on the main page? It opens up a YouTube video with steps

chai86 avatar Jul 11 '19 21:07 chai86

I followed all of the steps. But I failed again and again...

2019년 7월 12일 (금) 오전 6:15, chai86 [email protected]님이 작성:

@pyeonjaesik https://github.com/pyeonjaesik did you click on the screenshot on the main page? It opens up a YouTube video with steps

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shahen94/react-native-video-processing/issues/235?email_source=notifications&email_token=AJHXTHZTJTXTAGGED7TTYETP66PIRA5CNFSM4H4KFKO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYACOI#issuecomment-510656825, or mute the thread https://github.com/notifications/unsubscribe-auth/AJHXTH3Z2PZ7GKJTKL5YVMDP66PIRANCNFSM4H4KFKOQ .

pyeonjaesik avatar Jul 12 '19 05:07 pyeonjaesik

So my projectname-bridging-header.h file looks like this (i had to have it precisely like this or build failed):

#ifndef ProjectName_Bridging_Header_h #define ProjectName_Bridging_Header_h

#import <React/RCTBridgeModule.h> #import <React/RCTView.h> #import <React/RCTBridgeModule.h> #import "RNVideoProcessing.h"

#endif /* ProjectName_Bridging_Header_h */

This file also has to be placed in the right folder (try ...ProjectName/ios/ProjectName)

chai86 avatar Jul 12 '19 14:07 chai86

Thanks! I'll try it.

2019년 7월 12일 (금) 오후 11:19, chai86 [email protected]님이 작성:

So my projectname-bridging-header.h file looks like this (i had to have it precisely like this or build failed):

#ifndef ProjectName_Bridging_Header_h #define ProjectName_Bridging_Header_h

#import <React/RCTBridgeModule.h> #import <React/RCTView.h> #import <React/RCTBridgeModule.h> #import "RNVideoProcessing.h"

#endif /* ProjectName_Bridging_Header_h */

This file also has to be placed in the right folder (try ...ProjectName/ios/ProjectName)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shahen94/react-native-video-processing/issues/235?email_source=notifications&email_token=AJHXTHYZT2CILY6LHTAF7RLP7CHF7A5CNFSM4H4KFKO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZ4N4A#issuecomment-510904048, or mute the thread https://github.com/notifications/unsubscribe-auth/AJHXTH3S26EDQKPQ77Q6VV3P7CHF7ANCNFSM4H4KFKOQ .

pyeonjaesik avatar Jul 12 '19 16:07 pyeonjaesik

@chai86 Did you followed https://www.youtube.com/watch?v=HRjgeT6NQJM&feature=youtu.be ? I followed it and changed only my projectname-bridging-header.h as you advised. But i failed..

pyeonjaesik avatar Jul 16 '19 06:07 pyeonjaesik

Anyone got it working? My project builds, but i get this error at runtime: "Cannot read property 'Constants' of undefined".

OmarBasem avatar Jul 16 '19 08:07 OmarBasem

@ramon90 Facing the same issue, did u find any solution for this error?

sajorahasan avatar Jul 24 '19 11:07 sajorahasan

@sajorahasan https://github.com/shahen94/react-native-video-processing/issues/236#issuecomment-512100770

OmarBasem avatar Jul 24 '19 11:07 OmarBasem

Same issue, hoping this gets resolved soon. Was really looking forward to using this library.

packerfan626 avatar Aug 03 '19 07:08 packerfan626

I had this 'Cannot read property 'Constants' of undefined' issue also. For me it seems that the library wasn't really linked together. I had it working doing all the steps from the video in a fresh app. Following the docs will not work, you need some extra steps that are displayed on video

edferreira avatar Sep 23 '19 13:09 edferreira

Does any of you have experience with video processing on Android and iOS? This is a very important library for a lot of people and we might have to fork it

lucastonon avatar Nov 20 '19 20:11 lucastonon

When I created groups in Xcode and copied .swift files, it asked me wether I need to create bridge file, I clicked yes and then It created an empty header file by name "walsos-Bridging-Header.h" keep in mind, my project name here is walsos. If you do not have this file, I suggest, try creating one by the name it suggest in RNVideoProcessing directory

azhararmar avatar Dec 20 '19 18:12 azhararmar