{"id":80188,"date":"2026-03-04T15:57:43","date_gmt":"2026-03-04T07:57:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80188.html"},"modified":"2026-03-04T15:57:43","modified_gmt":"2026-03-04T07:57:43","slug":"uniapp%e9%ab%98%e6%80%a7%e8%83%bd%e8%a7%86%e9%a2%91%e5%b0%81%e9%9d%a2%e6%8f%90%e5%8f%96%e7%bb%84%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80188.html","title":{"rendered":"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6"},"content":{"rendered":"<h2>muzi-video-cover&#xff1a;\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6<\/h2>\n<h4>&#x1f4a1; \u63d2\u4ef6\u7b80\u4ecb<\/h4>\n<p>muzi-video-cover \u662f\u4e00\u6b3e\u4e13\u4e3a UniApp \u6253\u9020\u7684\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u89e3\u51b3\u65b9\u6848\u3002\u65e8\u5728\u89e3\u51b3\u539f\u751f uni.chooseVideo \u5728\u90e8\u5206 Android \u673a\u578b\u53ca H5 \u73af\u5883\u4e0b&#xff0c;thumbTempFilePath \u8fd4\u56de\u503c\u4e3a\u7a7a\u7684\u5e38\u89c1\u75db\u70b9\u3002<\/p>\n<p>\u672c\u63d2\u4ef6\u5e95\u5c42\u91c7\u7528 RenderJS \u5f02\u6b65\u622a\u5e27\u6280\u672f\u4e0e\u539f\u751f Bitmap \u8f6c\u6362\u65b9\u6848\u76f8\u7ed3\u5408\u3002\u786e\u4fdd\u5728 Android 8.0&#043; \u548c iOS 12.0&#043; \u73af\u5883\u4e2d&#xff0c;\u5747\u80fd\u7a33\u5b9a\u3001\u9ad8\u6e05\u5730\u622a\u53d6\u89c6\u9891\u9996\u5e27&#xff0c;\u5e76\u81ea\u52a8\u8f93\u51fa\u4e3a\u53ef\u76f4\u63a5\u7528\u4e8e\u7f51\u7edc\u4e0a\u4f20\u7684\u672c\u5730\u4e34\u65f6\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<hr \/>\n<h4>\u2728 \u6838\u5fc3\u7279\u6027<\/h4>\n<ul>\n<li>\u8de8\u7aef\u9ad8\u517c\u5bb9&#xff1a;\u5168\u9762\u652f\u6301 App&#xff08;Android \/ iOS&#xff09;\u53ca H5 \u5e73\u53f0&#xff0c;\u4ece\u6839\u672c\u4e0a\u89e3\u51b3\u5b98\u65b9 API \u5c01\u9762\u4e22\u5931\u95ee\u9898\u3002<\/li>\n<li>\u6781\u81f4\u6027\u80fd\u4f53\u9a8c&#xff1a;\u57fa\u4e8e RenderJS \u72ec\u7acb\u6e32\u67d3&#xff0c;\u8ba1\u7b97\u8fc7\u7a0b\u4e0d\u963b\u585e\u4e3b\u4e1a\u52a1\u7ebf\u7a0b&#xff0c;\u4fdd\u969c\u5e94\u7528\u6d41\u7545\u8fd0\u884c\u3002<\/li>\n<li>\u4e00\u952e\u683c\u5f0f\u8f6c\u5b58&#xff1a;\u5185\u90e8\u81ea\u52a8\u5b8c\u6210 Base64 \u5230\u672c\u5730\u4e34\u65f6\u8def\u5f84&#xff08;_doc \u76ee\u5f55&#xff09;\u7684\u65e0\u7f1d\u8f6c\u6362&#xff0c;\u5b8c\u7f8e\u5bf9\u63a5 uni.uploadFile\u3002<\/li>\n<li>\u73b0\u4ee3\u5316 UI \u8bbe\u8ba1&#xff1a;\u5185\u7f6e\u79d1\u6280\u84dd\u4e3b\u9898 UI \u4e0e\u9aa8\u67b6\u5c4f\u52a0\u8f7d\u52a8\u753b&#xff0c;\u652f\u6301\u7cfb\u7edf\u7ea7\u6697\u9ed1\u6a21\u5f0f (Dark Mode) \u9002\u914d\u3002<\/li>\n<li>\u8f7b\u91cf\u4e14\u7eaf\u51c0&#xff1a;\u57fa\u4e8e Vue3 \u89c4\u8303\u5f00\u53d1&#xff0c;\u96f6\u7b2c\u4e09\u65b9\u5e93\u4f9d\u8d56&#xff0c;\u6781\u81f4\u8f7b\u91cf&#xff0c;\u5373\u63d2\u5373\u7528\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>&#x1f4e6; \u5feb\u901f\u4e0a\u624b<\/h4>\n<h5>1. \u5f15\u5165\u65b9\u5f0f<\/h5>\n<p>\u672c\u63d2\u4ef6\u5b8c\u5168\u7b26\u5408 uni_modules \u89c4\u8303\u3002\u4e0b\u8f7d\u540e\u5c06\u5176\u89e3\u538b\u81f3\u9879\u76ee\u6839\u76ee\u5f55\u7684 uni_modules \u6587\u4ef6\u5939\u4e2d\u5373\u53ef&#xff0c;\u65e0\u9700\u624b\u52a8\u5168\u5c40\u6ce8\u518c\u6216 import \u5f15\u5165\u3002<\/p>\n<h5>2. \u57fa\u7840\u793a\u4f8b<\/h5>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>template<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>view<\/span> <span class=\"token attr-name\">class<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>container<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>muzi-video-cover<\/span> <span class=\"token attr-name\">&#064;confirm<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>handleVideoConfirm<span class=\"token punctuation\">&#034;<\/span><\/span> <span class=\"token punctuation\">\/&gt;<\/span><\/span><br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>view<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>template<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>script<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token script\"><span class=\"token language-javascript\"><br \/>\n<span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">methods<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">handleVideoConfirm<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">videoData<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      console<span class=\"token punctuation\">.<\/span><span class=\"token function\">log<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u63d0\u53d6\u6210\u529f&#xff0c;\u89c6\u9891\u5143\u6570\u636e&#xff1a;&#039;<\/span><span class=\"token punctuation\">,<\/span> videoData<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>      <span class=\"token comment\">\/* * videoData \u6838\u5fc3\u5b57\u6bb5\u8bf4\u660e&#xff1a;<br \/>\n       * &#8211; cover: \u53ef\u7528\u4e8e &lt;image&gt; \u76f4\u63a5\u9884\u89c8\u7684 Base64 \u5b57\u7b26\u4e32<br \/>\n       * &#8211; tempFilePath: \u53ef\u7528\u4e8e\u76f4\u63a5\u4e0a\u4f20\u7684\u672c\u5730\u6587\u4ef6\u8def\u5f84<br \/>\n       * &#8211; duration: \u89c6\u9891\u65f6\u957f (\u79d2)<br \/>\n       * &#8211; size: \u6587\u4ef6\u5927\u5c0f (Byte)<br \/>\n       *\/<\/span><\/p>\n<p>      <span class=\"token comment\">\/\/ \u6267\u884c\u6587\u4ef6\u4e0a\u4f20\u903b\u8f91\u793a\u4f8b<\/span><br \/>\n      uni<span class=\"token punctuation\">.<\/span><span class=\"token function\">uploadFile<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token literal-property property\">url<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;[https:\/\/your-api.com\/upload](https:\/\/your-api.com\/upload)&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u66ff\u6362\u4e3a\u60a8\u7684\u4e0a\u4f20\u63a5\u53e3<\/span><br \/>\n        <span class=\"token literal-property property\">filePath<\/span><span class=\"token operator\">:<\/span> videoData<span class=\"token punctuation\">.<\/span>tempFilePath<span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token literal-property property\">name<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;file&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token function-variable function\">success<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">res<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          uni<span class=\"token punctuation\">.<\/span><span class=\"token function\">showToast<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">title<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\u5c01\u9762\u4e0a\u4f20\u6210\u529f&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">icon<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;success&#039;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token function-variable function\">fail<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">err<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          console<span class=\"token punctuation\">.<\/span><span class=\"token function\">error<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u4e0a\u4f20\u5931\u8d25&#xff1a;&#039;<\/span><span class=\"token punctuation\">,<\/span> err<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<\/span><\/span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>script<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<hr \/>\n<h4>&#x1f4d6; API \u53c2\u8003<\/h4>\n<h5>\u7ec4\u4ef6\u4e8b\u4ef6 (Events)<\/h5>\n<table>\n<tr>\u4e8b\u4ef6\u540d\u79f0\u8bf4\u660e\u56de\u8c03\u53c2\u6570<\/tr>\n<tbody>\n<tr>\n<td>&#064;change<\/td>\n<td>\u7528\u6237\u5b8c\u6210\u89c6\u9891\u9009\u62e9\u5e76\u6210\u529f\u622a\u5e27\u65f6\u89e6\u53d1<\/td>\n<td>Result Object<\/td>\n<\/tr>\n<tr>\n<td>&#064;confirm<\/td>\n<td>\u7528\u6237\u70b9\u51fb\u201c\u786e\u8ba4\u5e76\u4e0a\u4f20\u201d\u6309\u94ae\u65f6\u89e6\u53d1<\/td>\n<td>Result Object<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>\u8fd4\u56de\u6570\u636e\u8bf4\u660e (Result Object)<\/h5>\n<table>\n<tr>\u53c2\u6570\u540d\u7c7b\u578b\u63cf\u8ff0<\/tr>\n<tbody>\n<tr>\n<td>tempFilePath<\/td>\n<td>String<\/td>\n<td>[\u63a8\u8350] \u8f6c\u6362\u540e\u7684\u672c\u5730\u4e34\u65f6\u6587\u4ef6\u8def\u5f84&#xff0c;\u9002\u7528\u4e8e\u6587\u4ef6\u4e0a\u4f20\u3002<\/td>\n<\/tr>\n<tr>\n<td>cover<\/td>\n<td>String<\/td>\n<td>\u622a\u5e27\u751f\u6210\u7684 Base64 \u683c\u5f0f\u5b57\u7b26\u4e32&#xff0c;\u9002\u7528\u4e8e\u672c\u5730\u5373\u65f6\u9884\u89c8\u3002<\/td>\n<\/tr>\n<tr>\n<td>size<\/td>\n<td>Number<\/td>\n<td>\u89c6\u9891\u539f\u59cb\u6587\u4ef6\u5927\u5c0f&#xff08;\u5355\u4f4d&#xff1a;Byte&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>width<\/td>\n<td>Number<\/td>\n<td>\u89c6\u9891\u5206\u8fa8\u7387\u5bbd\u5ea6\u3002<\/td>\n<\/tr>\n<tr>\n<td>height<\/td>\n<td>Number<\/td>\n<td>\u89c6\u9891\u5206\u8fa8\u7387\u9ad8\u5ea6\u3002<\/td>\n<\/tr>\n<tr>\n<td>duration<\/td>\n<td>Number<\/td>\n<td>\u89c6\u9891\u603b\u65f6\u957f&#xff08;\u5355\u4f4d&#xff1a;\u79d2&#xff09;\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879\u4e0e\u517c\u5bb9\u6027<\/h4>\n<li>\u5e73\u53f0\u9650\u5236&#xff1a;\u56e0\u5e95\u5c42\u4f9d\u8d56 RenderJS \u6280\u672f&#xff0c;\u672c\u7ec4\u4ef6\u76ee\u524d\u4ec5\u652f\u6301 App \u7aef\u4e0e H5 \u7aef\u3002\u6682\u4e0d\u652f\u6301\u5fae\u4fe1\u5c0f\u7a0b\u5e8f&#xff08;\u5c0f\u7a0b\u5e8f\u7aef\u5efa\u8bae\u76f4\u63a5\u8c03\u7528\u5b98\u65b9\u7ec4\u4ef6\u81ea\u5e26\u7684 thumb \u5c5e\u6027&#xff09;\u3002<\/li>\n<li>\u7cfb\u7edf\u8981\u6c42&#xff1a;\u6700\u4f4e\u517c\u5bb9\u7248\u672c\u4e3a Android 8.0 \u53ca iOS 9.0\u3002<\/li>\n<li>\u6743\u9650\u914d\u7f6e&#xff1a;\u6253\u5305 App \u65f6&#xff0c;\u8bf7\u786e\u4fdd\u5728 manifest.json \u4e2d\u58f0\u660e\u4e86\u76f8\u5173\u7cfb\u7edf\u6743\u9650&#xff1a;<\/li>\n<ul>\n<li>iOS: \u9700\u914d\u7f6e\u76f8\u518c\u8bbf\u95ee\u6743\u9650 NSPhotoLibraryUsageDescription\u3002<\/li>\n<li>Android: \u9700\u914d\u7f6e\u5916\u90e8\u5b58\u50a8\u8bfb\u53d6\u6743\u9650 android.permission.READ_EXTERNAL_STORAGE\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>&#x1f91d; \u53cd\u9988\u4e0e\u652f\u6301<\/h4>\n<p>\u5982\u679c\u60a8\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u9047\u5230\u4efb\u4f55\u6280\u672f\u95ee\u9898\u6216\u6709\u529f\u80fd\u5efa\u8bae&#xff0c;\u6b22\u8fce\u5728\u63d2\u4ef6\u5e02\u573a\u7684\u8bc4\u8bba\u533a\u7559\u8a00\u53cd\u9988\u3002<\/p>\n<p>\u5f00\u6e90\u4e0d\u6613&#xff0c;\u5982\u679c\u672c\u63d2\u4ef6\u4e3a\u60a8\u7684\u9879\u76ee\u5f00\u53d1\u5e26\u6765\u4e86\u4fbf\u5229&#xff0c;\u671f\u5f85\u60a8\u80fd\u5728\u63d2\u4ef6\u5e02\u573a\u7559\u4e0b\u5b9d\u8d35\u7684\u4e94\u661f\u597d\u8bc4&#xff0c;\u60a8\u7684\u9f13\u52b1\u662f\u6211\u4eec\u6301\u7eed\u66f4\u65b0\u7ef4\u62a4\u7684\u6700\u5927\u52a8\u529b&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>muzi-video-cover&#xff1a;\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6<br \/>\n&#x1f4a1; \u63d2\u4ef6\u7b80\u4ecb<br \/>\nmuzi-video-cover \u662f\u4e00\u6b3e\u4e13\u4e3a UniApp \u6253\u9020\u7684\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u89e3\u51b3\u65b9\u6848\u3002\u65e8\u5728\u89e3\u51b3\u539f\u751f uni.chooseVideo \u5728\u90e8\u5206 Android \u673a\u578b\u53ca H5 \u73af\u5883\u4e0b&#xff0c;thumbTempFilePath \u8fd4\u56de\u503c\u4e3a\u7a7a\u7684\u5e38\u89c1\u75db\u70b9\u3002<br \/>\n\u672c\u63d2\u4ef6\u5e95\u5c42\u91c7\u7528 RenderJS \u5f02\u6b65\u622a\u5e27\u6280\u672f\u4e0e\u539f\u751f Bitmap \u8f6c\u6362\u65b9\u6848\u76f8\u7ed3\u5408\u3002\u786e\u4fdd\u5728 Android 8.0 \u548c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9006,6726,387],"topic":[],"class_list":["post-80188","post","type-post","status-publish","format-standard","hentry","category-server","tag-9006","tag-6726","tag-uni-app"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/80188.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"muzi-video-cover&#xff1a;\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 &#x1f4a1; \u63d2\u4ef6\u7b80\u4ecb muzi-video-cover \u662f\u4e00\u6b3e\u4e13\u4e3a UniApp \u6253\u9020\u7684\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u89e3\u51b3\u65b9\u6848\u3002\u65e8\u5728\u89e3\u51b3\u539f\u751f uni.chooseVideo \u5728\u90e8\u5206 Android \u673a\u578b\u53ca H5 \u73af\u5883\u4e0b&#xff0c;thumbTempFilePath \u8fd4\u56de\u503c\u4e3a\u7a7a\u7684\u5e38\u89c1\u75db\u70b9\u3002 \u672c\u63d2\u4ef6\u5e95\u5c42\u91c7\u7528 RenderJS \u5f02\u6b65\u622a\u5e27\u6280\u672f\u4e0e\u539f\u751f Bitmap \u8f6c\u6362\u65b9\u6848\u76f8\u7ed3\u5408\u3002\u786e\u4fdd\u5728 Android 8.0 \u548c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80188.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-04T07:57:43+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80188.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80188.html\",\"name\":\"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-04T07:57:43+00:00\",\"dateModified\":\"2026-03-04T07:57:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80188.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80188.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80188.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/80188.html","og_locale":"zh_CN","og_type":"article","og_title":"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"muzi-video-cover&#xff1a;\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 &#x1f4a1; \u63d2\u4ef6\u7b80\u4ecb muzi-video-cover \u662f\u4e00\u6b3e\u4e13\u4e3a UniApp \u6253\u9020\u7684\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u89e3\u51b3\u65b9\u6848\u3002\u65e8\u5728\u89e3\u51b3\u539f\u751f uni.chooseVideo \u5728\u90e8\u5206 Android \u673a\u578b\u53ca H5 \u73af\u5883\u4e0b&#xff0c;thumbTempFilePath \u8fd4\u56de\u503c\u4e3a\u7a7a\u7684\u5e38\u89c1\u75db\u70b9\u3002 \u672c\u63d2\u4ef6\u5e95\u5c42\u91c7\u7528 RenderJS \u5f02\u6b65\u622a\u5e27\u6280\u672f\u4e0e\u539f\u751f Bitmap \u8f6c\u6362\u65b9\u6848\u76f8\u7ed3\u5408\u3002\u786e\u4fdd\u5728 Android 8.0 \u548c","og_url":"https:\/\/www.wsisp.com\/helps\/80188.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-04T07:57:43+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80188.html","url":"https:\/\/www.wsisp.com\/helps\/80188.html","name":"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-04T07:57:43+00:00","dateModified":"2026-03-04T07:57:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80188.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80188.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80188.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"UNIAPP\u9ad8\u6027\u80fd\u89c6\u9891\u5c01\u9762\u63d0\u53d6\u7ec4\u4ef6"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=80188"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80188\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80188"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}