Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Web / Weex / 小程序
描述: 视屏播放组件
$ npm install rax-video --save
注: 1、支持列表中的 代表h5 代表weex 代表小程序
属性 | 类型 | 默认值 | ** [必填] ** | 描述 | ** [支持] ** |
---|---|---|---|---|---|
src | String | - | 是 | 视频地址 | |
autoPlay | Boolean | false | 否 | 设置视频自动播放 | |
muted | Boolean | false | 否 | 是否播放音频 | |
loop | Boolean | false | 否 | 是否循环播放 | |
playControl | String | pause | 否 | play 或 pause ,控制视屏播放,如果不设置,则通过autoPlay 属性来判定当视屏加载后,是否播放 | |
onEnded | function | - | 否 | 当视屏播放完成时调用的callback函数 |
import {createElement, Component, render} from 'rax';
import Video from '../src/index';
import * as DriverDOM from 'driver-dom';
import { isWeex } from 'universal-env';
import * as DriverWeex from 'driver-weex';
render(<Video style={{ width: 750, height: 400 }} autoPlay src="https://cloud.video.taobao.com/play/u/2780279213/p/1/e/6/t/1/d/ld/36255062.mp4" />, document.body, { driver: isWeex ? DriverWeex : DriverDOM });
FAQs
Video component for Rax.
The npm package rax-video receives a total of 11 weekly downloads. As such, rax-video popularity was classified as not popular.
We found that rax-video demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.