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.5k
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.7k
waiwai-swiftpm-part2
d_date
3
560
わいわいSwift PM part 1
d_date
2
440
What's new in Firebase 2021
d_date
2
1.6k
CI/CDをミニマルに構築する
d_date
1
610
Swift Package centered project - Build and Practice
d_date
20
16k
How to write Great Proposal
d_date
4
1.9k
Thinking about Architecture for SwiftUI
d_date
8
2.5k
Integrate your app to modern world in Niigata
d_date
0
710
Other Decks in Programming
See All in Programming
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Basic Architectures
denyspoltorak
0
680
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
AI & Enginnering
codelynx
0
110
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
Data-Centric Kaggle
isax1015
2
780
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
370
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
180
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.4k
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
97
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
It's Worth the Effort
3n
188
29k
Optimizing for Happiness
mojombo
379
71k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
Unsuck your backbone
ammeep
671
58k
Six Lessons from altMBA
skipperchong
29
4.2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
77
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
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͕ॿ͚ͯ͘ΕΔ