Component({properties:{lines:{type:Array,value:[]},forceVideo:{type:Boolean,value:!1},liveMode:{type:Number,value:1},closeDanmuEnable:{type:String,value:"N"},currentLine:{type:Number,value:0},currentRate:{type:Number,value:3},danmuEnabled:{type:Boolean,value:!0},changeScreenSuccess:{type:String,observer(e){this.setData({screenStatus:e})}},allowDanmu:{type:Boolean,value:!0}},data:{settingShow:!1,screenStatus:"half",settingShow:!1,playStatus:"playing"},lifetimes:{created(){},attached(){}},methods:{changePlayStatus(){"playing"===this.data.playStatus?(this.triggerEvent("changePlayStatus","pause"),this.setData({playStatus:"pause"})):(this.triggerEvent("changePlayStatus","play"),this.setData({playStatus:"playing"}))},refresh(){this.triggerEvent("refresh"),this.setData({playStatus:"playing"})},changeScreen(){"half"===this.data.screenStatus?this.triggerEvent("changeScreen","full"):this.triggerEvent("changeScreen","half")},hideSettingContent(){this.setData({settingShow:!1})},setting(){const{settingShow:e}=this.data;this.setData({settingShow:!e})},changeLine(e){const{dataset:t}=e.currentTarget;this.triggerEvent("changeLine",{src:t.src,line:t.line})},changeRate(e){const{index:t}=e.currentTarget.dataset;this.triggerEvent("changeRate",t)},danmuSwitch(){this.triggerEvent("updateDanmuEnabled",this.data.danmuEnabled)}}});