inl-ui 0.1.163 → 0.1.171

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9028,6 +9028,7 @@ const VideoPlayerV2 = vue.defineComponent({
9028
9028
  if ("stopPlay" in play) {
9029
9029
  play.stopPlay(`videoPlayer_${uuid}`);
9030
9030
  }
9031
+ release();
9031
9032
  };
9032
9033
  const init = () => {
9033
9034
  let camera = videoInfo2.value;
@@ -17029,9 +17030,25 @@ class WebRtcMt {
17029
17030
  // 拉流创建播放器
17030
17031
  createVideo(plays) {
17031
17032
  this.mediaServerAddrMap.set(plays.videoElm, plays);
17032
- this.createRtspUrl(plays);
17033
- this.startPlay(plays);
17034
- return "success";
17033
+ const {
17034
+ addRtspProxyUrl
17035
+ } = this.createRtspUrl(plays);
17036
+ return new Promise((resolve, reject) => {
17037
+ console.log("\u62C9\u6D41");
17038
+ this.instance.get(addRtspProxyUrl).then(res => {
17039
+ console.log("\u62C9\u6D41\u6210\u529F");
17040
+ if (res.data.code === 0) {
17041
+ plays.key = res.data.data?.key;
17042
+ this.startPlay(plays).then(() => {
17043
+ resolve(res.data);
17044
+ });
17045
+ } else {
17046
+ this.mediaServerAddrMap.delete(plays.videoElm);
17047
+ reject();
17048
+ this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
17049
+ }
17050
+ });
17051
+ });
17035
17052
  }
17036
17053
  log(type, text) {
17037
17054
  switch (type) {
@@ -8999,6 +8999,7 @@ const VideoPlayerV2 = defineComponent({
8999
8999
  if ("stopPlay" in play) {
9000
9000
  play.stopPlay(`videoPlayer_${uuid}`);
9001
9001
  }
9002
+ release();
9002
9003
  };
9003
9004
  const init = () => {
9004
9005
  let camera = videoInfo2.value;
@@ -17000,9 +17001,25 @@ class WebRtcMt {
17000
17001
  // 拉流创建播放器
17001
17002
  createVideo(plays) {
17002
17003
  this.mediaServerAddrMap.set(plays.videoElm, plays);
17003
- this.createRtspUrl(plays);
17004
- this.startPlay(plays);
17005
- return "success";
17004
+ const {
17005
+ addRtspProxyUrl
17006
+ } = this.createRtspUrl(plays);
17007
+ return new Promise((resolve, reject) => {
17008
+ console.log("\u62C9\u6D41");
17009
+ this.instance.get(addRtspProxyUrl).then(res => {
17010
+ console.log("\u62C9\u6D41\u6210\u529F");
17011
+ if (res.data.code === 0) {
17012
+ plays.key = res.data.data?.key;
17013
+ this.startPlay(plays).then(() => {
17014
+ resolve(res.data);
17015
+ });
17016
+ } else {
17017
+ this.mediaServerAddrMap.delete(plays.videoElm);
17018
+ reject();
17019
+ this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
17020
+ }
17021
+ });
17022
+ });
17006
17023
  }
17007
17024
  log(type, text) {
17008
17025
  switch (type) {
package/dist/index.cjs CHANGED
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
45
45
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
46
46
  var mqtt__default = /*#__PURE__*/_interopDefaultLegacy(mqtt);
47
47
 
48
- var version = "0.1.162";
48
+ var version = "0.1.164";
49
49
 
50
50
  const setTheme = theme => {
51
51
  if (theme === "dark") {
@@ -10014,6 +10014,7 @@ const VideoPlayerV2 = vue.defineComponent({
10014
10014
  if ("stopPlay" in play) {
10015
10015
  play.stopPlay(`videoPlayer_${uuid}`);
10016
10016
  }
10017
+ release();
10017
10018
  };
10018
10019
  const init = () => {
10019
10020
  let camera = videoInfo2.value;
@@ -18015,9 +18016,25 @@ class WebRtcMt {
18015
18016
  // 拉流创建播放器
18016
18017
  createVideo(plays) {
18017
18018
  this.mediaServerAddrMap.set(plays.videoElm, plays);
18018
- this.createRtspUrl(plays);
18019
- this.startPlay(plays);
18020
- return "success";
18019
+ const {
18020
+ addRtspProxyUrl
18021
+ } = this.createRtspUrl(plays);
18022
+ return new Promise((resolve, reject) => {
18023
+ console.log("\u62C9\u6D41");
18024
+ this.instance.get(addRtspProxyUrl).then(res => {
18025
+ console.log("\u62C9\u6D41\u6210\u529F");
18026
+ if (res.data.code === 0) {
18027
+ plays.key = res.data.data?.key;
18028
+ this.startPlay(plays).then(() => {
18029
+ resolve(res.data);
18030
+ });
18031
+ } else {
18032
+ this.mediaServerAddrMap.delete(plays.videoElm);
18033
+ reject();
18034
+ this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
18035
+ }
18036
+ });
18037
+ });
18021
18038
  }
18022
18039
  log(type, text) {
18023
18040
  switch (type) {
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.162";
14
+ var version = "0.1.164";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
14
14
  import { marked } from 'marked';
15
15
  import '@sszj-temp/mobile/style.css';
16
16
 
17
- var version = "0.1.162";
17
+ var version = "0.1.164";
18
18
 
19
19
  const setTheme = theme => {
20
20
  if (theme === "dark") {
@@ -9983,6 +9983,7 @@ const VideoPlayerV2 = defineComponent({
9983
9983
  if ("stopPlay" in play) {
9984
9984
  play.stopPlay(`videoPlayer_${uuid}`);
9985
9985
  }
9986
+ release();
9986
9987
  };
9987
9988
  const init = () => {
9988
9989
  let camera = videoInfo2.value;
@@ -17984,9 +17985,25 @@ class WebRtcMt {
17984
17985
  // 拉流创建播放器
17985
17986
  createVideo(plays) {
17986
17987
  this.mediaServerAddrMap.set(plays.videoElm, plays);
17987
- this.createRtspUrl(plays);
17988
- this.startPlay(plays);
17989
- return "success";
17988
+ const {
17989
+ addRtspProxyUrl
17990
+ } = this.createRtspUrl(plays);
17991
+ return new Promise((resolve, reject) => {
17992
+ console.log("\u62C9\u6D41");
17993
+ this.instance.get(addRtspProxyUrl).then(res => {
17994
+ console.log("\u62C9\u6D41\u6210\u529F");
17995
+ if (res.data.code === 0) {
17996
+ plays.key = res.data.data?.key;
17997
+ this.startPlay(plays).then(() => {
17998
+ resolve(res.data);
17999
+ });
18000
+ } else {
18001
+ this.mediaServerAddrMap.delete(plays.videoElm);
18002
+ reject();
18003
+ this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
18004
+ }
18005
+ });
18006
+ });
17990
18007
  }
17991
18008
  log(type, text) {
17992
18009
  switch (type) {
@@ -5982,6 +5982,7 @@ const VideoPlayerV2 = vue.defineComponent({
5982
5982
  if ("stopPlay" in play) {
5983
5983
  play.stopPlay(`videoPlayer_${uuid}`);
5984
5984
  }
5985
+ release();
5985
5986
  };
5986
5987
  const init = () => {
5987
5988
  let camera = videoInfo2.value;
@@ -13994,9 +13995,25 @@ class WebRtcMt {
13994
13995
  // 拉流创建播放器
13995
13996
  createVideo(plays) {
13996
13997
  this.mediaServerAddrMap.set(plays.videoElm, plays);
13997
- this.createRtspUrl(plays);
13998
- this.startPlay(plays);
13999
- return "success";
13998
+ const {
13999
+ addRtspProxyUrl
14000
+ } = this.createRtspUrl(plays);
14001
+ return new Promise((resolve, reject) => {
14002
+ console.log("\u62C9\u6D41");
14003
+ this.instance.get(addRtspProxyUrl).then(res => {
14004
+ console.log("\u62C9\u6D41\u6210\u529F");
14005
+ if (res.data.code === 0) {
14006
+ plays.key = res.data.data?.key;
14007
+ this.startPlay(plays).then(() => {
14008
+ resolve(res.data);
14009
+ });
14010
+ } else {
14011
+ this.mediaServerAddrMap.delete(plays.videoElm);
14012
+ reject();
14013
+ this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
14014
+ }
14015
+ });
14016
+ });
14000
14017
  }
14001
14018
  log(type, text) {
14002
14019
  switch (type) {
@@ -5954,6 +5954,7 @@ const VideoPlayerV2 = defineComponent({
5954
5954
  if ("stopPlay" in play) {
5955
5955
  play.stopPlay(`videoPlayer_${uuid}`);
5956
5956
  }
5957
+ release();
5957
5958
  };
5958
5959
  const init = () => {
5959
5960
  let camera = videoInfo2.value;
@@ -13966,9 +13967,25 @@ class WebRtcMt {
13966
13967
  // 拉流创建播放器
13967
13968
  createVideo(plays) {
13968
13969
  this.mediaServerAddrMap.set(plays.videoElm, plays);
13969
- this.createRtspUrl(plays);
13970
- this.startPlay(plays);
13971
- return "success";
13970
+ const {
13971
+ addRtspProxyUrl
13972
+ } = this.createRtspUrl(plays);
13973
+ return new Promise((resolve, reject) => {
13974
+ console.log("\u62C9\u6D41");
13975
+ this.instance.get(addRtspProxyUrl).then(res => {
13976
+ console.log("\u62C9\u6D41\u6210\u529F");
13977
+ if (res.data.code === 0) {
13978
+ plays.key = res.data.data?.key;
13979
+ this.startPlay(plays).then(() => {
13980
+ resolve(res.data);
13981
+ });
13982
+ } else {
13983
+ this.mediaServerAddrMap.delete(plays.videoElm);
13984
+ reject();
13985
+ this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
13986
+ }
13987
+ });
13988
+ });
13972
13989
  }
13973
13990
  log(type, text) {
13974
13991
  switch (type) {
@@ -5957,6 +5957,7 @@ const VideoPlayerV2 = vue.defineComponent({
5957
5957
  if ("stopPlay" in play) {
5958
5958
  play.stopPlay(`videoPlayer_${uuid}`);
5959
5959
  }
5960
+ release();
5960
5961
  };
5961
5962
  const init = () => {
5962
5963
  let camera = videoInfo2.value;
@@ -5949,6 +5949,7 @@ const VideoPlayerV2 = defineComponent({
5949
5949
  if ("stopPlay" in play) {
5950
5950
  play.stopPlay(`videoPlayer_${uuid}`);
5951
5951
  }
5952
+ release();
5952
5953
  };
5953
5954
  const init = () => {
5954
5955
  let camera = videoInfo2.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.163",
3
+ "version": "0.1.171",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",