{"id":9917,"date":"2021-04-18T17:55:09","date_gmt":"2021-04-18T09:55:09","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9917"},"modified":"2021-04-23T19:22:08","modified_gmt":"2021-04-23T11:22:08","slug":"tencent-vap-%e8%a7%86%e9%a2%91%e5%8a%a8%e7%94%bb","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2021\/04\/tencent-vap-%e8%a7%86%e9%a2%91%e5%8a%a8%e7%94%bb\/","title":{"rendered":"\u817e\u8baf\u5f00\u6e90\u7684\u9177\u70ab\u52a8\u753b\u64ad\u653e\u89e3\u51b3\u65b9\u6848Vap\u521d\u4f53\u9a8c"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9917\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9917<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202104-tencent-vap.png';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202104\/vap-cover.png\" width=\"530\" height=\"336\" alt=\"\u5360\u4f4d\u56fe \u5c01\u9762\u56fe vap\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<p>\u540c\u4e8b\u5728\u7fa4\u91cc\u6709\u63d0\u5230Vap\uff0c\u64ad\u653e\u70ab\u9177\u52a8\u753b\u7684\uff0c\u53ef\u4ee5\u8ba9\u52a8\u753b\u80cc\u666f\u900f\u660e\uff0c\u5c31\u53bb\u4e86\u89e3\u4e86\u4e0b\u3002<\/p>\n<p>\u76f8\u5173\u6548\u679c\u5927\u5bb6\u53ef\u4ee5\u8fd9\u91cc\u4f53\u9a8c\uff1a<a href=\"https:\/\/egame.qq.com\/vap\" rel=\"noopener\" target=\"_blank\">https:\/\/egame.qq.com\/vap<\/a><\/p>\n<p>\u4e5f\u53ef\u4ee5\u770b\u4e0b\u9762\u7684\u89c6\u9891\u64ad\u653e\u6548\u679c\uff08\u4e0d\u52a8\u70b9\u51fb\u64ad\u653e\uff09\uff1a<\/p>\n<p><video src='\/\/image.zhangxinxu.com\/video\/blog\/202104\/cool-video-ani.mp4' type=\"video\/mp4\" width=\"568\" height=\"328\" preload=\"auto\" autoplay autobuffer loop x-webkit-airplay=\"allow\" x5-video-player-type=\"h5\" x5-video-player-fullscreen=\"true\" x5-video-orientation=\"portraint\" webkit-playsinline=\"true\" playsinline=\"true\" \u200b\u200b\u200b\u200bposter=\"\/\/image.zhangxinxu.com\/image\/blog\/201806\/poster.png\"><\/video><\/p>\n<p>GitHub\u9879\u76ee\u5f00\u6e90\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/Tencent\/vap\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/Tencent\/vap<\/a><\/p>\n<p>\u539f\u672c\u4ee5\u4e3a\u662f\u76f4\u63a5\u5f04\u4e2a\u89c6\u9891\u5c31\u53ef\u4ee5\u64ad\u653e\u3002<\/p>\n<p>\u540e\u6765\u67e5\u770b\u5b98\u65b9\u6848\u4f8b\uff0c\u4e3a\u4e86\u8ba9\u52a8\u753b\u80cc\u666f\u6709\u534a\u900f\u660e\u7279\u8d28\uff0c\u5143\u7d20\u7d20\u6750\u4e0d\u662f\u89c6\u9891\uff0c\u800c\u662fPNG\u56fe\u7247\u5e8f\u5217\u3002<\/p>\n<p>\u4f18\u70b9\u548c\u539f\u7406\u8fd9\u91cc\u6709\u8be6\u7ec6\u4ecb\u7ecd\uff1a<a href=\"https:\/\/github.com\/Tencent\/vap\/blob\/master\/Introduction.md\" rel=\"noopener\" target=\"_blank\">Introduction.md <\/a><\/p>\n<p>\u81ea\u5df1\u5c31\u4e0d\u8d58\u8ff0\uff0c\u6211\u5c31\u5df2\u901a\u4fd7\u6613\u61c2\u65b9\u5f0f\uff0c\u7ad9\u5728\u521d\u6b21\u4f7f\u7528\u8005\u7684\u89d2\u5ea6\u8bb2\u8bb2\u8fd9\u4e2a\u9879\u76ee\u3002<\/p>\n<h3>\u4e00\u3001\u5927\u81f4\u7684\u5b9e\u73b0\u601d\u8def<\/h3>\n<p>\u5982\u679c\u662f\u8ba9\u666e\u901aMP4\u89c6\u9891\uff0c\u4ee5\u753b\u5e03\u7684\u5f62\u5f0f\u64ad\u653e\uff0c\u5219\u5176\u5b9e2D canvas\u5c31\u53ef\u4ee5\uff0cvideo.captureStream()\u65b9\u6cd5\u53ef\u4ee5\u8fd4\u56de\u5f53\u524d\u64ad\u653e\u7684\u89c6\u9891\u6d41\uff0c\u7136\u540e\u5728canvas\u4e2d\u7ed8\u5236\u5448\u73b0\u3002<\/p>\n<p>\u4f46\u662f\uff0c2D canvas\u7684\u6027\u80fd\u662f\u582a\u5fe7\u7684\uff0c\u5728\u79fb\u52a8\u7aef\uff0c\u5982\u679c\u753b\u9762\u5f88\u70ab\u9177\uff0c\u662f\u5e26\u4e0d\u52a8\u7684\u3002<\/p>\n<p>\u6b64\u65f6\u53ef\u4ee5\u4f7f\u7528WebGL\u8fdb\u884c\u64ad\u653e\uff0c\u89c6\u9891\u5e27\u4f5c\u4e3a\u7eb9\u7406\u8d34\u4e0a\u53bb\uff0c\u56e0\u4e3aWebGL\u4f1a\u542f\u52a8GPU\u52a0\u901f\uff0c\u6027\u80fd\u53ef\u4ee5\u7684\uff0c\u4f1a\u975e\u5e38\u6d41\u7545\u3002<\/p>\n<p>Vap\u5e95\u5c42\u5c31\u662f\u4f7f\u7528\u7684WebGL\u6280\u672f\uff0c\u6240\u4ee5\u6027\u80fd\u6709\u4fdd\u8bc1\u3002<\/p>\n<p>\u7136\u800c\uff0c\u4e0a\u9762\u7684\u65b9\u5f0f\u53ea\u9002\u7528\u4e8e\u56fe\u7247\u5b8c\u5168\u4e0d\u900f\u660e\u7684\u60c5\u51b5\u3002<\/p>\n<p>\u5982\u679c\u5e0c\u671b\u70ab\u9177\u52a8\u753b\u5e0c\u671b\u662f\u534a\u900f\u660e\uff0c\u6216\u8005\u90e8\u5206\u533a\u57df\u5168\u900f\u660e\uff0c\u5219\u4e0a\u9762\u8fd9\u79cd\u7b56\u7565\u5c31\u4f1a\u6349\u895f\u89c1\u8098\u3002<\/p>\n<p>\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u89e3\u51b3\u534a\u900f\u660e\u7684\u95ee\u9898\u5462\uff1f<\/p>\n<p>\u4ee5\u524d\u6211\u66fe\u63d0\u8fc7\u4e00\u4e2aCSS\u89e3\u51b3\u65b9\u6848\uff0c\u5c31\u662f\u4f7f\u7528CSS mix-blend-mode\u4e2d\u7684screen\uff0c\u8be6\u89c1\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/05\/css-mix-blend-mode-screen\/\">css-mix-blend-mode-screen<\/a><\/p>\n<p>\u4f18\u70b9\u662f\u6210\u672c\u4f4e\u5ec9\uff0c\u6548\u679c\u663e\u8457\uff0c\u6027\u4ef7\u6bd4\u6781\u9ad8\u3002<\/p>\n<p>\u4e0d\u8db3\u5728\u4e8e\uff0c\u53ea\u9002\u5408\u70ab\u4e3d\u7684\u52a8\u753b\u6548\u679c\uff0c\u52a8\u753b\u4e3b\u4f53\u5982\u679c\u6709\u6df1\u8272\u7684\u90e8\u5206\uff0c\u4f1a\u88ab\u8bef\u4f24\u88ab\u6df7\u5408\u6389\u3002\u4ee5\u53ca\u53ea\u9002\u7528\u4e8eweb\u3002<\/p>\n<h4>Vap\u7684\u5b9e\u73b0\u601d\u8def\u662f\u4ec0\u4e48\u5462\uff1f<\/h4>\n<p>\u201c\u628a\u900f\u660e\u901a\u9053\u4fe1\u606f\u85cf\u5728\u89c6\u9891\u4e2d\uff0c\u8fd9\u6837\u89e3\u6790\u89c6\u9891\u7684\u65f6\u5019\uff0c\u5c31\u80fd\u77e5\u9053\u6bcf\u4e2a\u50cf\u7d20\u70b9\u7684\u900f\u660e\u5ea6\u4e86\u3002\u201d<\/p>\n<p>\u4e0a\u9762\u8fd9\u53e5\u8bdd\u5927\u5bb6\u53ef\u80fd\u4e0d\u592a\u7406\u89e3\uff0c\u6211\u518d\u8be6\u7ec6\u89e3\u91ca\u4e0b\u3002<\/p>\n<p>github\u9879\u76ee\u9875\u9762\u4f1a\u770b\u5230\u4e00\u4e2a\u7d20\u6750\u5236\u4f5c\u5de5\u5177\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202104\/2021-04-15_190936.png\" width=\"530\" height=\"200\" alt=\"vaptool\u5de5\u5177\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u4e00\u5f00\u59cb\u6211\u5bf9\u8fd9\u4e2a\u5de5\u5177\u662f\u83ab\u540d\u5947\u5999\uff0c\u8fd9\u91cc\u9009\u62e9\u7684\u4e0d\u662f\u89c6\u9891\uff0c\u800c\u662f\u653e\u7f6e\u56fe\u7247\u5e8f\u5217\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202104\/2021-04-15_191136.png\" width=\"622\" height=\"295\" alt=\"\u9009\u62e9\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6211\u4e00\u8138\u61f5\u903c\uff0c\u6211\u8fd9\u8fb9\u6709\u5927\u628a\u7684\u89c6\u9891\u7d20\u6750\uff0c\u4e3a\u4f55\u8fd8\u9700\u8981\u56fe\u7247\u5e8f\u5217\u518d\u8f6c\u89c6\u9891\u5462\uff0c\u8fd9\u4e0d\u662f\u79c3\u5b50\u68b3\u5934\u2014\u2014\u591a\u6b64\u4e00\u4e3e\u561b\u3002<\/p>\n<p>\u540e\u6765\u660e\u767d\u4e86\uff0c\u901a\u5e38\u7684MP4\u89c6\u9891\u4e2d\u662f\u6ca1\u6709\u900f\u660e\u901a\u9053\u4fe1\u606f\u7684\u3002<\/p>\n<p>\u6240\u4ee5\u9700\u8981\u539f\u59cb\u7684\u5e26Alpha\u900f\u660e\u901a\u9053\u7684PNG\u56fe\u50cf\u5e8f\u5217\uff0c\u901a\u8fc7\u5de5\u5177\uff0c\u628a\u900f\u660e\u901a\u9053\u4fe1\u606f\u85cf\u5728\u89c6\u9891\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u968f\u610f\u6700\u7ec8\u751f\u4ea7\u7684\u89c6\u9891\u64ad\u653e\u65f6\u5019\uff0c\u4f1a\u591a\u51fa\u90e8\u5206\u9ed1\u767d\u7684\u533a\u57df\uff0c\u8fd9\u4e2a\u533a\u57df\u5c31\u662f\u900f\u660e\u901a\u9053\u4fe1\u606f\u3002<\/p>\n<p>\u5f53\u7136\u9664\u4e86\u53ef\u4ee5\u85cf\u900f\u660e\u901a\u9053\u4fe1\u606f\uff0c\u8fd8\u53ef\u4ee5\u85cf\u906e\u7f69\u4fe1\u606f\uff0c\u76f8\u5f53\u4e8e\u89c6\u9891\u9542\u7a7a\uff0c\u65b9\u4fbf\u663e\u793a\u52a8\u6001\u4fe1\u606f\u3002<\/p>\n<p>\u7136\u540e\uff0c\u5c31\u53ef\u4ee5\u5bf9\u7d20\u6750\u751f\u6210\u7684\u89c6\u9891\u8fdb\u884c\u89e3\u6790\uff0c\u8ba9\u8be5\u900f\u660e\u5ea6\u5730\u65b9\u900f\u660e\uff0c\u8ba9\u8be5\u9542\u7a7a\u7684\u5730\u65b9\u9542\u7a7a\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fVap\u7684\u5b9e\u73b0\u601d\u8def\u3002<\/p>\n<p><span class=\"hidden\">\/\/zxx: \u5982\u679c\u4f60\u770b\u5230\u8fd9\u6bb5\u6587\u5b57\uff0c\u8bf4\u660e\u4f60\u73b0\u5728\u8bbf\u95ee\u662f\u4f53\u9a8c\u7cdf\u7cd5\u7684\u5783\u573e\u76d7\u7248\u7f51\u7ad9\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u539f\u6587\u83b7\u5f97\u5f88\u597d\u7684\u4f53\u9a8c\uff1ahttps:\/\/www.zhangxinxu.com\/wordpress\/?p=9917\uff08\u4f5c\u8005\u5f20\u946b\u65ed\uff09<\/span><\/p>\n<p>\u660e\u767d\u4e86\u539f\u7406\uff0c\u6211\u4eec\u5c31\u77e5\u9053\uff0c\u5176\u5b9ePNG\u56fe\u7247\u5e8f\u5217\u65e0\u9700\u5408\u6210\u65b0\u89c6\u9891\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6548\u679c\uff0c\u4e5f\u5c31\u662fVapTool\u5de5\u5177\u662f\u591a\u4f59\u7684\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u81ea\u5df1\u5199\u4e2aNode\u5c0f\u811a\u672c\uff0c\u8bfb\u53d6PNG\u56fe\u7247\u5e8f\u5217\u6bcf\u4e2a\u50cf\u7d20\u70b9\uff08\u4e5f\u53ef\u4ee5\u56db\u70b9\u5408\u4e00\uff09\u7684Alpha\u900f\u660e\u901a\u9053\u4fe1\u606f\uff0c\u653e\u5728\u67d0\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u7406\u8bba\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5f00\u53d1\u4e2aWeb\u7248\u672c\u7684VapTool\u5de5\u5177\uff0c\u501f\u52a9ffmpeg.wasm\u5b9e\u73b0\u7c7b\u4f3c\u7684\u4e8b\u60c5\uff0c\u6027\u80fd\u4e0a\u4f1a\u5dee\u4e00\u4e9b\uff0c\u5173\u952e\u662f\u514d\u5b89\u88c5\uff0c\u7279\u522b\u9002\u5408\u67d0\u4e9b\u4e00\u6b21\u6027\u7684\u9879\u76ee\u3002<\/p>\n<p>\u522b\u770b\u6211\uff0c\u6211\u6ca1\u6709\u7cbe\u529b\u5f00\u53d1\u8fd9\u6837\u4e00\u4e2a\u9875\u9762\uff0c\u9664\u975e\u81ea\u5df1\u56e2\u961f\u4e1a\u52a1\u4e0a\u6709\u8fd9\u4e2a\u9700\u6c42\uff0c\u6211\u662f\u4f1a\u987a\u624b\u505a\u4e00\u4e2a\u7684\u3002<\/p>\n<p>\u6700\u8fd1\u5728\u8fde\u8f7d\u5c0f\u8bf4\uff0c\u5206\u8eab\u4e4f\u672f\u3002<\/p>\n<h3>\u4e8c\u3001\u8bd5\u7528\u521d\u4f53\u9a8c<\/h3>\n<p>\u8fd9\u5de5\u5177\u7684\u4f7f\u7528\u4e3b\u529b\u4e00\u770b\u5c31\u662fMAC\u8bbe\u5907\u3002<\/p>\n<p>\u5fc5\u987b\u7528windows\u7cfb\u7edf\u4f53\u9a8c\u4e00\u756a\uff0c\u9a8c\u8bc1\u4e0b\u7a76\u7adf\u597d\u4e0d\u597d\u7528\u3002<\/p>\n<ol>\n<li>\u9700\u8981\u56fe\u7247\u5e8f\u5217\u3002\n<p>\u81ea\u5df1\u627e\u4e86\u4e0a\u5468\u753b\u7684<a href=\"https:\/\/www.zhangxinxu.com\/life\/2021\/04\/ugly-orange\/\">\u6bcf\u65e5\u6f2b\u753b<\/a>\u56db\u5f20\u7d20\u6750\uff0c\u547d\u540d\u4e3a000.png\uff0c001.png\uff0c002.png\uff0c003.png\u3002<\/li>\n<li>\u4e0b\u8f7d VapTool_Java_Win_Full.zip\n<p>\u91cc\u9762\u6709 ffmpeg.exe \u8fd8\u6709 Jar \u8d44\u6e90\uff0c\u53cd\u6b63\u5c31\u662f Java \u4f7f\u7528 ffmpeg \u641e\u4e8b\u60c5\uff0cmp4edit\u505a\u7f16\u8f91\u6267\u884c\u3002<\/li>\n<li>\u9009\u62e9\u56fe\u7247\u5e8f\u5217\u5e27\u6240\u5728\u7684\u6587\u4ef6\u5939\uff0c\u7136\u540e\u4fee\u6539fps\u4e3a1\uff0c\u7ed3\u679c\u6302\u4e86\uff0c\u5931\u8d25\uff0c\u6362\u6210\u5b98\u65b9demo\u7684\u5e8f\u5217\u56fe\u4e5f\u662f\u5931\u8d25\uff1a\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202104\/2021-04-15_161147.png\" width=\"435\" height=\"343\" alt=\"\u8fd0\u884c\u5931\u8d25\u622a\u56fe\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u8fd9\u5c31\u6709\u70b9\u5751\u728a\u5b50\u4e86\u3002<\/p>\n<p>\u8fd9\u9519\u8bef\u63d0\u793a\u4e5f\u592a\u6ca1\u6709\u53c2\u8003\u4ef7\u503c\u4e86\uff0c\u5b8c\u5168\u4e0d\u77e5\u9053\u54ea\u91cc\u6709\u95ee\u9898\u3002<\/p>\n<p>\u540e\u6765\u641c\u554a\u641c\uff0c\u5386\u53f2\u6709\u4eba\u63d0\u8fc7\u7c7b\u4f3c\u7684\u95ee\u9898\uff0c\u539f\u6765\u662f vcruntime140_1.dll  \u6587\u4ef6\u7f3a\u5931\u5bfc\u81f4\uff0c\u6276\u989d\u3002<\/p>\n<p>\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u4e86\u4e2a vcruntime140_1.dll \u6587\u4ef6\u653e\u5728 windows\/system32\u6587\u4ef6\u5939\u4e0b\uff0c\u7ec8\u4e8e\u8dd1\u6210\u529f\u4e86\u3002<\/p>\n<p>\u4e0d\u8fc71fps\u6ca1\u6709\u4f5c\u7528\uff0c\u6bcf\u79d21\u5e27\u8c8c\u4f3c\u4e0d\u652f\u6301\uff0c\u4e5f\u53ef\u80fd\u662f\u81ea\u5df1\u54ea\u91cc\u4f7f\u7528\u59ff\u52bf\u4e0d\u5bf9\u3002<\/li>\n<li>\u6700\u540e\u5c31\u662f\u6839\u636e\u8f93\u51fa\u7684\u7d20\u6750\u6267\u884c\u4e86\u3002\n<p>\u4f1a\u8f93\u51fa\u4e00\u4e2aoutput\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u6709\u4e00\u4e2amd5.txt\u3001\u53ef\u4ee5\u7528\u505a\u6587\u4ef6\u6821\u9a8c\uff0cvapc.json\u662fconfig\u914d\u7f6e\u4fe1\u606f\uff0cvideo.mp4\u5c31\u662f\u5408\u6210\u540e\u7684\u89c6\u9891\uff08\u91cc\u9762\u5305\u542b\u4e86\u900f\u660e\u5ea6\u901a\u9053\u4fe1\u606f\uff0c\u906e\u7f69\u4fe1\u606f\uff08\u5982\u679c\u6709\uff09\uff09\u3002<\/p>\n<p>\u6b64\u65f6\u4e0b\u9762\u7684\u4ee3\u7801\u5c31\u53ef\u4ee5\u8dd1\u8d77\u6765\u4e86\u3002<\/p>\n<p>HTML\u90e8\u5206\uff1a<\/p>\n<pre>&lt;div id=\"container\"&gt;&lt;\/div&gt;<\/pre>\n<p>JS\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;script src=\".\/vap.js\"&gt;&lt;\/script&gt;\r\n&lt;script type=\"module\"&gt;\r\nnew Vap({\r\n    container: document.querySelector('#container'),\r\n    src: '.\/images\/output\/video.mp4',\r\n    width: 454,\r\n    height: 340,\r\n    config: {\"info\":{\"v\":2,\"f\":12,\"w\":454,\"h\":340,\"fps\":24,\"videoW\":464,\"videoH\":528,\"aFrame\":[0,344,227,170],\"rgbFrame\":[0,0,454,340],\"isVapx\":0,\"orien\":0}},\r\n    fps: 24\r\n})\r\n&lt;\/script&gt;<\/pre>\n<p><code>config<\/code>\u53c2\u6570\u5bf9\u8c61\u5c31\u662f\u590d\u5236\u7684\u751f\u6210\u7684vapc.json\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<p>\u9875\u9762\u9884\u89c8\u4e0b\uff0c\u4f1a\u662f\u4e0b\u56fe\u8fd9\u6837\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202104\/2021-04-15_200352.png\" width=\"502\" height=\"474\" alt=\"\u6d4b\u8bd5\u8f93\u51fa\u6548\u679c\" class=\"alignnone size-medium\" \/>\n<\/li>\n<\/ol>\n<p>\u4e0d\u8fc7\u4e0a\u9762\u8fd9\u4e2a\u6d4b\u8bd5\u6848\u4f8b\u4f7f\u7528\u7684\u662f\u5b8c\u5168\u4e0d\u900f\u660ePNG\u5e8f\u5217\u4e86\uff0c\u540e\u6765\u6211\u53c8\u4f7f\u7528\u5b98\u65b9\u7684PNG\u56fe\u6d4b\u8bd5\u4e86\u4e0b\uff0c\u4e5f\u662f\u53ef\u4ee5\u8dd1\u901a\u7684\u3002<\/p>\n<h3>\u4e09\u3001\u53ef\u80fd\u66f4\u5b9e\u7528\u7684\u4ef7\u503c<\/h3>\n<p>\u540e\u6765\u76f4\u63a5\u62ff\u4e86\u4e2a\u6ca1\u6709\u5904\u7406\u8fc7\u7684 MP4 \u89c6\u9891\u8fc7\u6765\uff0c\u53d1\u73b0\u4e5f\u80fd\u64ad\u653e\u3002<\/p>\n<p>\u6211\u5c31\u60f3\u5230\uff0cvap.js \u4e5f\u53ef\u4ee5\u4f5c\u4e3aweb\u89c6\u9891\u64ad\u653e\u89e3\u51b3\u65b9\u6848\uff0cAndroid\u8bbe\u5907\u4e2d\uff0c\u4ee5UC\u7b49\u6d4f\u89c8\u5668\u4e3a\u4ee3\u8868\uff0c\u8fd9\u4e9b\u6d4f\u89c8\u5668\u64ad\u653eMP4\u89c6\u9891\u7684\u65f6\u5019\uff0c\u89c6\u9891\u5c42\u7ea7\u6700\u9ad8\uff0c\u81ea\u5e26\u4e2a\u64ad\u653e\u5668\uff0c\u600e\u4e48\u90fd\u9690\u85cf\u4e0d\u6389\uff0c\u5f88\u70e6\u4eba\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u5904\u7406\u4e0b\u3002<\/p>\n<p>\u8fd9\u4e2a\u53ef\u80fd\u6bd4\u5e26PNG\u900f\u660e\u901a\u9053\u64ad\u653e\u66f4\u5b9e\u7528\u3002<\/p>\n<p>\u4e0d\u8fc7\u4e3a\u4ec0\u4e48\u52a0\u4e86mp3\u540e\uff0c\u53ea\u6709\u753b\u9762\uff0c\u6ca1\u6709\u58f0\u97f3\u5462\uff1f\u9884\u89c8\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202104\/vap.html\" rel=\"noopener\" target=\"_blank\">https:\/\/www.zhangxinxu.com\/study\/202104\/vap.html<\/a><\/p>\n<p>\u5927\u5bb6\u4e5f\u53ef\u4ee5\u5e2e\u5fd9\u6d4b\u8bd5\u4e0b\u770b\u770b\u3002<\/p>\n<p>\u6211\u81ea\u5df1\u6d4b\u4e0b\u6765\u7ed3\u679c\u662f\u8fd9\u6837\uff1a<\/p>\n<p>\u8f93\u51fa\u7684\u89c6\u9891\u6709\u58f0\u97f3\uff0c\u4f46\u662f\u5728\u6d4f\u89c8\u5668\u4e2d\u64ad\u653e\uff0c\u65e0\u8bba\u662fChrome\u6d4f\u89c8\u5668\u8fd8\u662fFirefox\u6d4f\u89c8\u5668\u90fd\u6ca1\u58f0\u97f3\u3002<\/p>\n<p>iOS 14 \u4e0b\u662f\u6709\u58f0\u97f3\u7684\uff0cAndroid \u5fae\u4fe1\u548c\u539f\u751f\u6d4f\u89c8\u5668\u6ca1\u58f0\u97f3\u3002<\/p>\n<p>\u6211\u53c8\u9677\u5165\u4e86\u6c89\u601d\u3002<\/p>\n<p>H5\u76f4\u64ad\u4f7f\u7528video\u65b9\u6848\u7684\u65f6\u5019\uff0c\u89c6\u9891\u5c42\u7ea7\u7684\u95ee\u9898\u662f\u4e2a\u8001\u5927\u96be\u95ee\u9898\uff0c\u5982\u679cvap.js \u53ef\u4ee5\u5f88\u597d\u5730\u89e3\u51b3\u97f3\u9891\u89e3\u7801\u95ee\u9898\uff0c\u8bf4\u4e0d\u5b9a\u53ef\u4ee5\u6709\u66f4\u5e7f\u9614\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<p>\u53ef\u60dc\u81ea\u5df1WebGL\u8fd9\u5757\u79ef\u7d2f\u8fd8\u5f88\u8584\u5f31\uff0c\u4e0d\u7136\u81ea\u5df1\u53ef\u4ee5\u64b8\u4e00\u64b8\u3002<\/p>\n<p>WebGL\u548c\u97f3\u89c6\u9891\u662f\u4eca\u5e74\u81ea\u5df1\u7684\u4e13\u4e1a\u5b66\u4e60\u91cd\u70b9\uff0c\u4f1a\u9646\u7eed\u6709\u6587\u7ae0\u8f93\u51fa\u3002<\/p>\n<p>\u4e5f\u6b22\u8fce\u5927\u5bb6\u53cd\u9988\u6bd4\u8f83\u597d\u7684\u76f8\u5173\u5b9e\u8df5\u6848\u4f8b\uff0c\u6211\u4f1a\u5f00\u7bb1\u8bc4\u6d4b\u7684\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6c42\u8f6c\u53d1\uff0c\u6c42\u5206\u4eab\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/2764.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9917\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9917<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202104\/vap-cover.png\" width=\"160\" height=\"101\" alt=\"\u817e\u8bafvap\" class=\"alignright  size-medium\" loading=\"lazy\" \/><\/p>\n<p>H5\u4e2d\u5e0c\u671b\u6709\u70ab\u91773D\u52a8\u6548\uff0c\u4f46\u662f3D WebGL\u5b9e\u529b\u4e0d\u5141\u8bb8\uff0c\u53ef\u4ee5\u8bd5\u8bd5\u4f7f\u7528\u672c\u6587\u8981\u4ecb\u7ecd\u7684VAP\uff0c\u5bfc\u51faPNG\u56fe\u7247\u5e8f\u5217\uff0c\u53ef\u4ee5\u6709\u9ad8\u6027\u80fd\u7684\u70ab\u9177\u52a8\u753b\u6548\u679c\uff0cAndroid\u548ciOS\u4e5f\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[180],"tags":[53,644,1254,204,1245,322,236,1749,1750],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9917"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=9917"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9917\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=9917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=9917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=9917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}