{"id":700,"date":"2018-04-09T10:33:05","date_gmt":"2018-04-09T02:33:05","guid":{"rendered":"http:\/\/www.bijienetworks.com\/?p=700"},"modified":"2018-04-09T10:33:05","modified_gmt":"2018-04-09T02:33:05","slug":"20180409airplay","status":"publish","type":"post","link":"https:\/\/www.bijienetworks.com\/news\/company\/20180409airplay","title":{"rendered":"Airplay\u5c4f\u5e55\u955c\u50cf\u6280\u672f\u5206\u6790\u4e0eAirplay SDK\u63d0\u4f9b"},"content":{"rendered":"
\u65e0\u7ebf\u6295\u5c4f<\/strong>\u5df2\u7ecf\u5728\u88ab\u5e7f\u6cdb\u5e94\u7528\u5728\u6211\u4eec\u8eab\u8fb9, \u6bd4\u5982\u7535\u89c6\u68d2\u673a\u9876\u76d2\u3001\u6295\u5f71\u4eea\u3001\u89c6\u9891\u4f1a\u8bae\u7cfb\u7edf\u7b49\u4f17\u591a\u4ea7\u54c1\u4e2d\u3002WiDi\uff0cMiracast\u7b49\u901a\u7528\u534f\u8bae\u4f7f\u8de8\u5e73\u53f0\u65e0\u7ebf\u6295\u5c4f\u8d8a\u6765\u8d8a\u65b9\u4fbf\u5feb\u6377\uff0c\u7136\u800c\u5728\u82f9\u679c\u7684iOS\u548cMac\u5e73\u53f0\u4e0a, \u5176\u8bbe\u5907\u4f7f\u7528\u82f9\u679c\u81ea\u4e3b\u7814\u53d1\u7684Airplay\u534f\u8bae\u5b9e\u73b0\u591a\u5c4f\u4e92\u52a8,\u4e14\u534f\u8bae\u53ea\u5bf9IOS\u3001OS\u751f\u6001\u5708\u4e2d\u7684\u4ea7\u54c1\u5f00\u653e\uff0c\u5bf9\u5176\u4ed6\u5e73\u53f0\u6280\u672f\u9650\u5236\u4e25\u683c\uff0c\u5e76\u4e14\u81ea\u4eceiOS9\u4e2d\u589e\u52a0\u4e86\u66f4\u4e25\u5bc6\u7684\u7b97\u6cd5, \u5f88\u591a\u8bbe\u5907\u5df2\u7ecf\u5f88\u96be\u4f7f\u7528airplay<\/strong>\u534f\u8bae\u8fdb\u884c\u65e0\u7ebf\u6295\u5c4f\u4e86\uff0c\u5fc5\u6377\u7f51\u7edc\u65e0\u7ebf\u6295\u5c4fSDK\u8f6f\u4ef6\u65b9\u6848\u63d0\u4f9bAirplay SDK<\/strong>\u540e\u6587\u5c06\u8fdb\u884c\u4ecb\u7ecd\u3002<\/span><\/p>\n iOS\u4e2d\u7684\u6295\u5c4f\u65b9\u6848:<\/span> 2, Airplay<\/span> \u540c\u65f6\uff0c\u901a\u8fc7\u7814\u7a76\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7Airplay Mirroring\u6280\u672f\uff0c\u505a\u5230\u5728iPhone\u4e0a\u628a\u81ea\u5df1\u7684\u5c4f\u5e55\u7684\u5185\u5bb9\u6295\u9001\u7ed9\u5f53\u524diPhone\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u8fd9\u79cdairplay\u7684\u7834\u89e3\u5374\u975e\u5e38\u6709\u7528\u5904,\u6bd4\u5982\u624b\u6e38\u76f4\u64ad\u3002\u8fd9\u4e2d\u6295\u5c4f\u65b9\u6848\u4f7f\u7528\u4e86iOS\u539f\u751f\u7684\u6295\u5c4f\u80fd\u529b\uff0c\u5e76\u4e14\u662f\u5b8c\u5168\u7684\u8f6f\u4ef6\u65b9\u6848\uff0c\u975e\u5e38\u65b9\u4fbf\u8fdb\u884c\u96c6\u6210\u548c\u4f7f\u7528\u3002<\/span><\/p>\n \u4e0b\u9762\u5c06\u4ecb\u7ecdAirplay Mirroring\u63a5\u6536\u7aef\u7684\u5b9e\u73b0\u539f\u7406\uff0c\u5e76\u63ed\u793a\u76f8\u5173\u534f\u8bae\u4ea4\u4e92\u8fc7\u7a0b\u3002<\/span><\/p>\n Airplay Mirroring\u5ba2\u6237\u7aef\u7684\u540c\u5c4f\u4ea4\u4e92\u8fc7\u7a0b\uff0c\u5206\u4e3a\u4e09\u4e2a\u4e3b\u8981\u6b65\u9aa4\uff1a<\/span><\/p>\n 1, \u8bbe\u5907\u5e7f\u64ad\u4e0e\u53d1\u73b0<\/span> \u5177\u4f53\u7684\u670d\u52a1\u5e7f\u64ad\u5185\u5bb9\uff0c\u53ef\u4ee5\u8fdb\u884c\u5c40\u57df\u7f51\u6293\u5305\uff0c\u627e\u5230\u5bf9\u5e94\u8bb0\u5f55\u5185\u5bb9\u3002<\/span><\/p>\n \u5f53\u63a5\u6536\u7aef\u901a\u8fc7Bonjour\u5e7f\u64ad\u5668\u670d\u52a1\u80fd\u529b\u540e\uff0c\u53d1\u9001\u7aef\uff08iOS\u8bbe\u5907\uff09\u5c31\u53ef\u4ee5\u53d1\u73b0\u8be5\u63a5\u6536\u7aef\u3002<\/span><\/p>\n \u4fe1\u606f\u4ea4\u4e92\u4e0e\u80fd\u529b\u534f\u5546:<\/span> \u5f53\u53d1\u9001\u7aef\u94fe\u63a5\u670d\u52a1\u7aef\u540e\uff0c\u8bbe\u5907\u5339\u914d\u8fc7\u7a0b\u5373\u5f00\u59cb\u3002\u901a\u4fe1\u53cc\u65b9\u4f1a\u8fdb\u884cfairplay\u52a0\u5bc6\u534f\u8bae\u8fdb\u884c\u4fe1\u606f\u4ea4\u6362\uff0c\u5f53\u5b8c\u6210\u4fe1\u606f\u4ea4\u6362\u540e\uff0c\u5ba2\u6237\u7aef\u540e\u7eed\u5fc5\u987b\u4f7f\u7528\u8fd9\u90e8\u5206\u4fe1\u606f\u6765\u5904\u7406\u52a0\u5bc6\u8fc7\u7684\u5bc6\u94a5\uff0c\u624d\u80fd\u83b7\u5f97\u8fdb\u4e00\u6b65\u89c6\u97f3\u9891\u89e3\u5bc6\u5bc6\u94a5\u3002\u5728iOS9\u4e4b\u540e\uff0c\u5728fairplay\u8fc7\u7a0b\u4e4b\u524d\uff0c\u589e\u52a0\u4e00\u4e2a\u8bbe\u5907\u5339\u914d\u8fc7\u7a0b\uff0c\u5373pair-setup\u3001pair-verify\u8fc7\u7a0b\uff0c\u5176\u4e3b\u8981\u7b97\u6cd5\u662f\u8f83\u4e3a\u6807\u51c6\u7684\u975e\u5bf9\u79f0\u516c\u94a5\u4ea4\u6362\u7b97\u6cd5\u3002<\/span><\/p>\n \u5f53\u4e24\u7aef\u6210\u529f\u5339\u914d\u540e\uff0c\u5f00\u59cb\u8fdb\u884c\u80fd\u529b\u534f\u5546\u4e0e\u4fe1\u606f\u4ea4\u6362\uff0c\u8fd9\u4e9b\u4fe1\u606f\u5305\u62ec\uff0c\u8bbe\u5907\u540d\u79f0\u3001\u4ee3\u53f7\uff0c\u97f3\u89c6\u9891\u63a5\u6536\u76f8\u5173\u7aef\u53e3\u914d\u7f6e\uff0c\u89c6\u9891\u63a5\u6536\u80fd\u529b\u4ee5\u53ca\u52a0\u5bc6\u5bc6\u94a5\u7b49\uff0c\u76f8\u5173\u4fe1\u606f\u4f7f\u7528binary plist\u683c\u5f0f\u8fdb\u884c\u5c01\u88c5\u3002<\/span>\u53ef\u4ee5\u53c2\u8003github.com\/espes\/Slav<\/span>e-M<\/span>e-in-thagic-Mirror\u627e\u5230\u76f8\u5173\u534f\u8bae\u4ea4\u4e92\u7684\u4e00\u4e9b\u7ec6\u8282\u3002<\/span><\/p>\n \u97f3\u89c6\u9891\u6570\u636e\u63a5\u6536\u4e0e\u89e3\u5bc6:<\/span> \u97f3\u89c6\u9891\u6d41\u90fd\u662f\u901a\u8fc7AES\u8fdb\u884c\u4e86\u52a0\u5bc6\u5904\u7406\uff0c\u5bc6\u94a5\u9700\u8981\u901a\u8fc7\u4e0a\u9762\u4e00\u6b65\u7684\u8fdb\u8fc7\u4fe1\u606f\u4ea4\u4e92\u540e\u7684fairplay\u6a21\u7ec4\u5bf9setup\u8fc7\u7a0b\u4e2d\u63a5\u6536\u5230\u7684\u52a0\u5bc6\u5bc6\u94a5\u8fdb\u884c\u89e3\u5bc6\uff0c\u83b7\u5f97\u7684AES\u89e3\u5bc6\u9700\u8981\u7684IV\u548cKEY\uff0c\u7136\u540e\u7ecf\u8fc7AES\u89e3\u6270\uff0c\u5373\u53ef\u4ee5\u83b7\u5f97\u6700\u7ec8\u7684\u89c6\u97f3\u9891\u6e05\u6d41\u3002<\/span><\/p>\n \u5176\u4ed6\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9:<\/span>
\n1, ReplayKit<\/span>
\niOS9\u4e2d\u5f15\u5165\u4e86ReplayKit, \u8ba9\u5f00\u53d1\u8005\u6709\u4e86\u4e00\u5b9a\u7684\u83b7\u53d6\u5c4f\u5e55\u6570\u636e\u7684\u80fd\u529b. \u5e76\u5728iOS10\u548ciOS11\u4e2d\u7ee7\u7eed\u6269\u5c55\u4e86ReplayKit\u7684\u80fd\u529b. \u4f46\u8fd8\u662f\u6709\u5f88\u5927\u7684\u9650\u5236, \u6bd4\u5982\u5728\u4f7f\u7528ReplayKit\u7684api\u65f6\u53ea\u80fd\u5f55\u5236\u5f53\u524d\u5e94\u7528\u7684\u5e94\u7528, \u65e0\u6cd5\u5728\u5e94\u7528\u8fdb\u5165\u540e\u53f0\u4e4b\u540e\u7ee7\u7eed\u5f55\u5c4f. \u5982\u679c\u4f7f\u7528\u7cfb\u7edf\u7ea7\u522b\u7684\u5c4f\u5e55\u5f55\u5236,\u53c8\u65e0\u6cd5\u83b7\u5f97\u6bcf\u4e00\u5e27\u7684\u6570\u636e,\u53ea\u80fd\u83b7\u5f97\u6700\u540e\u5f55\u53d6\u7684\u5355\u4e2a\u89c6\u9891. \u8fd9\u6837\u5bf9\u7b2c\u4e09\u65b9\u7684\u5f00\u53d1\u6709\u4e86\u975e\u5e38\u5927\u7684\u9650\u5236.<\/span><\/p>\n
\nAirplay\u662f\u82f9\u679c\u63d0\u4f9b\u7684\u4e00\u79cd\u591a\u5c4f\u4e92\u52a8\u6280\u672f, \u53ef\u4ee5\u5c06\u97f3\u9891\u7167\u7247,\u89c6\u9891, \u5c4f\u5e55\u4eceiOS\u8bbe\u5907\u6216\u8005Mac\u7535\u8111\u4e0a\u6295\u5c04\u5230\u652f\u6301airplay\u63a5\u53d7\u7684\u8bbe\u5907\u4e0a\uff0c\u5982Apple TV\u3002\u8fd9\u6837\u53ef\u4ee5\u5c06\u5c0f\u5c4f\u6620\u5c04\u5230\u5927\u5c4f\uff0c\u53ef\u4ee5\u65e0\u7ebf\u97f3\u4e50\uff0c\u53ef\u4ee5\u56fe\u7247\u5206\u4eab\u7b49\u7b49. \u4f46\u662fAirplay\u5c5e\u4e8e\u82f9\u679c\u79c1\u6709\u534f\u8bae\u65b9\u6848\uff0c\u8bbe\u5907\u95f4\u7684\u534f\u5546\u4e0e\u4f20\u8f93\u8fc7\u7a0b\u90fd\u8fdb\u884c\u4e86\u52a0\u5bc6\u5904\u7406\uff0c\u5e76\u4e0d\u80fd\u7528\u4e8e\u5176\u4ed6\u5e73\u53f0\u4e2d\u3002\u6211\u4eec\u5df2\u7ecf\u5b8c\u6574\u7684\u9006\u5411\u4e86Airplay\u7684\u5168\u90e8\u534f\u8bae\u6808\uff0c\u5e76\u7834\u89e3\u4e86\u5176\u52a0\u5bc6\u65b9\u6848\uff0c\u53ef\u4ee5\u63d0\u4f9b\u8de8\u5e73\u53f0Airplay\u63a5\u6536\u65b9\u6848\u3002\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5b9e\u73b0\u8de8\u5e73\u53f0\u7684\u591a\u5c4f\u5171\u4eab\u3002<\/span><\/p>\n
\n2, \u4fe1\u606f\u4ea4\u4e92\u4e0e\u80fd\u529b\u534f\u5546<\/span>
\n3, \u97f3\u89c6\u9891\u6570\u636e\u63a5\u6536\u4e0e\u89e3\u6270<\/span>
\n\u8bbe\u5907\u5e7f\u64ad\u4e0e\u53d1\u73b0:<\/span>
\nAirplay\u8bbe\u5907\u95f4\u7684\u5e7f\u64ad\u4e0e\u53d1\u73b0\u901a\u8fc7Bonjour\u534f\u8bae\u8fdb\u884c\u3002Bonjour\u4e5f\u88ab\u79f0\u4e3aZeroConf, mDNS\u7b49\uff0c\u53ef\u4ee5\u7528\u6765\u5728\u5c40\u57df\u7f51\u5185\u8fdb\u884c\u6570\u636e\u8bb0\u5f55\u5e7f\u64ad\u4e0e\u53d1\u73b0\u3002\u8be5\u534f\u8bae\u6bd4\u8f83\u6210\u719f\uff0c\u7f51\u4e0a\u53ef\u4ee5\u627e\u5230\u8bf8\u591a\u4ecb\u7ecd\u3002\u5bf9\u4e8e\u5b9e\u73b0\u7684Airplay\uff08\u5305\u62ecMirroring\uff09\u63a5\u6536\u7aef\u800c\u8a00\uff0c\u9996\u5148\u9700\u8981\u6ce8\u518c\u4e24\u7c7b\u670d\u52a1\uff0c\u5373airtunes\u548cairplay\u3002 Airtunes\u670d\u52a1\u4e3b\u8981\u7528\u6765\u5904\u7406\u5e7f\u64ad\u89c6\u97f3\u9891\u63a5\u6536\u80fd\u529b\u534f\u5546\uff0c\u662f\u6700\u4e3a\u91cd\u8981\u7684\u670d\u52a1\u5185\u5bb9\uff0c\u5bf9\u5e94Bonjour\u8bb0\u5f55\u540d\u79f0\u4e3a’_raop._tcp’\uff0c\u6ce8\u518c\u670d\u52a1\u7aef\u53e3\u4e0d\u9650\uff0c\u4e00\u822c\u4e3a\u4e86\u907f\u514d\u51b2\u7a81\uff0c\u5efa\u8bae\u91c7\u7528\u8f83\u9ad8\u7684\u7aef\u53e3\u6570\uff1bAirplay\u670d\u52a1\u4e3b\u8981\u7528\u6765\u517c\u5bb9\u4f20\u7edf\u7684streaming\u7b49\u670d\u52a1\uff0c\u5bf9\u5e94\u8bb0\u5f55\u540d\u79f0\u4e3a’_airplay._tcp’\uff0c\u6ce8\u518c\u7aef\u53e3\u4e00\u822c\u4e3a7000\u3002<\/span><\/p>\n
\n\u5f53\u53d1\u9001\u7aef\u53d1\u73b0\u63a5\u6536\u7aef\u540e\uff0c\u53ef\u4ee5\u5f00\u59cb\u4fe1\u606f\u4ea4\u4e92\u4e0e\u80fd\u529b\u534f\u5546\u8fc7\u7a0b\u3002\u8be5\u90e8\u5206\u534f\u8bae\u534f\u8bae\u683c\u5f0f\u7c7b\u4f3crtsp\u534f\u8bae\u683c\u5f0f\u3002\u4e3b\u8981\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff0c\u8bbe\u5907\u5339\u914d\u4e0e\u548c\u80fd\u529b\u534f\u5546\u3002<\/span><\/p>\n
\n\u53cc\u65b9\u534f\u5546\u6210\u529f\u540e\uff0c\u53d1\u9001\u7aef\u5f00\u59cb\u5411\u63a5\u6536\u7aef\u53d1\u9001\u89c6\u97f3\u9891\u6570\u636e\uff0cmirroring\u6570\u636e\u662f\u901a\u8fc7TCP\u8fdb\u884c\u53d1\u9001\uff0c\u4e3ah.264 ES\u6d41\u683c\u5f0f\u3002\u97f3\u9891\u662f\u901a\u8fc7RTP\u534f\u8bae\u8fdb\u884c\u53d1\u9001\uff0c\u6839\u636e\u5185\u5bb9\u7684\u4e0d\u540c\u97f3\u9891\u7f16\u7801\u4e3aALAC\u6216\u8005AAC-ELD\u3002<\/span><\/p>\n
\nAirplay\u6ca1\u8fc7Session\u4f20\u9001\u8fc7\u6765\u7684\u89c6\u9891h264\u7801\u6d41\uff0c\u53ea\u6709\u5f00\u5934\u4e00\u4e2a\u5173\u952e\u5e27. \u56e0\u6b64\u8fd9\u79cd\u60c5\u51b5\u5e76\u4e0d\u9002\u5408\u76f4\u64ad\u8fd9\u79cd\u9700\u8981\u56fa\u5b9aGOP\u7684\u573a\u666f. \u8fd8\u9700\u8981\u505a\u8fdb\u4e00\u6b65\u7684\u8f6c\u7801\u7684\u5de5\u4f5c\uff0c\u6216\u8005\u76f4\u63a5\u5728\u538b\u7f29\u57df\u8fdb\u884c\u5904\u7406\uff0c\u83b7\u5f97\u5408\u7406\u7684GOP\u7ed3\u6784\u3002<\/span><\/p>\n