Skip to content

Commit e1fa5d9

Browse files
committed
Update.
1 parent bf48f53 commit e1fa5d9

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

examples/01-video.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<md-card>
3-
<md-card-actions v-md-ink-ripple>
3+
<md-card-actions>
44
<div class="md-subhead">
55
<span>Base Config / 基本示例</span>
66
</div>

examples/02-video.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<md-card>
3-
<md-card-actions v-md-ink-ripple>
3+
<md-card-actions>
44
<div class="md-subhead">
55
<span>Only Flash & custom event name & hotkeys plugin / 仅使用Flash模式播放 & 自定义事件名称 & 热键插件</span>
66
</div>

examples/03-video.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<md-card>
3-
<md-card-actions v-md-ink-ripple>
3+
<md-card-actions>
44
<div class="md-subhead">
55
<span>playbackRate switch & source switch / 播放速度切换 & 播放源切换</span>
66
</div>

examples/04-video.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<md-card>
3-
<md-card-actions v-md-ink-ripple>
3+
<md-card-actions>
44
<div class="md-subhead">
55
<span>HLS Live / 直播</span>
66
</div>

examples/05-video.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<md-card>
3-
<md-card-actions v-md-ink-ripple>
3+
<md-card-actions>
44
<div class="md-subhead">
55
<span>Youtube / youtube视频</span>
66
</div>

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ window.videojs = require('video.js')
99
require('video.js/dist/video-js.css')
1010

1111
var playerComponent = require('./player.vue')
12+
playerComponent = playerComponent.default || playerComponent
13+
1214
var videoPlayer = {
1315
videojs: videojs,
1416
videoPlayer: playerComponent,
1517
install: function(Vue) {
16-
Vue.component('video-player', playerComponent)
18+
Vue.component(playerComponent.name, playerComponent)
1719
}
1820
}
1921

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-video-player",
3-
"version": "3.1.2",
3+
"version": "3.1.4",
44
"description": "Video Player component for Vue2",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)