inl-ui 0.1.162 → 0.1.163

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.
@@ -17029,25 +17029,9 @@ class WebRtcMt {
17029
17029
  // 拉流创建播放器
17030
17030
  createVideo(plays) {
17031
17031
  this.mediaServerAddrMap.set(plays.videoElm, plays);
17032
- const {
17033
- addRtspProxyUrl
17034
- } = this.createRtspUrl(plays);
17035
- return new Promise((resolve, reject) => {
17036
- console.log("\u62C9\u6D41");
17037
- this.instance.get(addRtspProxyUrl).then(res => {
17038
- console.log("\u62C9\u6D41\u6210\u529F");
17039
- if (res.data.code === 0) {
17040
- plays.key = res.data.data?.key;
17041
- this.startPlay(plays).then(() => {
17042
- resolve(res.data);
17043
- });
17044
- } else {
17045
- this.mediaServerAddrMap.delete(plays.videoElm);
17046
- reject();
17047
- this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
17048
- }
17049
- });
17050
- });
17032
+ this.createRtspUrl(plays);
17033
+ this.startPlay(plays);
17034
+ return "success";
17051
17035
  }
17052
17036
  log(type, text) {
17053
17037
  switch (type) {
@@ -17000,25 +17000,9 @@ class WebRtcMt {
17000
17000
  // 拉流创建播放器
17001
17001
  createVideo(plays) {
17002
17002
  this.mediaServerAddrMap.set(plays.videoElm, plays);
17003
- const {
17004
- addRtspProxyUrl
17005
- } = this.createRtspUrl(plays);
17006
- return new Promise((resolve, reject) => {
17007
- console.log("\u62C9\u6D41");
17008
- this.instance.get(addRtspProxyUrl).then(res => {
17009
- console.log("\u62C9\u6D41\u6210\u529F");
17010
- if (res.data.code === 0) {
17011
- plays.key = res.data.data?.key;
17012
- this.startPlay(plays).then(() => {
17013
- resolve(res.data);
17014
- });
17015
- } else {
17016
- this.mediaServerAddrMap.delete(plays.videoElm);
17017
- reject();
17018
- this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
17019
- }
17020
- });
17021
- });
17003
+ this.createRtspUrl(plays);
17004
+ this.startPlay(plays);
17005
+ return "success";
17022
17006
  }
17023
17007
  log(type, text) {
17024
17008
  switch (type) {
package/dist/index.cjs CHANGED
@@ -18015,25 +18015,9 @@ class WebRtcMt {
18015
18015
  // 拉流创建播放器
18016
18016
  createVideo(plays) {
18017
18017
  this.mediaServerAddrMap.set(plays.videoElm, plays);
18018
- const {
18019
- addRtspProxyUrl
18020
- } = this.createRtspUrl(plays);
18021
- return new Promise((resolve, reject) => {
18022
- console.log("\u62C9\u6D41");
18023
- this.instance.get(addRtspProxyUrl).then(res => {
18024
- console.log("\u62C9\u6D41\u6210\u529F");
18025
- if (res.data.code === 0) {
18026
- plays.key = res.data.data?.key;
18027
- this.startPlay(plays).then(() => {
18028
- resolve(res.data);
18029
- });
18030
- } else {
18031
- this.mediaServerAddrMap.delete(plays.videoElm);
18032
- reject();
18033
- this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
18034
- }
18035
- });
18036
- });
18018
+ this.createRtspUrl(plays);
18019
+ this.startPlay(plays);
18020
+ return "success";
18037
18021
  }
18038
18022
  log(type, text) {
18039
18023
  switch (type) {
package/dist/index.js CHANGED
@@ -17984,25 +17984,9 @@ class WebRtcMt {
17984
17984
  // 拉流创建播放器
17985
17985
  createVideo(plays) {
17986
17986
  this.mediaServerAddrMap.set(plays.videoElm, plays);
17987
- const {
17988
- addRtspProxyUrl
17989
- } = this.createRtspUrl(plays);
17990
- return new Promise((resolve, reject) => {
17991
- console.log("\u62C9\u6D41");
17992
- this.instance.get(addRtspProxyUrl).then(res => {
17993
- console.log("\u62C9\u6D41\u6210\u529F");
17994
- if (res.data.code === 0) {
17995
- plays.key = res.data.data?.key;
17996
- this.startPlay(plays).then(() => {
17997
- resolve(res.data);
17998
- });
17999
- } else {
18000
- this.mediaServerAddrMap.delete(plays.videoElm);
18001
- reject();
18002
- this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
18003
- }
18004
- });
18005
- });
17987
+ this.createRtspUrl(plays);
17988
+ this.startPlay(plays);
17989
+ return "success";
18006
17990
  }
18007
17991
  log(type, text) {
18008
17992
  switch (type) {
@@ -13994,25 +13994,9 @@ class WebRtcMt {
13994
13994
  // 拉流创建播放器
13995
13995
  createVideo(plays) {
13996
13996
  this.mediaServerAddrMap.set(plays.videoElm, plays);
13997
- const {
13998
- addRtspProxyUrl
13999
- } = this.createRtspUrl(plays);
14000
- return new Promise((resolve, reject) => {
14001
- console.log("\u62C9\u6D41");
14002
- this.instance.get(addRtspProxyUrl).then(res => {
14003
- console.log("\u62C9\u6D41\u6210\u529F");
14004
- if (res.data.code === 0) {
14005
- plays.key = res.data.data?.key;
14006
- this.startPlay(plays).then(() => {
14007
- resolve(res.data);
14008
- });
14009
- } else {
14010
- this.mediaServerAddrMap.delete(plays.videoElm);
14011
- reject();
14012
- this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
14013
- }
14014
- });
14015
- });
13997
+ this.createRtspUrl(plays);
13998
+ this.startPlay(plays);
13999
+ return "success";
14016
14000
  }
14017
14001
  log(type, text) {
14018
14002
  switch (type) {
@@ -13966,25 +13966,9 @@ class WebRtcMt {
13966
13966
  // 拉流创建播放器
13967
13967
  createVideo(plays) {
13968
13968
  this.mediaServerAddrMap.set(plays.videoElm, plays);
13969
- const {
13970
- addRtspProxyUrl
13971
- } = this.createRtspUrl(plays);
13972
- return new Promise((resolve, reject) => {
13973
- console.log("\u62C9\u6D41");
13974
- this.instance.get(addRtspProxyUrl).then(res => {
13975
- console.log("\u62C9\u6D41\u6210\u529F");
13976
- if (res.data.code === 0) {
13977
- plays.key = res.data.data?.key;
13978
- this.startPlay(plays).then(() => {
13979
- resolve(res.data);
13980
- });
13981
- } else {
13982
- this.mediaServerAddrMap.delete(plays.videoElm);
13983
- reject();
13984
- this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
13985
- }
13986
- });
13987
- });
13969
+ this.createRtspUrl(plays);
13970
+ this.startPlay(plays);
13971
+ return "success";
13988
13972
  }
13989
13973
  log(type, text) {
13990
13974
  switch (type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.162",
3
+ "version": "0.1.163",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",