Socket
Socket
Sign inDemoInstall

opentok-react-native

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentok-react-native - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

2

package.json
{
"name": "opentok-react-native",
"version": "0.4.1",
"version": "0.5.0",
"description": "React Native components for OpenTok iOS and Android SDKs",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -78,2 +78,11 @@ ![OpenTok Labs](https://d26dzxoao6i3hh.cloudfront.net/items/0U1R0a0e2g1E361H0x3c/Image%202017-11-22%20at%2012.16.38%20PM.png?v=2507a2df)

11. Ensure you have enabled both camera and microphone usage by adding the following entries to your `Info.plist` file:
```
<key>NSCameraUsageDescription</key>
<string>Your message to user when the camera is accessed for the first time</string>
<key>NSMicrophoneUsageDescription</key>
<string>Your message to user when the microphone is accessed for the first time</string>
```
### Android Installation

@@ -101,2 +110,15 @@

7. As for the older Android devices, ensure you add camera and audio permissions to your `AndroidManifest.xml` file:
```xml
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="true" />
```
Newer versions of Android–`API Level 23` (Android 6.0)–have a different permissions model that is already handled by this lib.
## API Reference

@@ -215,2 +237,3 @@

| --- | --- |
| cameraPosition | Calls OT.changeCameraPosition() to toggle the camera |
| publishAudio | Calls OT.publishAudio() to toggle audio on and off |

@@ -240,2 +263,2 @@ | publishVideo | Calls OT.publishVideo() to toggle video on and off |

If you make changes to the project that you would like to contribute back then please follow the [contributing guidelines](CONTRIBUTING.md). All contributions are greatly appreciated!
If you make changes to the project that you would like to contribute back then please follow the [contributing guidelines](CONTRIBUTING.md). All contributions are greatly appreciated!

@@ -40,3 +40,7 @@ import React, { Component } from 'react';

const value = useDefault(this.props.properties[key], defaultValue);
OT[key](value);
if (key === 'cameraPosition') {
OT.changeCameraPosition(value);
} else {
OT[key](value);
}
}

@@ -47,2 +51,3 @@ };

updatePublisherProperty('publishVideo', true);
updatePublisherProperty('cameraPosition', 'front');
}

@@ -49,0 +54,0 @@ componentWillUnmount() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc