Переглянути джерело

//注释掉这个代码,用ohpm install @ohos/ijkplayer去装2.0.6版本这样可以修复wma快进快退拖动报错的问题

onecold 1 рік тому
батько
коміт
b2eeca0835

+ 4 - 4
build-profile.json5

@@ -52,10 +52,10 @@
         }
       ]
     },
-    {
-      "name": "ijkplayer",
-      "srcPath": "./ijkplayer"
-    },
+//    {
+//      "name": "ijkplayer",
+//      "srcPath": "./ijkplayer"
+//    },////注释掉这个代码,用ohpm install @ohos/ijkplayer去装2.0.6版本
     {
       "name": "lib",
       "srcPath": "./lib"

+ 1 - 1
entry/oh-package.json5

@@ -6,7 +6,7 @@
   "author": "",
   "license": "LGPLv2.1 or later",
   "dependencies": {
-    "@ohos/ijkplayer": "file:../ijkplayer",
+//    "@ohos/ijkplayer": "file:../ijkplayer",//注释掉这个代码,用ohpm install @ohos/ijkplayer去装2.0.6版本
     "libentry.so": "file:./src/main/cpp/types/libentry",
 //    "@csj/openadsdk": "file:libs/openadsdk_6.7.0.har",
     "@tencent/wechat_open_sdk": "1.0.0"

+ 1 - 1
entry/src/main/ets/pages/NewIndex.ets

@@ -162,7 +162,7 @@ struct NewIndex{
    */
 
   async aboutToAppear() {
-    // Utility.enableFullScreen()
+    Utility.enableFullScreen()
     this.topRectHeight = px2vp(AppUtil.getStatusBarHeight());
     Utility.getAppName(getContext(this)).then((appName:string)=>{
       this.appName = appName

+ 4 - 4
entry/src/main/ets/view/LocalMusic.ets

@@ -8988,10 +8988,10 @@ export struct LocalMusic {
 
   private seekTo(value: string) {
     // this.stopProgressTask();
-    if (StrUtil.isNotEmpty(this.videoUrl) && this.videoUrl.toLowerCase().endsWith('.wma')) {
-      ToastUtil.showToast('wma格式不支持拖动快进。')
-      return
-    }
+    // if (StrUtil.isNotEmpty(this.videoUrl) && this.videoUrl.toLowerCase().endsWith('.wma')) {
+    //   ToastUtil.showToast('wma格式不支持拖动快进。')
+    //   return
+    // }
 
     this.mIjkMediaPlayer.seekTo(value);
     // this.startPlayOrResumePlay()

+ 1 - 6
entry/src/main/module.json5

@@ -145,11 +145,6 @@
 
 
     ],
-    "metadata": [
-      {
-        "name": "client_id",
-        "value": "6917560202517406526"
-      }
-    ]
+
   }
 }