Save 37% off PRO during our Black Friday Sale! »

Implement P2P connection and stream your content

Implement P2P connection and stream your content

Slides I used at my talk at try! Swift Pre Talk 2019
https://tryswifttokyo-aftertalks.connpass.com/event/120987/

65f8e7fd7925a49241339277444d3fda?s=128

Yuki Yamamoto

March 19, 2019
Tweet

Transcript

  1. *NQMFNFOU11DPOOFDUJPOBOETUSFBNZPVSDPOUFOU USZ4XJGU1SF5BMLT  !SFESZFSZF

  2. 8IPBN* :VLJ:BNBNPUP • J04&OHJOFFSBU"."503*6. *OD • .BKPSJOH$PNQVUFS4DJFODFBU5FNQMF6OJW !SFESZFSZF !SFESZFSZF

  3. 

  4. 8IBUEPFT"."503*6.EP "SUJTUT $PMMFDUPST (BMMFSJFT .VTFVNT 4DBO #MPDLDIBJO .BOBHFNFOUBOE $FSUJGJDBUJPOWJB TNBSUDPOUSBDU

    4VCTDSJQUJPOCBTFE BSUXPSLTIBSJOH J04 UW04
  5. ʠ*XPVMEMJLFUPHJWFBUBMLBUUFDIFWFOUTCVU*UIJOLFWFSZPOFBMSFBEZ LOPXTXIBU*LOPXʡ

  6. None
  7. J04 UW04

  8. J04 UW04 %FWFMPQJOH"QQMF57$ISPNF$BTU • 0VUEBUFEEPDVNFOUT • 'FX%FWFMPQFST

  9. "HFOEB • $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU • #BTJDTUPJNQMFNFOU11DPOOFDUJPOVTJOH.VMUJQFFS$POOFDUJWJUZ • &YQFSJFODFXJUI(PPHMF$BTU4%,

  10. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU 4063$& 1"3,4"440$*"5&4 0.00% 5.00% 10.00% 15.00% 20.00% 25.00% 30.00%

    35.00% 40.00% 45.00% Q1/2014 Q1/2015 Q1/2017 Q1/2018 4USFBNJOH.FEJB1MBZFS0XOFSTIJQ  Series 1 2
  11. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU 4USFBNJOH.FEJB1MBZFS #SBOE4IBSFCZ*OTUBMMFE#BTF 2 4063$& 1"3,4"440$*"5&4

  12. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU 4063$& 1"3,4"440$*"5&4  3FMBUJWFMZDIFBQ 

  13. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU 4063$& 1"3,4"440$*"5&4  1PQVMBSJO+BQBO

  14. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU 4063$& 1"3,4"440$*"5&4  (SFBUVTBCJMJUZGPSHBNFT  &BTZUPQVSDIBTFDPOUFOU  "QQMFGPDVTJOHPOUIFJSPSJHJOBM DPOUFOUSFDFOUMZ

  15. .VMUJQFFS$POOFDUJWJUZ

  16. 5XPTUFQTJO.VMUJQFFS$POOFDUJWJUZ • &TUBCMJTIB4FTTJPO • 4FBSDIGPSDPOOFDUJPO

  17. 4FUUJOHVQ.VMUJQFFS$POOFDUJWJUZ

  18. 4FUUJOHVQ.VMUJQFFS$POOFDUJWJUZXJUIGSJFOEMZ6*

  19. .VMUJQFFS$POOFDUJWJUZXJUIGSJFOEMZ6* HJUIVCDPNSFESZFSZFUW04$BTU%FNP

  20. .VMUJQFFS$POOFDUJWJUZIBTB-JNJUBUJPO • .1$JTBXSBQQFSPOUPQPGʞ#POKPVSʟ "QQMFʟT[FSPDPOGJHVSBUJPOOFUXPSLJOH BSDIJUFDUVSF • .BOBHJOH1FFSTDBOBMXBZTCFJNQMFNFOUFENBOVBMMZGPSFYBNQMFVTJOH /4/FU4FSWJDF • &TQFDJBMMZXIFOZPVIBWFPOFTFSWFSBOENBOZDMJFOUT

  21. 1SFUUZNVDITUSBJHIUGPSXBSETPGBS

  22. )PX(PPHMF$BTU8PSLT 4FOET.FUBEBUB #SPXTFDPOUFOUCBTFE POUIF.FUBEBUB -PBETMJHIUXFJHIUXFCQBHF )5.- +4 $44 J044FOEFS"QQ

  23. )PX(PPHMF$BTU4%,8PSLT GCKMediaMetadata() GCKMediaInformationBuilder GCKRemoteMediaClient.loadMedia J044FOEFS"QQ HJUIVCDPNSFESZFSZF$BTU4%,JPTEFNP

  24. (PPHMF$BTU4%,QSPWJEFT$VTUPNJ[BCMF6* HJUIVCDPNSFESZFSZF$BTU4%,JPTEFNP

  25. 5BLF"XBZ • 4USFBNJOH%FWJDFPXOFSTIJQJTJODSFBTJOHBOEJUTUJMMIBTIPQF • .$1QSPWJEFTFBTJFSTPMVUJPOUPJNQMFNFOU11DPOOFDUJPOCVUOPUGPSUPPNBOZ EFWJDFT • (PPHMF$BTU4%,JTIJHIMZDVTUPNJ[BCMF

  26. *OUFSFTUFEJO"SU 8FBSFMPPLJOHGPSJOUFSOTBOEJ04EFWFMPQFST

  27. 5IBOLT :VLJ:BNBNPUP ZVLJ!BNBUPSJVNDPN !SFESZFSZF !SFESZFSZF

  28. 4PVSDFT • https://academy.realm.io/posts/tryswift-boris-bugling-tvos/ • https://developer.apple.com/videos/play/techtalks-apple-tv/11/ • https://www.parksassociates.com/blog/article/pr-05312018 • https://speakerdeck.com/patoroco/synchronizing-without-internet-multipeer-connectivity- ios?slide=17

    • https://forums.developer.apple.com/thread/5616
  29. "QQFOEJY

  30. .VMUJQFFS$POOFDUJWJUZ

  31. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU 4USFBNJOH.FEJB1MBZFS #SBOE4IBSFCZ*OTUBMMFE#BTF 2 2 4063$& 1"3,4"440$*"5&4

  32. $VSSFOU4USFBNJOH.FEJB1MBZFS.BSLFU30,6  $IFBQ   %FWFMPQT04GPS4NBSU57 30,604  /05JO+BQBOFTFNBSLFU

  33. J04 UW04 .VMUJQFFS$POOFDUJWJUZ $ISPNF$BTU4%,

  34. None