Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOSでWebRTCを使ってみた
Search
d_date
January 31, 2017
Programming
0
1.4k
iOSでWebRTCを使ってみた
2017/01/31(火) AKIBA.swift 第10回
d_date
January 31, 2017
Tweet
Share
More Decks by d_date
See All by d_date
TCA Practice in 5 min
d_date
2
1.4k
waiwai-swiftpm-part2
d_date
3
480
わいわいSwift PM part 1
d_date
2
390
What's new in Firebase 2021
d_date
2
1.4k
CI/CDをミニマルに構築する
d_date
1
560
Swift Package centered project - Build and Practice
d_date
20
14k
How to write Great Proposal
d_date
4
1.2k
Thinking about Architecture for SwiftUI
d_date
8
2.4k
Integrate your app to modern world in Niigata
d_date
0
650
Other Decks in Programming
See All in Programming
ファインディLT_ポケモン対戦の定量的分析
fufufukakaka
0
930
データベースのオペレーターであるCloudNativePGがStatefulSetを使わない理由に迫る
nnaka2992
0
240
Learning Kotlin with detekt
inouehi
1
140
Kotlinの開発でも AIをいい感じに使いたい / Making the Most of AI in Kotlin Development
kohii00
5
1.3k
CloudNativePGを布教したい
nnaka2992
0
110
[JAWS DAYS 2025] 最近の DB の競合解決の仕組みが分かった気になってみた
maroon1st
0
120
Jasprが凄い話
hyshu
0
170
はじめての Go * WASM *OCR
sgash708
1
110
Generating OpenAPI schema from serializers throughout the Rails stack - Kyobashi.rb #5
envek
1
390
もう少しテストを書きたいんじゃ〜 #phpstudy
o0h
PRO
17
4.1k
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
170
AIプログラミング雑キャッチアップ
yuheinakasaka
18
4.6k
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
328
24k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Git: the NoSQL Database
bkeepers
PRO
427
65k
Building Applications with DynamoDB
mza
93
6.2k
Practical Orchestrator
shlominoach
186
10k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
The Cost Of JavaScript in 2023
addyosmani
47
7.4k
How to Think Like a Performance Engineer
csswizardry
22
1.4k
Transcript
iOSͰWebRTCΛ ͬͯΈͨ AKIBA.swift Daiki Matsudate(@d_date)
͍͖ͳΓDEMO
վΊͯࣗݾհ
Daiki Matsudate (@d_date) • ໊લͷಡΈํઈࢍ໎த (ex. ·ͭͩͯ͞ Μɺͩͯ͞ΜɺDate͞Μ) • ࠷ۙϛυϧωʔϜʹಌΕΔʢઈࢍืूதʣ
None
ࠓͷ༰ • ͋ͷσϞҰମͳΜͩͬͨͷ͔
͋ͷσϞҰମ ͳΜͩͬͨΜͩΖ͏
WebRTCͬͯͬͯ·͔͢ʁ
WebRTCͬͯͬͯ·͔͢ʁ • όϦόϦ͍ͬͯΔ • σϞ৮ͬͨ͜ͱ͕͋Δ • ໊લฉ͍ͨ͜ͱ͕͋Δ • ConnpassͰݟͨΑʂ •
ࠓॳΊͯฉ͍ͨ ߴ ͍ͬͯΔ ʹΘ͔
͜ΕͰ͋ͳͨʹΘ͔ଔۀʂ • όϦόϦ͍ͬͯΔ • σϞ৮ͬͨ͜ͱ͕͋Δ • ໊લฉ͍ͨ͜ͱ͕͋Δ • ConnpassͰݟͨΑʂ •
ࠓॳΊͯฉ͍ͨ
͍͍Ͷ͍ͩ͘͞
WebRTC ϒϥβϞόΠϧΞϓϦ্ͰԻ௨ɺϏσΦ ௨ͳͲͷReal-Time Communication(RTC)Λ ࣮ݱ͢ΔͨΊͷٕज़ Google, Mozilla, Opera͕ڞಉ։ൃ
ରԠϒϥβͱϓϥοτϑΥʔϜ • Chrome • Firefox • Opera • Android •
iOS
ରԠϒϥβͱϓϥοτϑΥʔϜ • Chrome • Firefox • Opera • Android •
iOS → ༏ઌॱҐΊײ
Official Sample https://github.com/webrtc/samples/
Official Sample https://github.com/webrtc/samples/ શ෦ϒϥβ൛ʂʂ
iOS࣮ͯ͘͠ΕͨGOD͕͍Δ
None
αʔόʔͲ͏͢Μͷʁʁ
None
ಀ͛Δஏ͕ͩʹཱͭ
ͪΐͬͱ͚ͩαʔόʔͷ͓
http://io13webrtc.appspot.com/
http://io13webrtc.appspot.com/
STUN (Session Traversal of UDP through NATs) • NATӽ͖͔͑͢ఆ͢Δαʔόʔ
http://io13webrtc.appspot.com/
TURN (Traversal Using Relay around NAT) • NATΛӽ͑ͯɺσʔλϦϨʔ͢Δ
http://io13webrtc.appspot.com/
ৄͪ͘͜͠Β http://io13webrtc.appspot.com/
ͭ·ΓɺSTUN/TURNΛ ߏங͢ΕΑͦ͞͏ʂ
…୭͕Δͷʁ
WebRTCΛ࣮ݱ͢ΔͨΊʹඞཁͳͷ • P2P௨৴͢Δϒϥβ/σόΠε • WebRTCͷࣝ • STUN/TURNͷࣝ • αʔόʔΛߏங͢Δਓ
WebRTCΛ࣮ݱ͢ΔͨΊʹඞཁͳͷ • P2P௨৴͢Δϒϥβ/σόΠε • WebRTCͷࣝ • STUN/TURNͷࣝ • αʔόʔΛߏங͢Δਓ ←
୭ʁ
https://nttcom.github.io/skyway/
Skyway • WebRTCͷϓϥοτϑΥʔϜ • iOS/AndroidͷϑϨʔϜϫʔΫΛఏڙ • ຊޠυΩϡϝϯτ • ແྉ(ਆ)
• WebRTCͷϓϥοτϑΥʔϜ • iOS/AndroidͷϑϨʔϜϫʔΫΛఏڙ • ຊޠυΩϡϝϯτ • ແྉ(ਆ) https://nttcom.github.io/skyway/
υΩϡϝϯτຊޠʂ • WebRTCͷϓϥοτϑΥʔϜ • iOS/AndroidͷϑϨʔϜϫʔΫΛఏڙ • ຊޠυΩϡϝϯτ • ແྉ(ਆ) https://nttcom.github.io/skyway/
·ͱΊ • ແྉ௨ɺϏσΦ௨Λ࣮ݱ͢ΔͳΒ WebRTC • ৄ͍͠Πϯϑϥ͓͡͞Μ͕͍ͳͯ͘ɺ SkyWay͕ॿ͚ͯ͘ΕΔ