Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bf263d39
authored
Sep 25, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 旋转功能
1 parent
67effb49
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
h5/src/components/vionPlayer/config.js
h5/src/components/vionPlayer/index.vue
h5/src/components/vionPlayer/config.js
View file @
bf263d3
...
@@ -11,17 +11,9 @@ const operateBtns = {
...
@@ -11,17 +11,9 @@ const operateBtns = {
quality
:
false
,
// 视频清晰度
quality
:
false
,
// 视频清晰度
};
};
const
extendOperateBtns
=
[{
const
extendOperateBtns
=
[];
name
:
'rotate'
,
index
:
1
,
icon
:
'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNC43NSIgeT0iNy43NSIgd2lkdGg9IjE0LjUiIGhlaWdodD0iOC41IiByeD0iMS4yNSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPG1hc2sgaWQ9InBhdGgtMi1pbnNpZGUtMV8xMDBfNjYiIGZpbGw9IndoaXRlIj4KPHBhdGggZD0iTTIuMDM5NTEgOC4zNzI2M0MyLjE4NzU2IDcuMjAyMDQgMi43NDQ4MiA2LjEyMTUxIDMuNjEyNzMgNS4zMjIxN0M0LjQ4MDY0IDQuNTIyODMgNS42MDMyOCA0LjA1NjE4IDYuNzgyMDggNC4wMDQ3NUw2LjgzNjU2IDUuMjUzNTFDNS45NTI0NCA1LjI5MjA4IDUuMTEwNDUgNS42NDIwNyA0LjQ1OTUxIDYuMjQxNTlDMy44MDg1NyA2Ljg0MTEgMy4zOTA2MiA3LjY1MTUxIDMuMjc5NTggOC41Mjk0N0wyLjAzOTUxIDguMzcyNjNaIi8+CjwvbWFzaz4KPHBhdGggZD0iTTIuMDM5NTEgOC4zNzI2M0MyLjE4NzU2IDcuMjAyMDQgMi43NDQ4MiA2LjEyMTUxIDMuNjEyNzMgNS4zMjIxN0M0LjQ4MDY0IDQuNTIyODMgNS42MDMyOCA0LjA1NjE4IDYuNzgyMDggNC4wMDQ3NUw2LjgzNjU2IDUuMjUzNTFDNS45NTI0NCA1LjI5MjA4IDUuMTEwNDUgNS42NDIwNyA0LjQ1OTUxIDYuMjQxNTlDMy44MDg1NyA2Ljg0MTEgMy4zOTA2MiA3LjY1MTUxIDMuMjc5NTggOC41Mjk0N0wyLjAzOTUxIDguMzcyNjNaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjMiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0xXzEwMF82NikiLz4KPHBhdGggZD0iTTkgNC41TDYuNzUgNS43OTkwNFYzLjIwMDk2TDkgNC41WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=='
,
iconTitle
:
'旋转'
,
click
:
()
=>
{
console
.
log
(
'点击了test按钮'
);
}
}];
export
default
function
()
{
export
function
getPlayerConfig
()
{
return
{
return
{
decoder
:
'/jessibuca-pro/decoder-pro.js'
,
decoder
:
'/jessibuca-pro/decoder-pro.js'
,
text
:
''
,
// TODO: 功能暂不清楚
text
:
''
,
// TODO: 功能暂不清楚
...
@@ -53,7 +45,7 @@ export default function() {
...
@@ -53,7 +45,7 @@ export default function() {
text
:
''
,
text
:
''
,
},
},
operateBtns
,
operateBtns
,
extendOperateBtns
,
extendOperateBtns
:
[]
,
showPerformance
:
false
,
// 显示性能
showPerformance
:
false
,
// 显示性能
qualityConfig
:
[
'标清'
,
'高清'
],
qualityConfig
:
[
'标清'
,
'高清'
],
...
@@ -66,3 +58,13 @@ export default function() {
...
@@ -66,3 +58,13 @@ export default function() {
ptzFocusShow
:
true
,
ptzFocusShow
:
true
,
}
}
}
}
export
function
getRotateConfig
()
{
return
{
name
:
'rotate'
,
index
:
1
,
icon
:
'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNC43NSIgeT0iNy43NSIgd2lkdGg9IjE0LjUiIGhlaWdodD0iOC41IiByeD0iMS4yNSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPG1hc2sgaWQ9InBhdGgtMi1pbnNpZGUtMV8xMDBfNjYiIGZpbGw9IndoaXRlIj4KPHBhdGggZD0iTTIuMDM5NTEgOC4zNzI2M0MyLjE4NzU2IDcuMjAyMDQgMi43NDQ4MiA2LjEyMTUxIDMuNjEyNzMgNS4zMjIxN0M0LjQ4MDY0IDQuNTIyODMgNS42MDMyOCA0LjA1NjE4IDYuNzgyMDggNC4wMDQ3NUw2LjgzNjU2IDUuMjUzNTFDNS45NTI0NCA1LjI5MjA4IDUuMTEwNDUgNS42NDIwNyA0LjQ1OTUxIDYuMjQxNTlDMy44MDg1NyA2Ljg0MTEgMy4zOTA2MiA3LjY1MTUxIDMuMjc5NTggOC41Mjk0N0wyLjAzOTUxIDguMzcyNjNaIi8+CjwvbWFzaz4KPHBhdGggZD0iTTIuMDM5NTEgOC4zNzI2M0MyLjE4NzU2IDcuMjAyMDQgMi43NDQ4MiA2LjEyMTUxIDMuNjEyNzMgNS4zMjIxN0M0LjQ4MDY0IDQuNTIyODMgNS42MDMyOCA0LjA1NjE4IDYuNzgyMDggNC4wMDQ3NUw2LjgzNjU2IDUuMjUzNTFDNS45NTI0NCA1LjI5MjA4IDUuMTEwNDUgNS42NDIwNyA0LjQ1OTUxIDYuMjQxNTlDMy44MDg1NyA2Ljg0MTEgMy4zOTA2MiA3LjY1MTUxIDMuMjc5NTggOC41Mjk0N0wyLjAzOTUxIDguMzcyNjNaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjMiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0xXzEwMF82NikiLz4KPHBhdGggZD0iTTkgNC41TDYuNzUgNS43OTkwNFYzLjIwMDk2TDkgNC41WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=='
,
iconTitle
:
'旋转'
,
click
:
this
.
rotate
,
}
}
h5/src/components/vionPlayer/index.vue
View file @
bf263d3
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
import
{
merge
}
from
'lodash'
;
import
{
merge
}
from
'lodash'
;
// checkSupportMSEHevc checkSupportSIMD, checkSupportWCSHevc
// checkSupportMSEHevc checkSupportSIMD, checkSupportWCSHevc
import
{
getWatermarkCanvasImg
}
from
'./utils'
;
import
{
getWatermarkCanvasImg
}
from
'./utils'
;
import
getPlayerConfig
from
'./config'
;
import
{
getPlayerConfig
,
getRotateConfig
}
from
'./config'
;
export
default
{
export
default
{
name
:
'VionPlayer'
,
name
:
'VionPlayer'
,
...
@@ -75,6 +75,7 @@ export default {
...
@@ -75,6 +75,7 @@ export default {
record
:
!
this
.
isXCXPage
,
// 录制
record
:
!
this
.
isXCXPage
,
// 录制
scale
:
!
this
.
isXCXPage
,
// 显示模式:拉伸、缩放、正常
scale
:
!
this
.
isXCXPage
,
// 显示模式:拉伸、缩放、正常
},
},
extendOperateBtns
:
[
getRotateConfig
.
call
(
this
)],
});
});
console
.
log
(
'init-options'
,
options
);
console
.
log
(
'init-options'
,
options
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment