---
title: 30分で挑戦! Twilioを使ったWebRTCベースのビデオアプリケーション開発者体験とは？
tags: 
author: [Daizen Ikehara](https://www.docswell.com/user/Neri78)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/47QXZXZNJP.jpg?width=480
description: 2022/11/26に開催されたJSConf.jp 2022で発表した際に使用した資料です。
published: November 26, 22
canonical: https://www.docswell.com/s/Neri78/KXR6NK-2022-11-26-jsconfjp2022
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/47QXZXZNJP.jpg)

30分で挑戦!
Twilioを使ったWebRTCベースの
ビデオアプリケーション開発者体験とは？
2022.11.26
池原 大然 (@neri78)


# Page. 2

![Page Image](https://bcdn.docswell.com/page/KE463633J1.jpg)

Legal disclaimer・法的免責事項
This presentation and the accompanying oral presentation contain forward-looking statements. All
statements other than statements of historical fact contained in this presentation, including
statements as to future results of operations and ﬁnancial position, planned products and services,
business strategy and plans, objectives of management for future operations of Twilio Inc. and its
subsidiaries (“Twilio” or the “Company”), market size and growth opportunities, competitive
position and technological and market trends, are forward-looking statements. In some cases,
you can identify forward-looking statements by terms such as “expect,” “plan,” “anticipate,”
“intend,” “target,” “project,” “predict,” “potential,” “explore” or “continue” or the negative of these
terms or other similar words. Twilio has based these forward-looking statements largely on its
current expectations and assumptions and on information available as of the date of this
presentation. The Company assumes no obligation to update any forward-looking statements after
the date of this presentation, except as required by law.
The forward-looking statements contained in this presentation and the accompanying oral
presentation are subject to known and unknown risks, uncertainties, assumptions and other
factors that may cause actual results or outcomes to be materially diﬀerent from any future results
or outcomes expressed or implied by the forward-looking statements. These risks, uncertainties,
assumptions and other factors include, but are not limited to, those related to the Company’s
business and ﬁnancial performance, the Company’s ability to attract and retain customers, the
Company’s ability to develop new products and services and enhance existing products and
services, the Company’s ability to respond rapidly to emerging technology trends and adapt to
adverse changes in general economic or market conditions, the Company’s ability to comply with
modiﬁed or new industry standards, laws and regulations applying to its business, the Company’s
ability to execute on its business strategy, the Company’s ability to compete eﬀectively and the
Company’s ability to manage growth. Moreover, the Company operates in a very competitive and
rapidly changing environment, and new risks may emerge from time to time. It is not possible for
the Company to predict all risks, nor can the Company assess the impact of all factors on its
business or the extent to which any factor, or combination of factors, may cause actual results or
outcomes to diﬀer materially from those contained in any forward-looking statements the
Company may make.
This presentation also contains estimates and other statistical data made by independent parties
and by the Company relating to market size and growth and other industry data. These data
involve a number of assumptions and limitations, and you are cautioned not to give undue weight
to such estimates. The Company has not independently veriﬁed the statistical and other industry
data generated by independent parties and contained in this presentation and, accordingly, it
cannot guarantee their accuracy or completeness. In addition, projections, assumptions and
estimates of its future performance and the future performance of the markets in which the
Company competes are necessarily subject to a high degree of uncertainty and risk due to a
variety of factors. These and other factors could cause results or outcomes to diﬀer materially from
those expressed in the estimates made by the independent parties and by Twilio.
This presentation also includes certain non-GAAP ﬁnancial measures. These non-GAAP ﬁnancial
measures are in addition to, and not as a substitute for or superior to measures of ﬁnancial
performance prepared in accordance with GAAP. There are a number of limitations related to the
use of these non-GAAP ﬁnancial measures versus their nearest GAAP equivalents. For example,
other companies may calculate non-GAAP ﬁnancial measures diﬀerently or may use other
measures to evaluate their performance, all of which could reduce the usefulness of the
Company’s non-GAAP ﬁnancial measures as tools for comparison. The Company has provided a
reconciliation of those measures to the most directly comparable GAAP measures, which is
available in the appendix.
For further information with respect to Twilio, we refer you to our most recent quarterly report on
Form 10-Q ﬁled with the SEC. In addition, we are subject to the information and reporting
requirements of the Securities Exchange Act of 1934 and, accordingly, ﬁle periodic reports,
current reports, proxy statements and other information with the SEC. The ﬁnal prospectus and
these periodic reports, current reports, proxy statements and other information are available for
review at the SEC’s website at http://www.sec.gov.


# Page. 3

![Page Image](https://bcdn.docswell.com/page/L71V1V1ZJG.jpg)

自己紹介
池原 大然
Twilio デベロッパーエバンジェリスト
dikehara@twilio.com
Twitter: @neri78


# Page. 4

![Page Image](https://bcdn.docswell.com/page/G7WL8L86J2.jpg)



# Page. 5

![Page Image](https://bcdn.docswell.com/page/4JZM8M8R73.jpg)

Twilio = 様々なコミュニケーションチャネルをクラウドを介し、
プログラム可能な状態で利用できるサービス
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 6

![Page Image](https://bcdn.docswell.com/page/YE6NPNP1EV.jpg)

WebRTCとは？
Webブラウザ間でのリアルタイムコミュニケーションを実現する技術
https://www.twilio.com/blog/build-vs-buy-architect-guide-webrtc
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 7

![Page Image](https://bcdn.docswell.com/page/GE55K5KLE4.jpg)

Twilio Programmable Video
WebRTCを利用し、最大50名までのビデオチャット機能を提供
シグナリングをサポートする
インフラストラクチャ
Web, iOS, Android向けのSDK
メディアサービスの提供
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 8

![Page Image](https://bcdn.docswell.com/page/972NWNW3JR.jpg)

Twilio Programmable Video
2022 TWILIO INC. ALL RIGHTS RESERVED


# Page. 9

![Page Image](https://bcdn.docswell.com/page/DJYPLPL8JM.jpg)

「ルーム」ベースのビデオチャット
Peer-to-Peer Rooms
少人数向け（〜3名程度）
Group Rooms
大人数向け（最大50名）
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 10

![Page Image](https://bcdn.docswell.com/page/V7N54549E8.jpg)

全体像
フロントエンド
バックエンド
Twilio Video Room
ステータスコールバック
シグナリング通知
シグナリング命令
RESTリクエスト
ステータスコールバック
https://www.twilio.com/docs/video/tutorials/understanding-video-rooms-apis
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 11

![Page Image](https://bcdn.docswell.com/page/YJ9YQYQ373.jpg)

1. ルームの作成
Room作成を
リクエスト
Room情報を返信
Roomを作成
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 12

![Page Image](https://bcdn.docswell.com/page/GJ86G6GLED.jpg)

2. アクセストークンの生成
トークンを返信
アクセストークンをリク
エスト
Twilio資格情報を
用いてトークン作成
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 13

![Page Image](https://bcdn.docswell.com/page/LJL9G9GQ7R.jpg)

3. ルームに接続
アクセストークンの確
認および、シグナリン
グ接続の確立
アクセストークンを用
いて接続
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 14

![Page Image](https://bcdn.docswell.com/page/47MZQZLKJW.jpg)

4. トラックの処理
トラック1を公開
トラック1を購読
トラック2を公開
トラック2を購読
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 15

![Page Image](https://bcdn.docswell.com/page/P7R686K6E9.jpg)

こんな機能もあります
仮想背景 - https://www.twilio.com/blog/introducing-virtual-backgrounds-browser-based-video-applications
ノイズキャンセレーション - https://www.twilio.com/blog/introducing-noise-cancellation-for-twilio-video
© 2022 TWILIO INC. ALL RIGHTS RESERVED.


# Page. 16

![Page Image](https://bcdn.docswell.com/page/PJXM8MLDEX.jpg)

リソース
2022 TWILIO INC. ALL RIGHTS RESERVED


# Page. 17

![Page Image](https://bcdn.docswell.com/page/3JKGKGLD7D.jpg)

リソース
ドキュメント
https://www.twilio.com/ja/labs
ハンズオン手順書
https://neri78.github.io/Twilio-HandsOn-Video-JP
関連情報 - Qiita
https://qiita.com/search?q=twilio+video
2022 TWILIO INC. ALL RIGHTS RESERVED


# Page. 18

![Page Image](https://bcdn.docswell.com/page/LE3NZN3PE5.jpg)

1時間でできる日本語ハンズオン
https://neri78.github.io/Twilio-HandsOn-Video-JP/


# Page. 19

![Page Image](https://bcdn.docswell.com/page/8EDWRW437G.jpg)

お知らせ1 - Twilioハッカソンを開催！(12/3-4)
https://hackathon.we-are-ma.jp/twilio2022/


# Page. 20

![Page Image](https://bcdn.docswell.com/page/V7P9W9MPJ8.jpg)

お知らせ2 - Qiita Advent Calendar - プレゼント企画開催中！
賞品: 高性能デジタルカメラ、M2 iPad Pro、ワイヤレスノイキャンヘッドフォン
https://qiita.com/advent-calendar/2022/twilio


# Page. 21

![Page Image](https://bcdn.docswell.com/page/2JVM8M9VJQ.jpg)

Thank you
ありがとうございました


