feat(@zhst/meta):修改视频传参
This commit is contained in:
parent
1d12b3f529
commit
1260619b42
@ -6,9 +6,9 @@ export default defineConfig({
|
||||
favicons: ['/logo.jpg'],
|
||||
history: { type: 'hash' },
|
||||
themeConfig: {
|
||||
name: 'lambo',
|
||||
name: 'Lambo',
|
||||
socialLinks: {
|
||||
gitlab: 'http://10.0.0.88/web-project/zhst-component',
|
||||
gitlab: 'http://10.0.0.88/web-project/zhst-Lambo',
|
||||
},
|
||||
},
|
||||
alias: {
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,3 +7,7 @@ node_modules
|
||||
/docs-dist
|
||||
vueuse
|
||||
/temp
|
||||
packages/**/es
|
||||
packages/**/lib
|
||||
/es
|
||||
/lib
|
||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -3,7 +3,9 @@
|
||||
"ahooks",
|
||||
"antd",
|
||||
"COMPATER",
|
||||
"favicons",
|
||||
"flvjs",
|
||||
"lambo",
|
||||
"remuxer",
|
||||
"transmuxer",
|
||||
"zhst"
|
||||
|
@ -1,5 +1,13 @@
|
||||
# @zhst/biz
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- feat: 修改时间戳
|
||||
- Updated dependencies
|
||||
- @zhst/meta@0.3.1
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/biz",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "业务库",
|
||||
"keywords": [
|
||||
"business",
|
||||
|
@ -1,5 +1,11 @@
|
||||
# @zhst/biz
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- feat: 修改时间戳
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
1
packages/constants/es/index.d.ts
vendored
1
packages/constants/es/index.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
export * from './camera';
|
||||
export * from './base';
|
||||
export * from './user';
|
||||
|
@ -1,2 +1,3 @@
|
||||
export * from "./camera";
|
||||
export * from "./base";
|
||||
export * from "./user";
|
2
packages/constants/es/user/index.d.ts
vendored
2
packages/constants/es/user/index.d.ts
vendored
@ -0,0 +1,2 @@
|
||||
declare const _default: {};
|
||||
export default _default;
|
@ -0,0 +1 @@
|
||||
export default {};
|
1
packages/constants/lib/index.d.ts
vendored
1
packages/constants/lib/index.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
export * from './camera';
|
||||
export * from './base';
|
||||
export * from './user';
|
||||
|
@ -18,8 +18,10 @@ var src_exports = {};
|
||||
module.exports = __toCommonJS(src_exports);
|
||||
__reExport(src_exports, require("./camera"), module.exports);
|
||||
__reExport(src_exports, require("./base"), module.exports);
|
||||
__reExport(src_exports, require("./user"), module.exports);
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
...require("./camera"),
|
||||
...require("./base")
|
||||
...require("./base"),
|
||||
...require("./user")
|
||||
});
|
||||
|
2
packages/constants/lib/user/index.d.ts
vendored
2
packages/constants/lib/user/index.d.ts
vendored
@ -0,0 +1,2 @@
|
||||
declare const _default: {};
|
||||
export default _default;
|
@ -0,0 +1,25 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/user/index.ts
|
||||
var user_exports = {};
|
||||
__export(user_exports, {
|
||||
default: () => user_default
|
||||
});
|
||||
module.exports = __toCommonJS(user_exports);
|
||||
var user_default = {};
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/constants",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "常量库",
|
||||
"keywords": [
|
||||
"constants",
|
||||
|
@ -1,5 +1,13 @@
|
||||
# @zhst/biz
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @zhst/meta@0.3.1
|
||||
- @zhst/biz@0.3.1
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/material",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "物料库",
|
||||
"keywords": [
|
||||
"business",
|
||||
|
@ -1,5 +1,11 @@
|
||||
# @zhst/utils
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- feat: 修改时间戳
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
@ -64,6 +64,7 @@
|
||||
|
||||
&--zoomin {
|
||||
height: 100%;
|
||||
|
||||
}
|
||||
|
||||
&__tab {
|
||||
|
@ -32,7 +32,8 @@ import "./index.less";
|
||||
var componentName = "zhst-image__video-view";
|
||||
var VideoPlayer = /*#__PURE__*/forwardRef(function (props, ref) {
|
||||
var url = props.url,
|
||||
maxDuration = props.maxDuration,
|
||||
_props$maxDuration = props.maxDuration,
|
||||
maxDuration = _props$maxDuration === void 0 ? 20 : _props$maxDuration,
|
||||
_props$screenshotButt = props.screenshotButtonAlign,
|
||||
screenshotButtonAlign = _props$screenshotButt === void 0 ? {
|
||||
points: ['bl', 'br'],
|
||||
|
@ -52,7 +52,7 @@ var componentName = `zhst-image__video-view`;
|
||||
var VideoPlayer = (0, import_react.forwardRef)((props, ref) => {
|
||||
const {
|
||||
url,
|
||||
maxDuration,
|
||||
maxDuration = 20,
|
||||
screenshotButtonAlign = {
|
||||
points: ["bl", "br"],
|
||||
offset: [6, 0],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zhst/meta",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "原子组件",
|
||||
"keywords": [
|
||||
"meta",
|
||||
|
@ -55,7 +55,7 @@ export interface VideoViewRef {
|
||||
const VideoPlayer = forwardRef<VideoViewRef, VideoViewProps>((props, ref) => {
|
||||
const {
|
||||
url,
|
||||
maxDuration,
|
||||
maxDuration = 20,
|
||||
screenshotButtonAlign = {
|
||||
points: ['bl', 'br'],
|
||||
offset: [6, 0],
|
||||
|
@ -27,7 +27,7 @@ export default () => {
|
||||
<Button type="primary" onClick={() => videoRef.current?.setShowCrop(true)}>截图</Button>
|
||||
<Button onClick={() => setUrl('ws://10.0.0.120:9033/flv/HaikangNvr/34.flv?ip=10.0.2.103&stime=1705302394&etime=1705302414')}>下一个</Button>
|
||||
<Button onClick={() => videoRef.current?.setShowCrop(false)}>取消</Button>
|
||||
<VideoPlayer ref={videoRef} url={url} maxDuration={29} />
|
||||
<VideoPlayer ref={videoRef} url={url} />
|
||||
</Space>
|
||||
)
|
||||
}
|
||||
@ -36,4 +36,4 @@ export default () => {
|
||||
| 参数名 | 参数类型 | 参数说明 |
|
||||
| ------ | -------- | ---- |
|
||||
| url | string(必填) | 当前视频链接 |
|
||||
| maxDuration | number(必填) | 视频截取长度 |
|
||||
| maxDuration | number(选填) | 默认20s, 视频截取长度(注意视频原始长度) |
|
||||
|
Loading…
Reference in New Issue
Block a user