npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jmrtc-react-native

v1.3.0

Published

a jmrtc plugin for react native application

Downloads

165

Readme

JMRTC React Native Plugin

安装

npm install jmrtc-react-native --save
react-native link jmrtc-react-native

配置

iOS 手动配置部分

注意:需要先确保自己工程中 Info.plist 包含 camera , Microphone 权限。

  • 设置后台模式,之后需要点开后台音频功能:在 TARGETS -> Capabilities -> Background Modes 里选择 Audio, AirPlay, and Picture in Picture。

  • 选择主工程 target -> Build Settings -> Enable Bitcode 设置为 No。

Android

  • 检查添加的配置项

  • 添加 JMRTCReactPackage

    在 MainApplication 中加上 JMRTCReactPackage ,JMRTCReactPackage 有两个参数:是否弹出 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
                );
            }
        };
    
    ...
    }

Usage

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' />
}

APIs

API