ทำแอปประชุม online ด้วย Zoom SDK และ Ionic mobile framework

เมื่อสองสามวันก่อน มีลูกค้ารายหนึ่ง มาปรึกษาว่า เค้าต้องการจะใช้ Wowza Video streaming server มาทำเป็น Online conference แต่เนื่องจากเค้าทำอย่างไรก็ยัง delay อยู่ประมาณ 5 วินาที แต่ความต้องการของลูกค้าเค้าอยากให้การตอบสนองเหมือน Zoom เลย
ผมก็เลยไปหาดูว่า Zoom มี API อะไรไหม ก็ได้ไปเจอ https://ionicframework.com/docs/native/zoom
เป็น Cordova plugin ที่ติดต่อกับ Zoom Video Conference service
import { Push, PushObject, PushOptions } from '@ionic-native/push/ngx';
constructor(private push: Push) { }
...
// to check if we have permission
this.push.hasPermission()
.then((res: any) => {
if (res.isEnabled) {
console.log('We have permission to send push notifications');
} else {
console.log('We do not have permission to send push notifications');
}
});
// Create a channel (Android O and above). You'll need to provide the id, description and importance properties.
this.push.createChannel({
id: "testchannel1",
description: "My first test channel",
// The importance property goes from 1 = Lowest, 2 = Low, 3 = Normal, 4 = High and 5 = Highest.
importance: 3,
//badge is used to if badge appears on the app icon see https://developer.android.com/reference/android/app/NotificationChannel.html#setShowBadge(boolean).
//false = no badge on app icon.
//true = badge on app icon
badge: false
}).then(() => console.log('Channel created'));
// Delete a channel (Android O and above)
this.push.deleteChannel('testchannel1').then(() => console.log('Channel deleted'));
// Return a list of currently configured channels
this.push.listChannels().then((channels) => console.log('List of channels', channels))
// to initialize push notifications
const options: PushOptions = {
android: {},
ios: {
alert: 'true',
badge: true,
sound: 'false'
},
windows: {},
browser: {
pushServiceURL: 'http://push.api.phonegap.com/v1/push'
}
}
const pushObject: PushObject = this.push.init(options);
pushObject.on('notification').subscribe((notification: any) => console.log('Received a notification', notification));
pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration));
pushObject.on('error').subscribe(error => console.error('Error with Push plugin', error));
สามารถไปดูรายละเอียดได้ตาม link ข้างบน ทำไมถึงต้องทำแบบนี้ให้ดูยุ่งยากด้วย คำตอบคือลูกค้าต้องการที่จะต้องการนำ content อื่นมาใส่ไว้ใน app และใน app จะต้องมี meeting room และต้องการควบคุมการเข้าถึงของผู้เข้าฟัง meeting นั้นๆ
Related Posts
- การสร้างรายงาน Excel แบบกำหนดเองด้วย Python: คู่มือฉบับสมบูรณ์
- Pythonを使ったカスタムExcelレポートの生成:完全ガイド
- Generating Custom Excel Reports with Python: A Comprehensive Guide
- CeleryとRabbitMQの連携方法: 総合的な概要
- วิธีการทำงานร่วมกันระหว่าง Celery และ RabbitMQ: ภาพรวมที่ครอบคลุม
- How Celery and RabbitMQ Work Together: A Comprehensive Overview
- วิธีเริ่มต้นโครงการ Django ด้วย Vim, Docker Compose, MySQL, และ Bootstrap
- How to Start a Django Project with Vim, Docker Compose, MySQL, and Bootstrap
- OCPPシステムをゼロから構築するための包括的ガイド
- ทำไมการเข้าใจ Design Pattern จึงสำคัญสำหรับโครงการขนาดใหญ่เช่น Odoo
Articles
- AIはどのようにして偽造された高級品を検出するのか?
- AI ช่วยตรวจจับสินค้าหรูปลอมได้อย่างไร?
- How AI Helps in Detecting Counterfeit Luxury Products
- The Cold Start Problem の概念を活用して eCommerce ビジネスを成長させる方法
- 🚀วิธีนำแนวคิดจาก The Cold Start Problem มาใช้เพื่อขยายธุรกิจ eCommerce ของคุณ
- 🚀 How to Apply The Cold Start Problem Concepts to Grow Your eCommerce Business
- YOLOの理解: 仕組みとサンプルコード
- การทำความเข้าใจ YOLO: วิธีการทำงานและตัวอย่างโค้ด
- Understanding YOLO: How It Works & Sample Code
- PythonでAIを活用した広告最適化システムを構築する方法
- วิธีสร้างระบบเพิ่มประสิทธิภาพโฆษณาด้วย AI ใน Python
- How to Build an AI-Powered Ad Optimization System in Python
- SMEがオープンソースAIモデルを活用してビジネスを拡大する方法
- วิธีที่ SMEs สามารถใช้โมเดล AI โอเพ่นซอร์สเพื่อขยายธุรกิจของตน
- How SMEs Can Use Open-Source AI Models to Grow Their Business
- 的中文翻译为: "如何使用 Python 和 PLC 数据自动化工业流程
- PythonとPLCデータを活用した産業プロセスの自動化
- วิธีการทำให้กระบวนการอุตสาหกรรมเป็นอัตโนมัติด้วย Python และข้อมูลจาก PLC
- How to Automate Industrial Processes with Python and PLC Data
- วิธีเชื่อมต่อและดึงข้อมูล PLC จากฐานข้อมูลด้วย Python
Our Products
Related Posts
- การสร้างรายงาน Excel แบบกำหนดเองด้วย Python: คู่มือฉบับสมบูรณ์
- Pythonを使ったカスタムExcelレポートの生成:完全ガイド
- Generating Custom Excel Reports with Python: A Comprehensive Guide
- CeleryとRabbitMQの連携方法: 総合的な概要
- วิธีการทำงานร่วมกันระหว่าง Celery และ RabbitMQ: ภาพรวมที่ครอบคลุม
- How Celery and RabbitMQ Work Together: A Comprehensive Overview
- วิธีเริ่มต้นโครงการ Django ด้วย Vim, Docker Compose, MySQL, และ Bootstrap
- How to Start a Django Project with Vim, Docker Compose, MySQL, and Bootstrap
- OCPPシステムをゼロから構築するための包括的ガイド
- ทำไมการเข้าใจ Design Pattern จึงสำคัญสำหรับโครงการขนาดใหญ่เช่น Odoo
Articles
- AIはどのようにして偽造された高級品を検出するのか?
- AI ช่วยตรวจจับสินค้าหรูปลอมได้อย่างไร?
- How AI Helps in Detecting Counterfeit Luxury Products
- The Cold Start Problem の概念を活用して eCommerce ビジネスを成長させる方法
- 🚀วิธีนำแนวคิดจาก The Cold Start Problem มาใช้เพื่อขยายธุรกิจ eCommerce ของคุณ
- 🚀 How to Apply The Cold Start Problem Concepts to Grow Your eCommerce Business
- YOLOの理解: 仕組みとサンプルコード
- การทำความเข้าใจ YOLO: วิธีการทำงานและตัวอย่างโค้ด
- Understanding YOLO: How It Works & Sample Code
- PythonでAIを活用した広告最適化システムを構築する方法
- วิธีสร้างระบบเพิ่มประสิทธิภาพโฆษณาด้วย AI ใน Python
- How to Build an AI-Powered Ad Optimization System in Python
- SMEがオープンソースAIモデルを活用してビジネスを拡大する方法
- วิธีที่ SMEs สามารถใช้โมเดล AI โอเพ่นซอร์สเพื่อขยายธุรกิจของตน
- How SMEs Can Use Open-Source AI Models to Grow Their Business
- 的中文翻译为: "如何使用 Python 和 PLC 数据自动化工业流程
- PythonとPLCデータを活用した産業プロセスの自動化
- วิธีการทำให้กระบวนการอุตสาหกรรมเป็นอัตโนมัติด้วย Python และข้อมูลจาก PLC
- How to Automate Industrial Processes with Python and PLC Data
- วิธีเชื่อมต่อและดึงข้อมูล PLC จากฐานข้อมูลด้วย Python