Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ReactWeb5
wisdom-components
Commits
3a436ea1
Commit
3a436ea1
authored
Mar 17, 2025
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 萤石云视频组件版本更换解决回放报错
parent
7d79f36b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
package.json
packages/base-components/VmsVideo/package.json
+1
-1
index.js
packages/base-components/VmsVideo/src/VideoEsy/index.js
+5
-5
dmeo1.tsx
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
+1
-1
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+3
-3
No files found.
packages/base-components/VmsVideo/package.json
View file @
3a436ea1
...
@@ -33,6 +33,6 @@
...
@@ -33,6 +33,6 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"@babel/runtime"
:
"^7.17.9"
,
"@babel/runtime"
:
"^7.17.9"
,
"ezuikit-js"
:
"
7.7.6
"
"ezuikit-js"
:
"
8.1.7
"
}
}
}
}
packages/base-components/VmsVideo/src/VideoEsy/index.js
View file @
3a436ea1
/*
/*
* @Author: 634665781 634665781@qq.com
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-06 11:18:25
* @Date: 2023-04-06 11:18:25
* @LastEditors:
634665781 634665781@qq.com
* @LastEditors:
Please set LastEditors
* @LastEditTime: 202
3-04-12 14:29:5
9
* @LastEditTime: 202
5-03-17 15:33:2
9
* @FilePath: \
ui\src\components
\VideoEsy\index.js
* @FilePath: \
wisdom-components\packages\base-components\VmsVideo\src
\VideoEsy\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
import
EZUIKit
,
{
log
}
from
'ezuikit-js'
;
import
{
EZUIKitPlayer
}
from
'ezuikit-js'
;
import
React
,
{
useState
,
useRef
,
useEffect
,
useImperativeHandle
,
forwardRef
}
from
'react'
;
import
React
,
{
useState
,
useRef
,
useEffect
,
useImperativeHandle
,
forwardRef
}
from
'react'
;
import
axios
from
'axios'
;
import
axios
from
'axios'
;
const
VideoEsy
=
(
props
,
ref
)
=>
{
const
VideoEsy
=
(
props
,
ref
)
=>
{
...
@@ -29,7 +29,7 @@ const VideoEsy = (props, ref) => {
...
@@ -29,7 +29,7 @@ const VideoEsy = (props, ref) => {
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
let
accessToken
=
response
.
data
.
data
.
accessToken
;
let
accessToken
=
response
.
data
.
data
.
accessToken
;
let
PlayersA
=
new
EZUIKit
.
EZUIKit
Player
({
let
PlayersA
=
new
EZUIKitPlayer
({
id
:
'video-container'
,
// 视频容器ID
id
:
'video-container'
,
// 视频容器ID
accessToken
:
accessToken
,
accessToken
:
accessToken
,
url
:
`ezopen://open.ys7.com/
${
key
}
/1.hd.live`
,
url
:
`ezopen://open.ys7.com/
${
key
}
/1.hd.live`
,
...
...
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
View file @
3a436ea1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @Date: 2023-04-11 13:40:18
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @LastEditTime: 202
4-11-27 14:37:59
* @LastEditTime: 202
5-03-17 15:30:02
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\src\demos\dmeo1.tsx
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\src\demos\dmeo1.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
...
packages/base-components/VmsVideo/src/index.jsx
View file @
3a436ea1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
// eslint-disable-next-line no-unused-vars
// eslint-disable-next-line no-unused-vars
import
EZUIKit
,
{
log
}
from
'ezuikit-js'
;
import
{
EZUIKitPlayer
}
from
'ezuikit-js'
;
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
React
,
{
import
React
,
{
...
@@ -59,7 +59,7 @@ const Video = (props, ref) => {
...
@@ -59,7 +59,7 @@ const Video = (props, ref) => {
};
};
const
videoPlayLive
=
(
accessToken
)
=>
{
const
videoPlayLive
=
(
accessToken
)
=>
{
PlayersA
=
new
EZUIKit
.
EZUIKit
Player
({
PlayersA
=
new
EZUIKitPlayer
({
id
:
keyID
,
// 视频容器ID
id
:
keyID
,
// 视频容器ID
accessToken
:
accessToken
,
accessToken
:
accessToken
,
url
:
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
VideoInfo
.
channel
||
1
}
.hd.live`
,
url
:
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
VideoInfo
.
channel
||
1
}
.hd.live`
,
...
@@ -81,7 +81,7 @@ const Video = (props, ref) => {
...
@@ -81,7 +81,7 @@ const Video = (props, ref) => {
url
=
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
url
=
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
VideoInfo
.
channel
||
1
VideoInfo
.
channel
||
1
}
.hd.rec?begin=
${
begin
}
&end=
${
end
}
`
;
}
.hd.rec?begin=
${
begin
}
&end=
${
end
}
`
;
PlayersA
=
new
EZUIKit
.
EZUIKit
Player
({
PlayersA
=
new
EZUIKitPlayer
({
id
:
keyID
,
// 视频容器ID
id
:
keyID
,
// 视频容器ID
accessToken
:
accessToken
,
accessToken
:
accessToken
,
url
:
url
,
url
:
url
,
...
...
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