<template>
	<view>
		<nav-bar title="回放"></nav-bar>
		<view class="videoBox" >
			<view >
				<view class="video_box" style="width: 100%;height: 460rpx;">
					<polyv-player
						id="playerVideo"
						playerId="playerVideo"
						height="460rpx"
						:vid="vid"
						:showSettingBtn="true"
						:enablePlayGesture="true"
						:playbackRate="playbackRate"
						:isAllowSeek="isAllowSeek"
						:autoplay="autoplay"
					></polyv-player>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
import { mapGetters,mapMutations  } from 'vuex';
export default {
	data() {
		return {
			id:0,
			list: [],
			menuIndex:[],
			current:0,
			detail:{},
			courseList:[],
			menuList:[],
			freeMenuList:[],
			startStatus:false,
			playbackRate: [1.0,1.5,2.0],
			isAllowSeek:'yes',
			vid:'',
			autoplay:true,
		};
	},
	computed: { ...mapGetters(['userInfo']) },
	onLoad(option) {
		this.vid = option.vid;
	},
	mounted() {
		
	},
	methods: {
		 
	}
};
</script>
<style >
	page{
		background-color: #EAEEF1;
	}
</style>
<style scope>
	.video_t2 {
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #666666;
	}
	.video_t1 {
		height: 80rpx;
		color: #333333;
		line-height: 80rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #333333;
		overflow: hidden;
		text-overflow:ellipsis;
		white-space: nowrap;
	}
	.video_t1_t {
		display: flex;
		flex-direction: column;
		height: 80rpx;
		color: #333333;
		text-align: center;
		align-items: center;
		border-left: solid 1px #d6d6db;
	}
	.video_play {
		position: absolute;
		width: 95rpx;
		height: 95rpx;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: auto;
	}
	.video_box {
		position: relative;
	}
	.courseName{
		white-space:nowrap;
		overflow:hidden;
		text-overflow:ellipsis; 
	}
	.videoBox{
		background-color: #FFFFFF;
		width: 100%;
		/* height: 680rpx; */
		z-index: 999;
	}
	.icon_up{
		width: 32rpx;
		height: 32rpx;
	}
	.contentBox{
		
	}
	.courseItemBox{
		background: #FFFFFF;
		border-radius: 16rpx;
		padding: 0 10rpx;
		margin-bottom: 20rpx;
	}
	.courseItem{
		height: 80rpx;
		color: #333333;
		font-size: 32rpx;
		line-height: 80rpx;
		font-weight: bold;
		display: flex;
		justify-content: space-between;

	}
	.content{
		background-color: #FFFFFF;
		width: 100%;
	}
	.btn2{
		width: 200rpx;
		height: 64rpx;
		background: linear-gradient(0deg, #FFB102, #FD644F);
		box-shadow: 0rpx 10rpx 16rpx 4rpx rgba(1, 99, 235, 0.04);
		border-radius: 32rpx;
		line-height: 64rpx;
		text-align: center;
	}
	.btn1{
		width: 200rpx;
		height: 64rpx;
		background: linear-gradient(0deg, #015EEA, #00C0FA);
		border-radius: 32rpx;
		line-height: 64rpx;
		text-align: center;
		margin-right: 20rpx;
	}
	.bottomBox{
		position: fixed;
		bottom: 0;
		width: 100%;
		left: 0;
		height:98rpx ;
		background-color: #FFFFFF;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 30rpx;
	}
	.blackFont{
		color: #333333;
		margin: 0 4rpx;
	}
	.wk_icon{
		width: 24rpx;
		height: 24rpx;
		margin-right: 12rpx;
	}
	.noteTag{
		ont-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #999999;
		align-items: center;
	}
	.priceTag{
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #FF2D55;
	}
	.titleTag{
		font-size: 32rpx;
		font-weight: bold;
		color: #333333;
		margin-left: 8rpx;
	}
	.yearTag{
		width: 80rpx;
		height: 32rpx;
		background: #EBF5FF;
		border: 2rpx solid #007AFF;
		border-radius: 16rpx;
		font-size: 24rpx;
		color: #007AFF;
		text-align: center;
		line-height: 32rpx;
	}
	.itemBox{
		background: #FFFFFF;
		box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
		border-radius: 24rpx;
		width: 100%;
		padding: 20rpx;
		margin-bottom: 20rpx;
	}
</style>
