import {GlobalItemProp} from "../../../App"; import React, {Component} from "react"; import { ConfigListProp } from '../../chart.d'; import ReactPlayer from 'react-player' import {getValue} from "../../utils"; interface Prop { name : string ; data: GlobalItemProp ; style : React.CSSProperties ; } interface State { } /** * -webkit-animation: rotate 3s linear infinite; -moz-animation: rotate 3s linear infinite; -o-animation: rotate 3s linear infinite; animation: rotate 3s linear infinite; */ export default class ImgShiPin extends Component { render(){ const {data,style} = this.props; const setting : ConfigListProp|undefined = data.data.config.config; const url : string = getValue(setting,"视频地址"); const autoplay : boolean = getValue(setting,"播放设置.自动播放"); const loop : boolean = getValue(setting,"播放设置.循环播放") const controls : boolean = getValue(setting,"显示控制内容") const positionConfig : ConfigListProp | undefined = data?.data?.param?.config; const w : number = getValue(positionConfig,"宽度"); const h : number = getValue(positionConfig,"高度"); return ( ) } }