<template>
	<view class="page">
		<view class="goods-data safe-area-inset-bottom" >
			<view class="goods-list">
				<view class="list-view" v-for="(item,index) in list"  :key="index">
					<view class="thumb" >
						<video class="video"  :src="item.m3u8Url" :autoplay="false" :enable-progress-gesture="false" controls  ></video>
					</view>
					<view class="item">
						<view class="title">
							<text class="text-cut-2">{{item.deviceName}}</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		props: {
			list:Array
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
		.goods-data {
			width: 100%;
			margin-top: 20rpx;
			.goods-list {
				padding: 0 15rpx;
				border-radius: 6rpx;
				overflow: hidden;
				.list-view {
					position: relative;
					float: left;
					width: 100%;
					height: 470rpx;
					background-color: #eeeeee;
					border-radius: 6rpx;
					margin-right: 2%;
					margin-bottom: 20rpx;
					overflow: hidden;
					.thumb {
						width: 100%;
						//height: 300rpx;
						overflow: hidden;
						.video {
							width: 100%;
		                    height: 400rpx;
						}
					}
					.item {
						width: 100%;
						.title {
							margin-top: 10rpx;
							padding-left: 10rpx;
							text {
								width: 100%;
								color: #212121;
								font-size: 26rpx;
							}
						}
					}
				}
				.list-view:nth-child(2n) {
					margin-right: 0;
				}
			}
		}
</style>
