Giter VIP home page Giter VIP logo

react-native-opentok's People

Contributors

99ff00 avatar damiantw avatar dependabot[bot] avatar dratwas avatar grabbou avatar jacque006 avatar jukben avatar michalchudziak avatar prabakarviji avatar radko93 avatar thejoelw avatar wojteg1337 avatar zamotany avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-opentok's Issues

Could not find any matches for com.opentok.android:opentok-android-sdk:2.8.+

A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-opentok'.
      > Could not resolve all dependencies for configuration ':react-native-opentok:_debugPublishCopy'.
         > Could not find any matches for com.opentok.android:opentok-android-sdk:2.8.+ as no versions of com.opentok.android:opentok-android-sdk are available.
           Required by:
               project :react-native-opentok

Refer to SO Opentok suggests to use this url as workaround until they fix the issue.

Support more then one Subscriber

I dont think you support yet more then one subscriber, i need this feature and will do a pull request for this. I think for this purpose the subscriberview should get a streamId property.

Fail to install the ios part

Hello,

I can not add the repo to my ios code by using "pod". I have following react and react-native version installed.

- "react": "16.0.0-alpha.12",
- "react-native": "0.46.4"

I added your react-native-opentok dependency as you described in your example code, but unfortunately I got following error Message:

Podfile

target 'example' do
  pod 'React', subspecs: [
    'RCTActionSheet',
    'RCTGeolocation',
    'RCTImage',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket',
  ], path: '../node_modules/react-native'

  pod 'react-native-opentok', :path => '../node_modules/react-native-opentok'
end

Output

[!] Unable to satisfy the following requirements:

- `Yoga (= 0.46.4.React)` required by `React/Core (0.46.4)`

None of your spec sources contain a spec satisfying the dependency: `Yoga (= 0.46.4.React)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

[!] Automatically assigning platform ios with version 10.0 on target nexboardNative because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

I even tried to only install it by using react-native-opentok as a dependency within my podfile.
Other Podfile

target 'example' do
  pod 'react-native-opentok', :path => '../node_modules/react-native-opentok'
end

This installed it, but didn't build your code within xcode. It lead to errors like:

Other Output

- Property with 'copy' attributes must be of object type
- Unknown type name 'RCTDirectEventBlock'

Thanks for your help!

SubscriberView usage

Hi, I am trying to convert from the https://github.com/500LABS/HotBox to your library and i am running into the issue of using the subscriberview. In the other library i would get a streamId, but in this library one puts a sessionId inside, i dont understand how this should work, if i have for example 4 people on a session, how do i know which subscriberview belongs to what?

Best,
Patrick

How to change camera position?

I'd like to change camera position in javascript code, but I think this package does not support this function yet.
Can you implement this function in both of iOS and Android?

Error during installation: react-native-opentok:_debugCompile'.

A problem occurred configuring project ':app'.

A problem occurred configuring project ':react-native-opentok'.
Could not resolve all dependencies for configuration ':react-native-opentok:_debugCompile'.
> Could not find any matches for com.opentok.android:opentok-android-sdk:2.8.+ as no versions of com.opentok.android:opentok-android-sdk are available.

Unhandled JS Exception. Global Code.

@grabbou I have difficulties integrating the library with my project. What I do is below:

  1. I have project, which works fine.
  2. I need to use react-native-opentok library.
  3. In the guide I only need to add one line to my podfile and run 'pod install'. But in that pod line there is :path = '../node_modules/react-native-opentok'. I do not have it currently.
  4. I run 'npm install react-native-opentok' and as a result the folder is created and only contains one file: package.json.
  5. I go back to my ios directory and run pod install.
  6. I get error .podspec file is missing.
  7. Having downloaded it from git I place this file next to package.json in 'node_modules/react-native-opentok'
  8. Run pod install again. Now it gets to succefully installing the pod.
  9. Run 'react-native run-ios'
  10. Boom! Crash! Unhandled JS Exception. Global Code.
    errorv1.txt

What am I doing wrong? Please help, wasted several days on this already, nothing helps. I have attached console output from Xcode.

Thanks in advance!

problem occurred configuring project ':app'

I configured my project as it said in the README and when trying to run it I get this error:

$ react-native run-android
Scanning 561 folders for symlinks in /home/jeggy/Coding/videoChat/node_modules (3ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
File /home/jeggy/.android/repositories.cfg could not be loaded.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-opentok'.
      > Could not resolve all dependencies for configuration ':react-native-opentok:_debugPublishCopy'.
         > Could not find any matches for com.opentok.android:opentok-android-sdk:2.8.+ as no versions of com.opentok.android:opentok-android-sdk are available.
           Required by:
               videoChat:react-native-opentok:unspecified

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 8.723 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

android build failed

    "dependencies": {
	"react": "16.0.0",
	"react-native": "0.50.3",
	"react-native-opentok": "^2.0.1"
}

stacktrace: {
public class RNOpenTokPackage implements ReactPackage {
^
1 error
:react-native-opentok:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-opentok:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --info or --debug option to get more log output.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-opentok:compileReleaseJavaWithJavac'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
    at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:153)
    at org.gradle.internal.Factories$1.create(Factories.java:22)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:150)
    at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:48)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:239)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:212)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:205)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
    Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:48)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:104)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:53)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:35)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:39)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:24)
    at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:163)
    at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:127)
    at com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:245)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:232)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
    ... 60 more

}

Disconnect cleanup

When i invoke OpenTok.disconnectAll() OR OpenTok.disconnect(sessionId)

It seems the cleanup isn't taking place and the screen hangs, it never disconnects at all.

NPM release plan.

Before we release:

  • update readme
  • update example for react native 49
  • fix flow
  • check deps for updates
  • check if subspecs in podfile are mandatory

node-gyp failing (Node v7.2.1)

[email protected] install /home/user/Projects/test/node_modules/bufferutil
node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/user/Projects/test/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../../nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handlev8::Integer) [with T = v8::Int32; v8::Handlev8::Integer = v8::Localv8::Integer]’:
../../nan/nan_new.h:34:64: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Tov8::Int32(v8::Handlev8::Integer i) { return i->ToInt32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/home/user/.node-gyp/7.2.1/include/node/v8.h:8442:14: note: declared here
Local Value::ToInt32() const {
^~~~~
In file included from ../../nan/nan.h:82:0,
from ../src/bufferutil.cc:16:
../../nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handlev8::Integer) [with T = v8::Uint32; v8::Handlev8::Integer = v8::Localv8::Integer]’:
../../nan/nan_new.h:39:65: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Tov8::Uint32(v8::Handlev8::Integer i) { return i->ToUint32(); }
^
In file included from ../src/bufferutil.cc:7:0:
/home/user/.node-gyp/7.2.1/include/node/v8.h:8436:15: note: declared here
Local Value::ToUint32() const {
^~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::BooleanObject::return_t NanIntern::Factoryv8::BooleanObject::New(bool)’:
../../nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Localv8::Value v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).Asv8::BooleanObject();
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:4048:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local New(bool value));
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::Script::return_t NanIntern::Factoryv8::Script::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::Script::return_t NanIntern::Factoryv8::Script::New(v8::Localv8::String, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::String::return_t NanIntern::Factoryv8::String::New(const uint8_t*, int)’:
../../nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Localv8::String v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:2317:21: note: declared here
Local NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::String::return_t NanIntern::Factoryv8::String::New(v8::String::ExternalStringResource*)’:
../../nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Localv8::String v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:2355:38: note: declared here
Local NewExternal(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::UnboundScript::return_t NanIntern::Factoryv8::UnboundScript::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:237:30: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::UnboundScript::return_t NanIntern::Factoryv8::UnboundScript::New(v8::Localv8::String, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:244:30: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/bufferutil.cc:16:
../../nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:261:25: error: redefinition of ‘template v8::Local _NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^~~~~~~~~~~~~~~
../../nan/nan.h:256:25: note: ‘template v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘bool NanIdleNotification(int)’:
../../nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:6290:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:473:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback
^~
../../nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:479:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback) {
^~
../../nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:484:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback
^~
../../nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:490:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback) {
^~
../../nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../../nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:570:42: error: ‘data’ was not declared in this scope
_NanWeakCallbackInfo<T, P> info = data.GetParameter();
^~~~
../../nan/nan.h: At global scope:
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^~~~~~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char
, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/bufferutil.cc:10:0:
/home/user/.node-gyp/7.2.1/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)’
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~~
../../nan/nan.h: In function ‘v8::Localv8::Script NanCompileScript(v8::Localv8::String, const v8::ScriptOrigin&)’:
../../nan/nan.h:710:74: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h: In function ‘v8::Localv8::Script NanCompileScript(v8::Localv8::String)’:
../../nan/nan.h:717:74: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/bufferutil.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/bufferutil.cc: In static member function ‘static void BufferUtil::Initialize(v8::Handlev8::Object)’:
../src/bufferutil.cc:30:52: error: call of overloaded ‘NODE_SET_METHOD(v8::Localv8::FunctionTemplate&, const char [7], void (&)(const v8::FunctionCallbackInfov8::Value&))’ is ambiguous
NODE_SET_METHOD(t, "unmask", BufferUtil::Unmask);
^
In file included from ../src/bufferutil.cc:8:0:
/home/user/.node-gyp/7.2.1/include/node/node.h:238:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Template, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Template recv,
^~~~~~~~~~~~~~~
/home/user/.node-gyp/7.2.1/include/node/node.h:251:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Object, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Object recv,
^~~~~~~~~~~~~~~
../src/bufferutil.cc:31:48: error: call of overloaded ‘NODE_SET_METHOD(v8::Localv8::FunctionTemplate&, const char [5], void (&)(const v8::FunctionCallbackInfov8::Value&))’ is ambiguous
NODE_SET_METHOD(t, "mask", BufferUtil::Mask);
^
In file included from ../src/bufferutil.cc:8:0:
/home/user/.node-gyp/7.2.1/include/node/node.h:238:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Template, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Template recv,
^~~~~~~~~~~~~~~
/home/user/.node-gyp/7.2.1/include/node/node.h:251:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Object, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Object recv,
^~~~~~~~~~~~~~~
../src/bufferutil.cc:32:50: error: call of overloaded ‘NODE_SET_METHOD(v8::Localv8::FunctionTemplate&, const char [6], void (&)(const v8::FunctionCallbackInfov8::Value&))’ is ambiguous
NODE_SET_METHOD(t, "merge", BufferUtil::Merge);
^
In file included from ../src/bufferutil.cc:8:0:
/home/user/.node-gyp/7.2.1/include/node/node.h:238:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Template, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Template recv,
^~~~~~~~~~~~~~~
/home/user/.node-gyp/7.2.1/include/node/node.h:251:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Object, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Object recv,
^~~~~~~~~~~~~~~
bufferutil.target.mk:96: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory '/home/user/Projects/test/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/user/.nvm/versions/node/v7.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.8.0-30-generic
gyp ERR! command "/home/user/.nvm/versions/node/v7.2.1/bin/node" "/home/user/.nvm/versions/node/v7.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/Projects/test/node_modules/bufferutil
gyp ERR! node -v v7.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

[email protected] install /home/user/Projects/test/node_modules/utf-8-validate
node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/user/Projects/test/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../../nan/nan.h:82:0,
from ../src/validation.cc:15:
../../nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handlev8::Integer) [with T = v8::Int32; v8::Handlev8::Integer = v8::Localv8::Integer]’:
../../nan/nan_new.h:34:64: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Tov8::Int32(v8::Handlev8::Integer i) { return i->ToInt32(); }
^
In file included from ../src/validation.cc:7:0:
/home/user/.node-gyp/7.2.1/include/node/v8.h:8442:14: note: declared here
Local Value::ToInt32() const {
^~~~~
In file included from ../../nan/nan.h:82:0,
from ../src/validation.cc:15:
../../nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handlev8::Integer) [with T = v8::Uint32; v8::Handlev8::Integer = v8::Localv8::Integer]’:
../../nan/nan_new.h:39:65: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Tov8::Uint32(v8::Handlev8::Integer i) { return i->ToUint32(); }
^
In file included from ../src/validation.cc:7:0:
/home/user/.node-gyp/7.2.1/include/node/v8.h:8436:15: note: declared here
Local Value::ToUint32() const {
^~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::BooleanObject::return_t NanIntern::Factoryv8::BooleanObject::New(bool)’:
../../nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Localv8::Value v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).Asv8::BooleanObject();
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:4048:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local New(bool value));
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::Script::return_t NanIntern::Factoryv8::Script::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::Script::return_t NanIntern::Factoryv8::Script::New(v8::Localv8::String, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:173:69: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::String::return_t NanIntern::Factoryv8::String::New(const uint8_t*, int)’:
../../nan/nan_implementation_12_inl.h:206:42: warning: ‘static v8::Localv8::String v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:2317:21: note: declared here
Local NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::String::return_t NanIntern::Factoryv8::String::New(v8::String::ExternalStringResource*)’:
../../nan/nan_implementation_12_inl.h:217:66: warning: ‘static v8::Localv8::String v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:2355:38: note: declared here
Local NewExternal(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::UnboundScript::return_t NanIntern::Factoryv8::UnboundScript::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:237:30: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:237:76: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBasev8::UnboundScript::return_t NanIntern::Factoryv8::UnboundScript::New(v8::Localv8::String, const v8::ScriptOrigin&)’:
../../nan/nan_implementation_12_inl.h:244:30: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:82,
from ../src/validation.cc:15:
../../nan/nan_implementation_12_inl.h:244:76: warning: ‘static v8::Localv8::UnboundScript v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1301:45: note: declared here
Local CompileUnbound(
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:261:25: error: redefinition of ‘template v8::Local _NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^~~~~~~~~~~~~~~
../../nan/nan.h:256:25: note: ‘template v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘bool NanIdleNotification(int)’:
../../nan/nan.h:289:71: warning: ‘bool v8::Isolate::IdleNotification(int)’ is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:6290:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:473:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:473:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback
^~
../../nan/nan.h:474:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:479:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:479:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCEpilogueCallback callback) {
^~
../../nan/nan.h:484:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:484:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback
^~
../../nan/nan.h:485:18: error: expected primary-expression before ‘gc_type_filter’
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../../nan/nan.h:490:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../../nan/nan.h:490:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
v8::Isolate::GCPrologueCallback callback) {
^~
../../nan/nan.h:569:15: error: ‘WeakCallbackData’ in namespace ‘v8’ does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../../nan/nan.h:569:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../../nan/nan.h: In function ‘void _NanWeakCallbackDispatcher(int)’:
../../nan/nan.h:570:42: error: ‘data’ was not declared in this scope
_NanWeakCallbackInfo<T, P> info = data.GetParameter();
^~~~
../../nan/nan.h: At global scope:
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^~~~~~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char
, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/validation.cc:10:0:
/home/user/.node-gyp/7.2.1/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)’
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h:672:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~~
../../nan/nan.h: In function ‘v8::Localv8::Script NanCompileScript(v8::Localv8::String, const v8::ScriptOrigin&)’:
../../nan/nan.h:710:74: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Localv8::Script NanCompileScript(v8::Localv8::String)’:
../../nan/nan.h:717:74: warning: ‘static v8::Localv8::Script v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /home/user/.node-gyp/7.2.1/include/node/v8.h:26:0,
from ../src/validation.cc:7:
/home/user/.node-gyp/7.2.1/include/node/v8.h:1321:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/user/.node-gyp/7.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/validation.cc: In static member function ‘static void Validation::Initialize(v8::Handlev8::Object)’:
../src/validation.cc:112:62: error: call of overloaded ‘NODE_SET_METHOD(v8::Localv8::FunctionTemplate&, const char [12], void (&)(const v8::FunctionCallbackInfov8::Value&))’ is ambiguous
NODE_SET_METHOD(t, "isValidUTF8", Validation::IsValidUTF8);
^
In file included from ../src/validation.cc:8:0:
/home/user/.node-gyp/7.2.1/include/node/node.h:238:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Template, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Template recv,
^~~~~~~~~~~~~~~
/home/user/.node-gyp/7.2.1/include/node/node.h:251:13: note: candidate: void node::NODE_SET_METHOD(v8::Localv8::Object, const char*, v8::FunctionCallback)
inline void NODE_SET_METHOD(v8::Localv8::Object recv,
^~~~~~~~~~~~~~~
validation.target.mk:96: recipe for target 'Release/obj.target/validation/src/validation.o' failed
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory '/home/user/Projects/test/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/user/.nvm/versions/node/v7.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.8.0-30-generic
gyp ERR! command "/home/user/.nvm/versions/node/v7.2.1/bin/node" "/home/user/.nvm/versions/node/v7.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/Projects/test/node_modules/utf-8-validate
gyp ERR! node -v v7.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

[email protected] postinstall /home/user/Projects/test/node_modules/react-native-opentok
rnpm link

sh: 1: rnpm: not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Linux 4.8.0-30-generic
npm ERR! argv "/home/user/.nvm/versions/node/v7.2.1/bin/node" "/home/user/.nvm/versions/node/v7.2.1/bin/npm" "install" "react-native-opentok"
npm ERR! node v7.2.1
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: rnpm link
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'rnpm link'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-native-opentok package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rnpm link
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-native-opentok
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-native-opentok
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/Projects/test/npm-debug.log

[Question] How publisher and subscriber components works?

Hey!
I'm trying to figure out how and works. Because when these components are rendered the onPublishStart / onSubscribeStartevent never called.

Should I call a method to start the streaming?

My code is:


import React, { Component } from 'react';
import { View } from 'react-native';
import { Container, Button, Text, Item, Input } from 'native-base';
import OpenTok, { Publisher, Subscriber } from 'react-native-opentok';
import Header from '../common/Header';
import { containerStyle, buttonStyle, textStyle } from './styles';

const sessionId = 'SESSION_ID';
const token = 'TOKEN_ID';

class StartSession extends Component {
  //Testing purposes
  async componentWillMount() {
    console.log('Start session method');
    const isConnected = await OpenTok.connect(sessionId, token);
    console.log('Volvio del connect: ', isConnected);
    OpenTok.on(OpenTok.events.ON_SIGNAL_RECEIVED, e => console.log(e));
  }

  async sendSignal() {
    console.log('Sending signal');
    const isSent = await OpenTok.sendSignal(sessionId, 'message', 'a');
    console.log('Signal sent: ', isSent);
  }

  render() {
    return (
      <Container>
        <Header title="Start a session" subtitle="Name the session" />
        <View style={containerStyle}>
          <Item regular>
            <Input placeholder="Name of this session" />
          </Item>
          {/* <Button block style={buttonStyle} onPress={() => this.startSession()}>
            <Text style={textStyle}>Start the Session</Text>
          </Button> */}

          <Button block style={buttonStyle} onPress={() => this.sendSignal()}>
            <Text style={textStyle}>Send signal</Text>
          </Button>

          <Publisher
            sessionId={sessionId}
            onPublishStart={() => {
              console.log('publish started');
            }}
            onPublishStop={() => {
              console.log('publish stoped');
            }}
            style={{ height: 100, width: 200, backgroundColor: 'red' }}
            ref={ref => {
              this.publisherRef = ref;
            }}
          />

          <Subscriber
            style={{ height: 100, width: 200, backgroundColor: 'blue' }}
            sessionId={sessionId}
            onSubscribeStart={() => {
              console.log('subscription started');
            }}
            onSubscribeStop={() => {
              console.log('subscription stopped');
            }}
          />
        </View>
      </Container>
    );
  }
}

export default StartSession;

FYI:

  • The sendSignal() function is working. I can see Signal sent: true in my console. However, I'm not receiving any data in the ON_SIGNAL_RECEIVED event.

Thanks in advance!

Android build

Followed the Android build Readme. ran react-native run-android and this is what i am getting:

A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-opentok'.
> Could not resolve all dependencies for configuration ':react-native-
opentok:_debugPublishCopy'.
 > Could not find any matches for com.opentok.android:opentok-android-sdk:2.8.+ as no versions 
of com.opentok.android:opentok-android-sdk are available.

Any ideas what i am missing?

Problem with 2 Subscriber and 2 Publisher

Hello, I'm having trouble creating a video chat.

  • First if I put a publisher and a subscriber at the same time, the subscriber starts to reproduce the publisher of the own user.

  • I tried to assemble the components alternately listening when each user enters the room, but sometimes the last subscriber to be created gets the black screen or hangs.

Thanks in advance

Events not working on Android

Hi I am using android and i am not able to catch the events. When using the debugger, it seems that there is an error message:

Method threw 'com.facebook.react.bridge.ObjectAlreadyConsumedException' exception. Cannot evaluate com.facebook.react.bridge.WritableNativeMap.toString()

Library not found on iOS

I have installed the library as described in the guide but when I try to run my iOS project I get the error:

ld: library not found for -lRNOpenTok

I try to install again but no success. Also there is another way to link the library without cocapods?

The code is not compatible with react 15.5+

Hello,

I've been trying (after ejecting expo and setup my project...) to implement this in my project but the code is using React.PropTypes that have been moved to the 'prop-types' package.

I think it won't be a big update to use these prop types instead of React's.
I'll make a PR tomorrow because this is blocking if you want the code to run on React 15.5+

Do you see anything else blocking this library with react 15.5+?

Source https://reactjs.org/docs/typechecking-with-proptypes.html

Cheers,
Clément

Unable to install via pod install

Hi, when i try to install via pod install.

this error appears, [!] No podspec found for react-native-opentok in ../node_modules/react-native-opentok

Crash when another client connects to the session

Error log:

2017-01-06 10:32:05.702 [info][tid:com.facebook.react.JavaScript] Running application "OpenTokVideoCall" with appParams: {"rootTag":1,"initialProps":{}}. DEV === true, development-level warning are ON, performance optimizations are OFF
libc++abi.dylib: terminating with uncaught exception of type NSException

Code where it fails:

[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSString *creationTimeString = [dateFormatter stringFromDate:connection.creationTime];
_onClientConnected(@{
@"connectionId": connection.connectionId,
@"creationTime": creationTimeString,
@"data": connection.data,
});

Would you happen to know where this error comes from?

Xcode build failure: Library not found, linker command failed with exit code 1

I've followed all the react-native-opentok setup steps for both iOS and Android, and I've used the installation workaround from #25 successfully. Running react-native run-ios works fine, but building the app in Xcode (in preparation for App Store) fails. Here's the error output:

fommdbzusfzbksdwyzdlflnbtvdt/Build/Products/Debug-iphonesimulator/react-native-opentok'
ld: library not found for -lreact-native-opentok
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Android .apk for final release builds correctly, but we really need the iOS build to work as well.

Missing file (react-native-opentok/RCTOpenTok.m)? Xcode build failure

I'm unable to build my app in Xcode, and the build error message is suggesting that react-native-opentok/RCTOpenTok.m does not exist (which is true -- it's not there).

Error message:

clang: error: no such file or directory: '/Users/sunweiyang/TestApp/node_modules/react-native-opentok/RCTOpenTok.m'
clang: error: no input files

Fail installation in iOS

I started a new project, I downloaded react-native-opentok
Here I did two different processes and I got into the same problem
1 - I made the link and then pod install
2 - I just did the insstall pod

In file included from /Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherViewManager.m:9:
In file included from /Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherViewManager.h:10:
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:19:29: error: unknown type name 'RCTDirectEventBlock'
@property (nonatomic, copy) RCTDirectEventBlock onPublishError;
                            ^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:19:1: error: property with 'copy' attribute must be of object type
@property (nonatomic, copy) RCTDirectEventBlock onPublishError;
^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:20:29: error: unknown type name 'RCTDirectEventBlock'
@property (nonatomic, copy) RCTDirectEventBlock onPublishStop;
                            ^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:20:1: error: property with 'copy' attribute must be of object type
@property (nonatomic, copy) RCTDirectEventBlock onPublishStop;
^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:21:29: error: unknown type name 'RCTDirectEventBlock'
@property (nonatomic, copy) RCTDirectEventBlock onPublishStart;
                            ^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:21:1: error: property with 'copy' attribute must be of object type
@property (nonatomic, copy) RCTDirectEventBlock onPublishStart;
^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:23:29: error: unknown type name 'RCTDirectEventBlock'
@property (nonatomic, copy) RCTDirectEventBlock onClientConnected;
                            ^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:23:1: error: property with 'copy' attribute must be of object type
@property (nonatomic, copy) RCTDirectEventBlock onClientConnected;
^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:24:29: error: unknown type name 'RCTDirectEventBlock'
@property (nonatomic, copy) RCTDirectEventBlock onClientDisconnected;
                            ^
/Users/macweeazy/Desktop/Teste/node_modules/react-native-opentok/RCTOpenTokPublisherView.h:24:1: error: property with 'copy' attribute must be of object type
@property (nonatomic, copy) RCTDirectEventBlock onClientDisconnected;
^
10 errors generated.

Switch cams

Thanks for awesome work on this!

Right now the default camera for the publisher is the front cam. Is there a way to switch Publisher camera?

Showing both SubscriberView and PublisherView together is crashing the app.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]' *** First throw call stack: ( 0 CoreFoundation 0x0000000105d8234b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000109af321e objc_exception_throw + 48 2 CoreFoundation 0x0000000105c98d8f -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 351 3 CoreFoundation 0x0000000105c98bfb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59 4 XXXX 0x0000000103d2b27f -[RCTOpenTokPublisherView session:connectionCreated:] + 479 5 XXXX 0x0000000103d3e507 __47-[OTKitSessionDelegate otkitConnectionCreated:]_block_invoke + 135 6 libdispatch.dylib 0x000000010b6d2980 _dispatch_call_block_and_release + 12 7 libdispatch.dylib 0x000000010b6fc0cd _dispatch_client_callout + 8 8 libdispatch.dylib 0x000000010b6dc8d6 _dispatch_main_queue_callback_4CF + 406 9 CoreFoundation 0x0000000105d464f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 10 CoreFoundation 0x0000000105d0bf8d __CFRunLoopRun + 2205 11 CoreFoundation 0x0000000105d0b494 CFRunLoopRunSpecific + 420 12 GraphicsServices 0x000000010c49aa6f GSEventRunModal + 161 13 UIKit 0x0000000107ce7964 UIApplicationMain + 159 14 XXX 0x0000000103c469df main + 111 15 libdyld.dylib 0x000000010b74868d start + 1 16 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException

App crashes when call is ended

App crashes when call is ended by subscriber. Fails at return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]) in main. The error is EXC_BAD_ACCESS code=EXC_I386_GPFLT. This issue appears only when a client enters a chat, leaves the chat, enters again, and then leaves once more.

Can't receive ON_SESSION_DID_CONNECT event on android

When session connects, android is not receiving the ON_SESSION_DID_CONNECT event. I did the same test on iOS and it is working perfectly.

When I tried to debug the logcat I found the message:

unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionDidConnect",{"sessionId":"1_MX40..."}])

I hope someone could help me to fix this problem.

npm install react-native-opentok installs only package.json file and nothing more

After running
npm install react-native-opentok
in
(path to RN project)/node_modules/react-native-opentok we have only some package.json file with untypical/undocumented keys. No other files are installed. Also, both the installed file and npm website show version 1.0.14, while in the GitHub repository package.json shows version 0.0.1.

My configuration: npm 4.6.1, Node 7.10.0, Mac.

The workaround is to change/dependency in our app's package.json to
"react-native-opentok": "git+ssh://[email protected]:callstack-io/react-native-opentok.git"

Provide better `Basic` example

  • Navigator
  • Two buttons (Subscriber, Publisher)
  • Form to provide required keys (persist them in AsyncStorage so that we don't have to set them again and again)

SessionManager.connect undefined is not an object

Hey,

I included the package to a project , it compiled well, but when I run it on android device, I'm getting the error.

"dependencies": {
"firebase": "^3.3.2",
"native-base": "^0.5.22",
"react": "^15.4.1",
"react-native": "^0.39.0",
"react-native-datepicker": "^1.4.3",
"react-native-firestack": "^2.3.5",
"react-native-fs": "^2.0.1-rc.2",
"react-native-gifted-chat": "0.0.10",
"react-native-incall-manager": "^1.5.4",
"react-native-modal-datetime-picker": "^4.0.0",
"react-native-oauth": "^2.1.2",
"react-native-opentok": "github:callstack-io/react-native-opentok",
"react-native-router-flux": "^3.37.0",
"react-native-scrollable-tab-view": "^0.6.0",
"react-native-vector-icons": "^2.1.0",
"react-redux": "^4.4.5",
"redux": "^3.6.0",
"redux-module-builder": "^0.3.2",
"redux-persist": "^3.5.0",
"redux-thunk": "^2.1.0"
},

Rewrite library

Things to be implemented before first release:

  • Reimplement library using session singletons & new API (iOS)
  • Reimplement library using session singletons & new API (Android)
  • Attach correct event handlers for current components
  • Investigate if multiple js inits works
  • Update README
  • Fix reload issue (iOS)

For future releases:

  • Migrate from depreacted ios methods
  • Cover more SDK
  • Add native tests?

Alternative Repo

We started a new TokBox wrapper because this one didn't support things we wanted like changing camera position etc. At the time we started it this repo was pretty old too but now looks like it may be back in business? :p Anyways, we took a lot of inspiration from this one. Please let me know if you have any comments/concerns etc. We will be using it in production soon so plan on supporting it for the foreseeable future.

https://github.com/500LABS/HotBox

Blank video on android

I am doing a proof of concept and did just the basics of starting a new react-native project and hooking up react-native-opentok based on the readme.

I added a publisher view and subscriber view right in the index.android.js file as so:

 return (
     <View style={styles.container}>
       <PublisherView
         apiKey={creds.apiKey}
         sessionId={creds.sessionId}
         token={creds.token}
         style={{ width: 300, height: 200 }}
       />

       <SubscriberView
         apiKey={creds.apiKey}
         sessionId={creds.sessionId}
         token={creds.token}
         style={{ width: 300, height: 200 }}
       />
     </View>
   );
 }

When I run the project, it does seem to connect to my session and send video to a sample web project I also made and am running locally. I can see the video and hear the audio from android but cannot see any video on the android device itself.

I am new to android development in general so I'm hoping i'm just missing something very simple but have you seen an issue like this before? Can you point me in the right direction to fix (ie could it be permissions, mismatch libraries, etc)?

If you guys aren't actively working on this any more, do you know of an alternative library?

Thx!

Video freeze after start between iOS and android

When I try to connect a android and iOS device everything works perfect.
But after 2 seconds the video freeze on android and never back, the audio continue to work perfectly.

The test was made under good connectivity and tested with 3 android phones and 2 iphones.

Update readme

Please, update installation guide for ios.
pod 'react-native-opentok', :path => '../node_modules/react-native-opentok' doesn't work.

Styling

Hi i was wondering whether you can set the style property on Publish and SubscribeViewer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.