dedsudiyu 1 månad sedan
förälder
incheckning
005c51f018
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      src/components/H5PlayerVideoTime/fullH5PlayerVideo.vue

+ 9 - 0
src/components/H5PlayerVideoTime/fullH5PlayerVideo.vue

@@ -141,6 +141,15 @@
           () => {
             // console.info('JS_Play success')
             // do you want...
+            //开启声音
+            this.myPlugin.JS_OpenSound().then(
+              () => {
+                console.log('openSound success')
+              },
+              e => {
+                console.error('声音开启失败',e)
+              }
+            )
           },
           (err) => {
             // console.info('JS_Play failed:', err)