|  | @@ -2,12 +2,12 @@ import { defineComponent, PropType } from 'vue'
 | 
	
		
			
				|  |  |  import styles from './index.module.less'
 | 
	
		
			
				|  |  |  import Plyr from 'plyr'
 | 
	
		
			
				|  |  |  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 { browser } from '@/helpers/utils'
 | 
	
		
			
				|  |  |  import { state } from '@/state'
 | 
	
		
			
				|  |  | -import { listenerMessage } from '@/helpers/native-message'
 | 
	
		
			
				|  |  | +import { listenerMessage, postMessage } from '@/helpers/native-message'
 | 
	
		
			
				|  |  |  export default defineComponent({
 | 
	
		
			
				|  |  |    name: 'col-video',
 | 
	
		
			
				|  |  |    props: {
 | 
	
	
		
			
				|  | @@ -177,6 +177,22 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        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()
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |  
 |