hml5移动页面面试题_HML5视频播放器VUE组件

hml5移动页面面试题

Vue播放器 (vue-player)

This is a html5 video component made in VueJS with to quickly add videos with placeholders and intros.

这是VueJS中制作的html5视频组件,用于快速添加带有占位符和简介的视频。

特征 (Features)

  • full control of the player

    完全控制播放器

  • 100% vue

    100%VUE

  • no third parties js libs

    没有第三方js库

使用与指南 (Usage & Guide)

Install it

安装它

npm i --save @algoz098/vue-player

Then you import it where you need to use it.

然后,将其导入需要使用的位置。

import vuePlayer  from  '@algz098/vue-player'

Now, just tell vue to use it:

现在,告诉vue使用它:

Vue.component(vuePlayer)

Or inside a ´.vue´ file:

或在“ .vue”文件中:

<script>
	export  default {
		components: {
			vuePlayer
		}
	}
</script>

Now, just use it:

现在,只需使用它:

<vue-player src="http://techslides.com/demos/sample-videos/small.mp4" poster="https://via.placeholder.com/150" title="this is a title" v-model="playing"></vue-player>

翻译自: https://vuejsexamples.com/a-hml5-video-player-vue-component/

hml5移动页面面试题

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值