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
1.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOSでWebRTCを使ってみた
2017/01/31(火) AKIBA.swift 第10回
d_date
January 31, 2017
More Decks by d_date
See All by d_date
TCA Practice in 5 min
d_date
2
1.9k
waiwai-swiftpm-part2
d_date
3
600
わいわいSwift PM part 1
d_date
2
490
What's new in Firebase 2021
d_date
2
1.6k
CI/CDをミニマルに構築する
d_date
1
630
Swift Package centered project - Build and Practice
d_date
20
17k
How to write Great Proposal
d_date
4
2.3k
Thinking about Architecture for SwiftUI
d_date
8
2.5k
Integrate your app to modern world in Niigata
d_date
0
750
Other Decks in Programming
See All in Programming
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
400
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
570
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
800
Android CLI
fornewid
0
220
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
190
Go 1.27 における memory allocation の高速化
andpad
0
160
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
0
130
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
490
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
110
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
690
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
110
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
590
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.1k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
570
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
390
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.3k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
HDC tutorial
michielstock
2
790
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
520
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Designing for Performance
lara
611
70k
For a Future-Friendly Web
brad_frost
183
10k
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͕ॿ͚ͯ͘ΕΔ