New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

common-video

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-video

``` npm install common-video ```

  • 0.0.19
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

common-video

视频公共组件

安装
npm install common-video
使用
  • json
{
    "usingComponents": {
        "common-video": "../common-video/common-video"
    }
}
  • js
Component({
  mixins: [],
  data: {},
  props: {},
  didMount() { },
  didUpdate() { },
  didUnmount() { },
  methods: {},
});
  • xaml
  <common-video 
    onRef="onVideoRef"
    src="{{videoSrc}}"
    poster="{{defaultImg}}"
    backPoster="{{modelImgArr[0].src}}"
    autoPlay="{{true}}"
    controls="{{false}}"
    loop="{{false}}"
    objectFit="{{'cover'}}"
    muted="{{true}}"
    showMutedBtn="{{false}}"
    muteConfig="{{
      {w:66,h:66,x:636,y:48,type:'click',duration:3000,muteImage:'https://img.alicdn.com/imgextra/i1/555657275/O1CN01G7gVVu23c03zL8iUl_!!555657275.png',unMuteImage:'https://img.alicdn.com/imgextra/i3/555657275/O1CN01zRfAvN23c03y34zXJ_!!555657275.png'}
    }}"
    onChange="onVideoChange"
  />

FAQs

Package last updated on 25 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts