| 
														
															@@ -2,12 +2,12 @@ import { defineComponent, PropType } from 'vue' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import styles from './index.module.less'
 
														 | 
														
														 | 
														
															 import styles from './index.module.less'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import Plyr from 'plyr'
 
														 | 
														
														 | 
														
															 import Plyr from 'plyr'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import 'plyr/dist/plyr.css'
 
														 | 
														
														 | 
														
															 import 'plyr/dist/plyr.css'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import { Button, Icon, Loading } from 'vant'
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import { Button, Icon, Loading, Toast } from 'vant'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import iconVideoPlay from '@/common/images/icon_video_play.png'
 
														 | 
														
														 | 
														
															 import iconVideoPlay from '@/common/images/icon_video_play.png'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { browser } from '@/helpers/utils'
 
														 | 
														
														 | 
														
															 import { browser } from '@/helpers/utils'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import { state } from '@/state'
 
														 | 
														
														 | 
														
															 import { state } from '@/state'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import { listenerMessage } from '@/helpers/native-message'
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import { listenerMessage, postMessage } from '@/helpers/native-message'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default defineComponent({
 
														 | 
														
														 | 
														
															 export default defineComponent({
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   name: 'col-video',
 
														 | 
														
														 | 
														
															   name: 'col-video',
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   props: {
 
														 | 
														
														 | 
														
															   props: {
 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -177,6 +177,22 @@ export default defineComponent({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       })
 
														 | 
														
														 | 
														
															       })
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.player.on('play', () => {
 
														 | 
														
														 | 
														
															       this.player.on('play', () => {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        postMessage(
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            api: 'getDeviceStatus',
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            content: {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              type: 'video'
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          },
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          (res: any) => {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 判断是否在录屏中, 如果在录屏则不允许播放
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (res.content.status == '1') {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              Toast('为了保证数据安全,请不要录屏')
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.player.pause()
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        )
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.onPlay && this.onPlay()
 
														 | 
														
														 | 
														
															         this.onPlay && this.onPlay()
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       })
 
														 | 
														
														 | 
														
															       })
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 |