Upgrade to Pro — share decks privately, control downloads, hide ads and more …

オンライン英会話アプリとSkyWay

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for taminif taminif
January 15, 2018

 オンライン英会話アプリとSkyWay

Avatar for taminif

taminif

January 15, 2018

More Decks by taminif

Other Decks in Programming

Transcript

  1. let options:SKWPeerOption = SKWPeerOption.init() options.key = `APIΩʔ` options.domain = `υϝΠϯ`

    peer = SKWPeer.init(options: options) peer?.on(SKWPeerEventEnum.PEER_EVENT_OPEN, callback: {(obj) -> Void in // my peer ID if let ownId = obj as? String { self.videoLessonRtdb.writeSkyWayId(id: ownId) } }) peer?.on(SKWPeerEventEnum.PEER_EVENT_CALL, callback: {(obj) -> Void in let mediaConnection:SKWMediaConnection = obj as! SKWMediaConnection self.videoConnection = mediaConnection mediaConnection.answer(self.localMediaStream) }) αϯϓϧίʔυ #import <SkyWay/SKWPeer.h> $PDPB1PETͰΠϯετʔϧ ͨ͠ϥΠϒϥϦΛΠϯϙʔτ 1FFSΦϒδΣΫτΛੜ੒ ʢγάφϦϯάαʔόʔʹ৘ ใॻ͖ࠐΈʣ ௨৴։࢝ ͜͜Ͱ͸ө૾ͱԻ੠Λૹ৴ ৘ใΛॻ͖ࠐΜͩΒɺ 1FFS*%͕ൃߦ͞Ε·͢