GithubHelp home page GithubHelp logo

maple-rtc / maple-rtc-dcloud-demo Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 21.52 MB

maple rtc dcloud uni-app

License: MIT License

HTML 16.43% Objective-C 31.24% CSS 2.89% JavaScript 10.19% Vue 34.30% SCSS 4.95%
dcloud rtc maple vue

maple-rtc-dcloud-demo's Introduction

maple-rtc-dcloud-demo

简介:

maple-rtc 为蓝蘑云推出的实时音视频系统,包括了实时音频,视频,变声,美颜等功能,适用于娱乐,游戏,教育等实时场景中;



这个开源项目演示了如何快速集成 maple-rtc SDK 到 dcloud 中,实现在应用中音视频通话效果。

在这个示例项目中包含了以下功能:

  • 加入通话和离开通话;
  • 扬声器和听筒切换功能;
  • 静音和解除静音;
  • 关闭摄像头和开启摄像头;
  • 切换前置摄像头和后置摄像头;
  • 播放流媒体音频文件;

支持多人音频,多人视频,1对1视频连麦等功能;

运行示例程序

首先在 联系对接群 701150764 蓝蘑云后台管理 注册账号,获取到 appID。将 appID 填写进 "common/app.js"

export const appId = "Your App ID";

然后在 maple-rtc SDK 下载 maple-rtc 实时音视频 SDK for dcloud,解压后将其中的 nativeplugins 文件夹复制到本项目的 nativeplugins 下。

HBuilderX 云打包:

参考HBuilderX 工具进行云打包;

Xcode 离线打包:

下载 dcloud 离线SDK dcloud SDK 下载 SDK, 解压到uniPlugin-iOS 目录下。

  • Build Setting选项 设置 Other Link Flags 加 -ObjC

  • Info 选项 设置Project Privacy来获取camera 和 microphone 权限;

最后使用 XCode 打开 HBuilder-uniPlugin.xcodeproj,连接 iPhone/iPad 测试设备,设置有效的开发者签名后即可运行。

Android studio 离线打包:

使用 Android Studio 打开uniPlugin-Android 项目,连上android设备,编译并运行。

运行环境

  • XCode 8.0 +
  • Android Studio 2.0 +
  • 两台 真机设备
  • 部分模拟器会存在功能缺失或者性能问题,所以推荐使用真机

联系我们

对接qq群 701150764

Demo

注:android可以测试运行,iOS 打包的可以下载demo代码自行打包产生;

android: Android 实时音视频演示Demo

maple-rtc-dcloud-demo's People

Contributors

maple-rtc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

d1227731421

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.