{"id":2777,"date":"2018-05-06T18:02:27","date_gmt":"2018-05-06T10:02:27","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2777"},"modified":"2018-05-06T18:02:27","modified_gmt":"2018-05-06T10:02:27","slug":"mobilevlckit%e5%92%8cvlckit%e5%a4%84%e7%90%86%e5%85%83%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2777","title":{"rendered":"MobileVLCKit\u548cVLCKit\u5904\u7406\u5143\u6570\u636e"},"content":{"rendered":"<p>\n\t<font><font>\u5728VLCKit\u4e2d\uff0c\u60a8\u64ad\u653e\u7684\u6bcf\u4e2a\u9879\u76ee\u90fd\u662fVLCMedia\u5bf9\u8c61\u3002<\/font><font>\u5bf9\u4e8e\u5178\u578b\u7684\u7528\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u542b\u8def\u5f84\u7684NSURL\u6216NSString\u521b\u5efa\u5b83\u3002<\/font><\/font>\n<\/p>\n<p>\n\t<font><font>\u6211\u4eec\u533a\u5206\u4e24\u79cd\u5143\u6570\u636e\uff1a\u63cf\u8ff0\u5a92\u4f53\u7684\u6280\u672f\u4fe1\u606f\uff0c\u5982\u7f16\u89e3\u7801\u5668\uff0c\u6bd4\u7279\u7387\uff0c\u89c6\u9891\u5927\u5c0f\u548c\u7528\u6237\u53ef\u89c1\/\u63d0\u4f9b\u7684\u4fe1\u606f\uff0c\u5982\u827a\u672f\u5bb6\uff0c\u51fa\u7248\u5546\u540d\u79f0\uff0c\u4e13\u8f91\u540d\u79f0\u3002<\/font><\/font>\n<\/p>\n<p>\n\t<font><font>\u8ba9\u6211\u4eec\u4ece\u6280\u672f\u4fe1\u606f\u5f00\u59cb\uff0c\u53ef\u4ee5\u4f7f\u7528\u5355\u4e2aAPI\u8c03\u7528\u4ece\u4efb\u4f55\u5a92\u4f53\u5bf9\u8c61\u4e2d\u68c0\u7d22\u6280\u672f\u4fe1\u606f\uff1a<\/font><\/font>\n<\/p>\n<pre class=\"brush:cpp;\">\r\n@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *tracksInformation;<\/pre>\n<p>\n\t<font><font>\u8fd9\u4e3a\u60a8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5305\u542b\u4e0e\u5a92\u4f53\u5305\u542b\u97f3\u8f68\u4e00\u6837\u591a\u7684\u5b57\u5178\u7684\u9635\u5217\uff0c\u65e0\u8bba\u662f\u89c6\u9891\uff0c\u97f3\u9891\u8fd8\u662f\u5b50\u56fe\u7247\uff08\u5b57\u5e55\uff0c\u56fe\u6587\u7535\u89c6\uff09\u3002<\/font><font>\u8f68\u9053\u7c7b\u578b\u7531<\/font><\/font><em><font><font>VLCMediaTracksInformationType<\/font><\/font><\/em><font><font>\u952e<\/font><font>\u5b9a\u4e49<\/font><font>\u3002<\/font><font>\u6240\u6709\u66f2\u76ee\u5c06\u5305\u542b\u6709\u5173\u5404\u81ea\u7f16\u89e3\u7801\u5668\uff0c\u6bd4\u7279\u7387\u548c\u7f16\u7801\u7ec6\u8282\u7684\u4fe1\u606f\u3002<\/font><font>\u6839\u636e\u97f3\u8f68\u7c7b\u578b\uff0c\u5c06\u8bbe\u7f6e\u89c6\u9891\u5c3a\u5bf8\uff0c\u97f3\u9891\u901a\u9053\u7f16\u53f7\u6216\u6587\u672c\u7f16\u7801\u7684\u952e\u4ee5\u53ca\u8bed\u8a00\u7684\u53ef\u9009\u952e\u3002<\/font><\/font><br \/>\n\t<font><font>\u68c0\u7d22\u6b64\u5c5e\u6027\u53ef\u80fd\u4f1a\u975e\u5e38\u6602\u8d35\uff0c\u5c24\u5176\u662f\u5982\u679c\u60a8\u7684\u5a92\u4f53\u8fdc\u7a0b\u5b58\u50a8\uff0c\u56e0\u4e3aVLCKit\u5c06\u540c\u6b65\u5206\u6790\u6e90\u4ee5\u63d0\u4f9b\u6b64\u4fe1\u606f\u3002<\/font><font>\u56e0\u6b64\uff0c\u6211\u4eec\u5efa\u8bae\u60a8\u7f13\u5b58\u6b64\u6570\u636e\uff0c\u56e0\u4e3a\u5b83\u5728VLCMedia\u5bf9\u8c61\u7684\u751f\u547d\u5468\u671f\u4e2d\u53ef\u80fd\u4e0d\u4f1a\u66f4\u6539\u3002<\/font><\/font><br \/>\n\t<font><font>\u6ce8\u610f\uff1a\u5bf9\u4e8e\u7f16\u89e3\u7801\u5668\u4fe1\u606f\uff0c\u60a8\u5c06\u6536\u5230\u4e00\u4e2a\u6574\u6570\uff0c\u8be5\u6574\u6570\u662f\u7f16\u89e3\u7801\u5668\u540d\u79f0\u7684\u539f\u59cbFOURCC\u8868\u793a\u3002<\/font><font>VLCKit 2.2\u4ee5\u540e\u7684\u53d1\u884c\u7248\u5c06\u5305\u542b\u4e00\u79cd\u4fbf\u5229\u65b9\u6cd5\uff0c\u5c06\u5176\u8f6c\u6362\u4e3a\u6700\u7ec8\u7528\u6237\u53ef\u8bfb\u7684\u5b57\u7b26\u4e32\u3002<\/font><\/font>\n<\/p>\n<p>\n\t<font><font>\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\uff0c\u5982\u679c\u7ed9\u5b9a\u8bbe\u5907\u8db3\u591f\u5f3a\u5927\u4ee5\u89e3\u7801\u7ed9\u5b9a\u89c6\u9891\u6587\u4ef6\uff0c\u5219\u53ef\u80fd\u4f1a\u9047\u5230\u95ee\u9898\u3002<\/font><font>\u4e3a\u6b64\uff0cVLCMedia\u5305\u542bisMediaSizeSuitableForDevice\u5c5e\u6027\uff0c\u5b83\u5c06\u63d0\u4f9b\u5408\u7406\u7684\u731c\u6d4b\u3002<\/font><font>\u8bf7\u6ce8\u610f\uff0c\u8be5\u5c5e\u6027\u5728OS X\u4e0a\u59cb\u7ec8\u4e3a\u771f\u3002<\/font><\/font>\n<\/p>\n<p>\n\t<font><font>\u90a3\u4e48\uff0c\u5173\u4e8e\u5a92\u4f53\u5185\u5bb9\u7684\u975e\u6280\u672f\u6027\u4fe1\u606f\u5462\uff1f<\/font><font>\u4e3a\u4e86\u68c0\u7d22\u5b83\u4eec\uff0cVLCKit\u9700\u8981\u89e3\u6790\u6e90\u4ee3\u7801\u3002<\/font><font>\u8fd9\u53ef\u4ee5\u540c\u6b65\u548c\u5f02\u6b65\u5b8c\u6210\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u9700\u6c42\u3002<\/font><font>\u6211\u4eec\u901a\u5e38\u5efa\u8bae\u60a8\u4f7f\u7528\u5f02\u6b65\u65b9\u5f0f\uff0c\u4ee5\u514d\u963b\u585e\u4efb\u4f55\u7ebf\u7a0b\u7684\u6267\u884c\u3002<\/font><font>VLCMedia\u5305\u542b\u4e00\u4e2a\u53ef\u9009\u7684\u59d4\u6258\u534f\u8bae\uff0c\u5b83\u5141\u8bb8\u60a8\u5728\u6bcf\u6b21\u8fdb\u4e00\u6b65\u7684\u4fe1\u606f\u53d8\u5f97\u53ef\u7528\u65f6\u4ee5\u53ca\u5728\u89e3\u6790\u5b8c\u6210\u65f6\u63a5\u6536\u901a\u77e5\uff0c\u4ece\u800c\u8ddf\u8e2a\u5143\u6570\u636e\u5904\u7406\u3002<\/font><\/font><br \/>\n\t<font><font>VLCKit\u53ef\u4ee5\u63d0\u4f9b\u591a\u8fbe17\u79cd\u4e0d\u540c\u7684\u5143\u6570\u636e\u5bc6\u94a5\uff0c\u5e76\u5728\u540e\u7eed\u7248\u672c\u4e2d\u63d0\u4f9b\u66f4\u591a\u5185\u5bb9\u3002<\/font><font>\u5c3d\u7ba1\u5b83\u5141\u8bb8\u4e00\u4e2a\u4e00\u4e2a\u5730\u8bfb\u53d6\u5b83\u4eec\uff0c\u4f46\u6211\u4eec\u5efa\u8bae\u60a8\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6\u5b8c\u6574\u7684\u5b57\u5178\uff1a<\/font><\/font>\n<\/p>\n<pre class=\"brush:cpp;\">\r\n@property (nonatomic, readonly, copy) NSDictionary * metaDictionary;<\/pre>\n<p>\n\t\u5982\u679c\u60a8\u6709\u5bf9\u5a92\u4f53\u6e90\u7684\u5199\u5165\u6743\u9650\uff0c\u5219\u8fd8\u53ef\u4ee5\u4e3a\u5404\u4e2a\u952e\u8bbe\u7f6e\u503c\u5e76\u5c06\u5176\u4fdd\u5b58\u5230\u78c1\u76d8\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2777\">MobileVLCKit\u548cVLCKit\u5904\u7406\u5143\u6570\u636e<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5728VLCKit\u4e2d\uff0c\u60a8\u64ad\u653e\u7684\u6bcf\u4e2a\u9879\u76ee\u90fd\u662fVLCMedia\u5bf9\u8c61\u3002\u5bf9\u4e8e\u5178\u578b\u7684\u7528\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u542b\u8def\u5f84\u7684NSURL\u6216NS [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118],"tags":[1636,1186,1637,1180,1013],"class_list":["post-2777","post","type-post","status-publish","format-standard","hentry","category-ndisdevelop","tag-vlc","tag-vlc-web","tag-vlckit","tag-1180","tag-1013"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2777"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2777\/revisions"}],"predecessor-version":[{"id":2778,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2777\/revisions\/2778"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}