dedsudiyu il y a 1 mois
Parent
commit
3871596ad4
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      src/components/fullH5PlayerVideo/fullH5PlayerVideo.vue

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

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