{"id":4906,"date":"2023-06-17T12:48:44","date_gmt":"2023-06-17T04:48:44","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4906"},"modified":"2023-06-17T12:53:25","modified_gmt":"2023-06-17T04:53:25","slug":"unity2021-3x%e6%92%ad%e6%94%be%e8%a7%86%e9%a2%91%e5%8d%a1%e4%bd%8f%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4906","title":{"rendered":"Unity2021.3X\u64ad\u653e\u89c6\u9891\u5361\u4f4f\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u786c\u4ef6\u73af\u5883\uff1a\u5c0f\u7c738 UD<\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aAndroid 9<\/p>\n<p>\u95ee\u9898\uff1a\u4f7f\u7528Unity\u5185\u7f6e\u7684VideoPlayer\u7ec4\u4ef6\uff0c\u64ad\u653emp4\u6587\u4ef6(h.264)<br \/>\u6709\u673a\u7387\u64ad\u5230\u4e00\u534a\uff0c\u5361\u4f4f<\/p>\n<p>\u5c1d\u8bd5\u65b9\u5f0f\uff1a<\/p>\n<p>1\u3001\u4f7f\u7528StreamingAssets+url\u7684\u65b9\u6cd5\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>2\u3001\u4f7f\u7528Assetbundle+VideoClip\u7684\u65b9\u6cd5\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>3\u3001\u4f7f\u7528Assetbundle+VideoClip\uff0c\u628aVideoClip\u8f6c\u6362\u6210VP8\u683c\u5f0f\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>4\u3001\u4f7f\u7528Resources+VideoClip\uff0c\u628aVideoClip\u4fee\u6539\u4e3aVP8\u683c\u5f0f\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>5\u3001\u4f7f\u7528Application.persistentDataPath + url\u7684\u65b9\u6cd5\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>6\u3001\u53bb\u6389mp4\u7684\u97f3\u9891\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>7\u3001\u4fee\u6539mp4\u4e3a\u5176\u5b83\u7f16\u7801\uff0c\u6216\u8005\u7981\u7528\u786c\u4ef6\u7f16\u7801\uff0c\u4fee\u6539Profile\u7248\u672c\u53f7\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>8\u3001\u4fee\u6539\u5bfc\u51fa\u7801\u7387\uff0c\u52304K\uff0c\u4f1a\u5361\u4f4f<\/p>\n<p>9\u3001\u4fee\u6539\u5bfc\u51fa\u7801\u7387\u52303K\uff0c\u6b63\u5e38\u64ad\u653e<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u786c\u4ef6\u73af\u5883\uff1a\u5c0f\u7c738 UD \u64cd\u4f5c\u7cfb\u7edf\uff1aAndroid 9 \u95ee\u9898\uff1a\u4f7f\u7528Unity\u5185\u7f6e\u7684VideoPlayer\u7ec4\u4ef6\uff0c\u64ad [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4906"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4906"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4906\/revisions"}],"predecessor-version":[{"id":4910,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4906\/revisions\/4910"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}