You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.2 KiB

import React, { useState, useEffect, useRef } from "react";
import { connect } from "react-redux";
import moment from 'moment'
import { Button, Modal, } from "@douyinfe/semi-ui";
import VideoPlay from './videoPlay.jsx'
import './videoPlayModal.less';
const VideoPlayModal = ({ visible, close, videoObj, name }) => {
return (
<Modal
visible={visible}
header={null}
footer={null}
size={'large'}
style={{}}
bodyStyle={{}}
onCancel={() => { close() }}
className="videoModal"
>
<div id="video_local" style={{ width: '100%' }}>
<VideoPlay sizeWh={{
width:'',
height: '',
parentWidth: 918,
parentHeight: 460,
}}
videoObj={videoObj}
name={name}
height={460}
local={true}
// IsSize='true' //是否全屏
/>
</div>
</Modal>
)
}
function mapStateToProps (state) {
const { auth } = state;
return {
user: auth.user,
};
}
export default connect(mapStateToProps)(VideoPlayModal);