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
380
What's new in Firebase 2021
d_date
2
1.4k
CI/CDをミニマルに構築する
d_date
1
550
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.3k
Integrate your app to modern world in Niigata
d_date
0
650
Other Decks in Programming
See All in Programming
Honoをフロントエンドで使う 3つのやり方
yusukebe
7
3.4k
.NET Frameworkでも汎用ホストが使いたい!
tomokusaba
0
180
なぜイベント駆動が必要なのか - CQRS/ESで解く複雑系システムの課題 -
j5ik2o
12
4.4k
DRFを少しずつ オニオンアーキテクチャに寄せていく DjangoCongress JP 2025
nealle
2
190
Go 1.24でジェネリックになった型エイリアスの紹介
syumai
1
190
dbt Pythonモデルで実現するSnowflake活用術
trsnium
0
220
Unity Android XR入門
sakutama_11
0
170
sappoRo.R #12 初心者セッション
kosugitti
0
260
楽しく向き合う例外対応
okutsu
0
530
JavaScriptツール群「UnJS」を5分で一気に駆け巡る!
k1tikurisu
9
1.8k
Django NinjaによるAPI開発の効率化とリプレースの実践
kashewnuts
1
160
Honoのおもしろいミドルウェアをみてみよう
yusukebe
1
210
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Agile that works and the tools we love
rasmusluckow
328
21k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
133
33k
KATA
mclloyd
29
14k
Git: the NoSQL Database
bkeepers
PRO
427
65k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
Code Review Best Practice
trishagee
67
18k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
What's in a price? How to price your products and services
michaelherold
244
12k
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͕ॿ͚ͯ͘ΕΔ