Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
jmrtc-react-native
Advanced tools
npm install jmrtc-react-native --save
react-native link jmrtc-react-native
注意:需要先确保自己工程中
Info.plist
包含 camera , Microphone 权限。
设置后台模式,之后需要点开后台音频功能:在 TARGETS -> Capabilities -> Background Modes 里选择 Audio, AirPlay, and Picture in Picture。
选择主工程 target -> Build Settings -> Enable Bitcode 设置为 No。
添加 JMRTCReactPackage
在 MainApplication 中加上 JMRTCReactPackage ,JMessagePackage 有两个个参数:是否弹出 toast,是否打印插件log
import io.jmrtc.android.JMRTCReactPackage;; // <-- 导入 JMRTCReactPackage
public class MainApplication extends Application implements ReactApplication {
// 设置为 true 将不会弹出 toast
private boolean SHUTDOWN_TOAST = false;
// 设置为 true 将不会打印 log
private boolean SHUTDOWN_LOG = false;
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new JMRTCReactPackage(SHUTDOWN_TOAST, SHUTDOWN_LOG) // <-- 添加 JMRTCReactPackage
);
}
};
...
}
import { JMRTCViewController,JMRTCView} from 'jmrtc-react-native'
... your component code
JMRTCViewController.initEngine((success) => {
}, (error) => {
})
render() {
return <JMRTCView username='your user name or target user name' />
}
FAQs
a jmrtc plugin for react native application
The npm package jmrtc-react-native receives a total of 19 weekly downloads. As such, jmrtc-react-native popularity was classified as not popular.
We found that jmrtc-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.