callstack / react-native-opentok Goto Github PK
View Code? Open in Web Editor NEWReact Native OpenTok
React Native OpenTok
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.
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.
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!
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
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?
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.
@grabbou I have difficulties integrating the library with my project. What I do is below:
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!
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
"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.
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
}
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.
Before we release:
[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
Hey!
I'm trying to figure out how and works. Because when these components are rendered the onPublishStart
/ onSubscribeStart
event 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:
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!
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?
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
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()
I am unable to debug what's happening. iOS works great. Is there a restriction on the Android version that causes the crashes? Anyone else facing similar issue?
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?
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
As above.
I used PublisherView and that Mic is not working
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
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?
Right now we are sending some events from Subscriber/Publisher delegates, we should check if all of them are covered and implement missing ones
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.
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
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.
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?
*** 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 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.
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.
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"
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"
},
I can confirm that this works on API version 23,24 and 25. And it's crashing on 26 and 27.
Things to be implemented before first release:
init
s worksFor future releases:
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.
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!
I copied this repo and they create a sessionId and Token whenever someone goes to a room such as example.com/123.
I'm curious how one would hook up this react-native-opentok to the same sessionId and token as the other app at example.com/123.
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.
I want to set Opentok publisher stream resolution , so Could you tell me how to setting streamming resolution using this SDK.
Please, update installation guide for ios.
pod 'react-native-opentok', :path => '../node_modules/react-native-opentok' doesn't work.
Hi i was wondering whether you can set the style property on Publish and SubscribeViewer?
We should be able to hide linking pods and adding maven repo in android under the react-native link
command.
See following files for reference:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.