Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-skynet-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-skynet-admin
Commits
1802d049
Commit
1802d049
authored
Sep 27, 2021
by
朱松文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
播放器加上中文语言包
parent
8e5ff5a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
index.vue
src/components/MyVideo/index.vue
+6
-0
No files found.
src/components/MyVideo/index.vue
View file @
1802d049
...
@@ -13,6 +13,11 @@ import "@/components/MyVideo/track/index";
...
@@ -13,6 +13,11 @@ import "@/components/MyVideo/track/index";
import
"
@/components/MyVideo/myContainer/index
"
;
import
"
@/components/MyVideo/myContainer/index
"
;
import
"
@/assets/scss/myVideo.scss
"
;
import
"
@/assets/scss/myVideo.scss
"
;
import
{
TrackData
}
from
"
./data
"
;
import
{
TrackData
}
from
"
./data
"
;
//先全局挂载vidoejs对象,以便语言包添加
//@ts-ignore
window
.
videojs
=
videojs
;
//必须用require方式,因为import会自动前置
require
(
"
../../../node_modules/video.js/dist/lang/zh-CN
"
);
@
Component
({})
@
Component
({})
export
default
class
MyVideo
extends
Vue
{
export
default
class
MyVideo
extends
Vue
{
...
@@ -34,6 +39,7 @@ export default class MyVideo extends Vue {
...
@@ -34,6 +39,7 @@ export default class MyVideo extends Vue {
controls
:
true
,
controls
:
true
,
autoplay
:
true
,
autoplay
:
true
,
width
:
this
.
width
,
width
:
this
.
width
,
language
:
"
zh-CN
"
,
controlBar
:
{
controlBar
:
{
children
:
[
children
:
[
{
name
:
"
playToggle
"
},
{
name
:
"
playToggle
"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment