Commit 3a436ea1 authored by 李纪文's avatar 李纪文

feat: 萤石云视频组件版本更换解决回放报错

parent 7d79f36b
......@@ -33,6 +33,6 @@
},
"dependencies": {
"@babel/runtime": "^7.17.9",
"ezuikit-js": "7.7.6"
"ezuikit-js": "8.1.7"
}
}
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-06 11:18:25
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-04-12 14:29:59
* @FilePath: \ui\src\components\VideoEsy\index.js
* @LastEditors: Please set LastEditors
* @LastEditTime: 2025-03-17 15:33:29
* @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
*/
import EZUIKit, { log } from 'ezuikit-js';
import { EZUIKitPlayer } from 'ezuikit-js';
import React, { useState, useRef, useEffect, useImperativeHandle, forwardRef } from 'react';
import axios from 'axios';
const VideoEsy = (props, ref) => {
......@@ -29,7 +29,7 @@ const VideoEsy = (props, ref) => {
.then(function (response) {
let accessToken = response.data.data.accessToken;
let PlayersA = new EZUIKit.EZUIKitPlayer({
let PlayersA = new EZUIKitPlayer({
id: 'video-container', // 视频容器ID
accessToken: accessToken,
url: `ezopen://open.ys7.com/${key}/1.hd.live`,
......
......@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: Please set LastEditors
* @LastEditTime: 2024-11-27 14:37:59
* @LastEditTime: 2025-03-17 15:30:02
* @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
*/
......
......@@ -5,7 +5,7 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// eslint-disable-next-line no-unused-vars
import EZUIKit, { log } from 'ezuikit-js';
import { EZUIKitPlayer } from 'ezuikit-js';
import axios from 'axios';
import React, {
......@@ -59,7 +59,7 @@ const Video = (props, ref) => {
};
const videoPlayLive = (accessToken) => {
PlayersA = new EZUIKit.EZUIKitPlayer({
PlayersA = new EZUIKitPlayer({
id: keyID, // 视频容器ID
accessToken: accessToken,
url: `ezopen://open.ys7.com/${VideoInfo.address}/${VideoInfo.channel || 1}.hd.live`,
......@@ -81,7 +81,7 @@ const Video = (props, ref) => {
url = `ezopen://open.ys7.com/${VideoInfo.address}/${
VideoInfo.channel || 1
}.hd.rec?begin=${begin}&end=${end}`;
PlayersA = new EZUIKit.EZUIKitPlayer({
PlayersA = new EZUIKitPlayer({
id: keyID, // 视频容器ID
accessToken: accessToken,
url: url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment