react-native-nodemediaclient
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,1 +1,7 @@ | ||
// | ||
// index.js | ||
// | ||
// Created by Mingliang Chen on 2017/11/29. | ||
// Copyright © 2017年 NodeMedia. All rights reserved. | ||
// | ||
import NodeCameraView from './NodeCameraModule'; | ||
@@ -2,0 +8,0 @@ import NodePlayerView from './NodePlayerModule'; |
@@ -0,1 +1,8 @@ | ||
// | ||
// NodeCameraModule.js | ||
// | ||
// Created by Mingliang Chen on 2017/11/29. | ||
// Copyright © 2017年 NodeMedia. All rights reserved. | ||
// | ||
import React, { Component } from 'react'; | ||
@@ -23,3 +30,3 @@ import { PropTypes } from 'prop-types'; | ||
findNodeHandle(this.refs[RCT_VIDEO_REF]), | ||
UIManager.RCTNodeCamera.Commands.switch, | ||
UIManager.RCTNodeCamera.Commands.switchCamera, | ||
null | ||
@@ -29,2 +36,10 @@ ); | ||
flashEnable(enable) { | ||
UIManager.dispatchViewManagerCommand( | ||
findNodeHandle(this.refs[RCT_VIDEO_REF]), | ||
UIManager.RCTNodeCamera.Commands.flashEnable, | ||
[enable] | ||
); | ||
} | ||
startPreview() { | ||
@@ -31,0 +46,0 @@ UIManager.dispatchViewManagerCommand( |
@@ -0,1 +1,8 @@ | ||
// | ||
// NodePlayerModule.js | ||
// | ||
// Created by Mingliang Chen on 2017/11/29. | ||
// Copyright © 2017年 NodeMedia. All rights reserved. | ||
// | ||
import React, { Component } from 'react'; | ||
@@ -2,0 +9,0 @@ import { PropTypes } from 'prop-types'; |
{ | ||
"name": "react-native-nodemediaclient", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -62,9 +62,3 @@ # react-native-nodemediaclient | ||
## 5.权限 | ||
## Android for play | ||
android/app/src/main/AndroidManifest.xml | ||
``` | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
``` | ||
## Android for publish | ||
### Android | ||
``` | ||
@@ -74,3 +68,2 @@ <uses-feature android:name="android.hardware.camera"/> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.CAMERA"/> | ||
@@ -82,3 +75,3 @@ <uses-permission android:name="android.permission.RECORD_AUDIO"/> | ||
## iOS for publish | ||
### iOS | ||
Project -> Info | ||
@@ -85,0 +78,0 @@ |
@@ -63,9 +63,4 @@ # react-native-nodemediaclient | ||
## 5.permission | ||
## Android for play | ||
android/app/src/main/AndroidManifest.xml | ||
``` | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
``` | ||
## Android for publish | ||
### Android | ||
``` | ||
@@ -75,3 +70,2 @@ <uses-feature android:name="android.hardware.camera"/> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.CAMERA"/> | ||
@@ -83,3 +77,3 @@ <uses-permission android:name="android.permission.RECORD_AUDIO"/> | ||
## iOS for publish | ||
### iOS | ||
Project -> Info | ||
@@ -86,0 +80,0 @@ |
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
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
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104477
169
134