<!-- 添加好友组件 by wuyang -->
<template>
<div></div>
</template>

<script>
	import {
		getApi,
		postApi,
		getMessage
	} from "../../api/commonApi";
	export default {
		data() {
			return {

			};
		},
		created() {

		},
		methods: {
			//开启视频
			yaoqing() {
				let that = this;
				getApi('/system/fileinfo/roomUrl', {},
					function(data) {
						localStorage.setItem("video",data.url)//存储会议房间地址
						that.addvideo()
					},
					function(data) {
						getMessage(data.msg, 'error')
					});

			},
		// /addvideo  开启视频
			addvideo(){
					const { href } = this.$router.resolve({
          name: 'video'
        })
			let iWidth = 1050; //弹出窗口的宽度;
			let iHeight = 630; //弹出窗口的高度;
			let iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
			let iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
			 window.open(href+'?'+'ivideo=1', 'win_name2', "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" +
				iLeft);
      },

		}
	}
</script>
<style scoped="scoped">

</style>
<style>

</style>
