xmf b39278fd9c polish: 去除对项目数据的直接依赖,要求request版本5以上 1 tahun lalu
..
README.md 580d0ae232 feat(cip-dynamic-video): 新增动态地址的video组件 2 tahun lalu
index.jsx b39278fd9c polish: 去除对项目数据的直接依赖,要求request版本5以上 1 tahun lalu
index.less f970cfb7c7 polish: 完善cip-dynamic-video组件 2 tahun lalu

README.md

CipDynamicVideo

动态地址的h5视频播放器

Attributes

参数 说明 类型 可选值 默认值
src 视频地址 string -
autoplay 是否自动播放 boolean false

example

// proxy-config.js
// proxyConfig 数据
const proxyConfig = [
  {key: 'api', target: 'http://0.0.0.0:8080', productionTarget: '/api'}
]
import CipDynamicVideo from '@cip/components/cip-dynamic-video';
// 在获取实际的地址时将根据proxyConfig的地址进行处理
// 测试环境地址为 http://0.0.0.0:8080/xxx.mp4
// 生产环境地址为 /api/xxx.mp4
<CipDynamicVideo src={'\${api}/xxx.mp4'}/>

authors