zhyz-cloudrender-v5 1.0.3 → 1.0.4

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.
package/cloudRender.es.js CHANGED
@@ -31729,8 +31729,8 @@ class CloudRender extends DefaultApi {
31729
31729
  this.serveScoket = null;
31730
31730
  this.isP2p = isP2p;
31731
31731
  this.p2pWs = null;
31732
- this.renderWidth = 0;
31733
- this.renderHeight = 0;
31732
+ this.renderWidth = 1920;
31733
+ this.renderHeight = 1040;
31734
31734
  this.webscoketCallback = () => {};
31735
31735
  const init = (async () => {
31736
31736
  initBaseInfo({
@@ -31752,15 +31752,15 @@ class CloudRender extends DefaultApi {
31752
31752
  this.then = init.then.bind(init);
31753
31753
  this.setRenderWidthAndHeight = () => {
31754
31754
  this.getCloudApps(data => {
31755
- let cloudInfo = data.filter(item => item.appliId == appliId) || [];
31756
- let width = 1920;
31757
- let height = 1080;
31758
- if (cloudInfo && cloudInfo.length) {
31759
- width = cloudInfo[0].renderWidth;
31760
- height = cloudInfo[0].renderHeight;
31761
- }
31762
- this.renderWidth = width;
31763
- this.renderHeight = height;
31755
+ // let cloudInfo = data.filter(item => item.appliId == appliId) || [];
31756
+ // let width = 1920;
31757
+ // let height = 1080;
31758
+ // if (cloudInfo && cloudInfo.length) {
31759
+ // width = cloudInfo[0].renderWidth;
31760
+ // height = cloudInfo[0].renderHeight;
31761
+ // }
31762
+ // this.renderWidth = width;
31763
+ // this.renderHeight = height;
31764
31764
  });
31765
31765
  };
31766
31766
  this.renderEle = ele => {
package/cloudRender.js CHANGED
@@ -31734,8 +31734,8 @@ Expected function or array of functions, received type ${typeof value}.`
31734
31734
  this.serveScoket = null;
31735
31735
  this.isP2p = isP2p;
31736
31736
  this.p2pWs = null;
31737
- this.renderWidth = 0;
31738
- this.renderHeight = 0;
31737
+ this.renderWidth = 1920;
31738
+ this.renderHeight = 1040;
31739
31739
  this.webscoketCallback = () => {};
31740
31740
  const init = (async () => {
31741
31741
  initBaseInfo({
@@ -31757,15 +31757,15 @@ Expected function or array of functions, received type ${typeof value}.`
31757
31757
  this.then = init.then.bind(init);
31758
31758
  this.setRenderWidthAndHeight = () => {
31759
31759
  this.getCloudApps(data => {
31760
- let cloudInfo = data.filter(item => item.appliId == appliId) || [];
31761
- let width = 1920;
31762
- let height = 1080;
31763
- if (cloudInfo && cloudInfo.length) {
31764
- width = cloudInfo[0].renderWidth;
31765
- height = cloudInfo[0].renderHeight;
31766
- }
31767
- this.renderWidth = width;
31768
- this.renderHeight = height;
31760
+ // let cloudInfo = data.filter(item => item.appliId == appliId) || [];
31761
+ // let width = 1920;
31762
+ // let height = 1080;
31763
+ // if (cloudInfo && cloudInfo.length) {
31764
+ // width = cloudInfo[0].renderWidth;
31765
+ // height = cloudInfo[0].renderHeight;
31766
+ // }
31767
+ // this.renderWidth = width;
31768
+ // this.renderHeight = height;
31769
31769
  });
31770
31770
  };
31771
31771
  this.renderEle = ele => {
@@ -31735,8 +31735,8 @@ Expected function or array of functions, received type ${typeof value}.`
31735
31735
  this.serveScoket = null;
31736
31736
  this.isP2p = isP2p;
31737
31737
  this.p2pWs = null;
31738
- this.renderWidth = 0;
31739
- this.renderHeight = 0;
31738
+ this.renderWidth = 1920;
31739
+ this.renderHeight = 1040;
31740
31740
  this.webscoketCallback = () => {};
31741
31741
  const init = (async () => {
31742
31742
  initBaseInfo({
@@ -31757,17 +31757,17 @@ Expected function or array of functions, received type ${typeof value}.`
31757
31757
  })();
31758
31758
  this.then = init.then.bind(init);
31759
31759
  this.setRenderWidthAndHeight = () => {
31760
- this.getCloudApps(data => {
31761
- let cloudInfo = data.filter(item => item.appliId == appliId) || [];
31762
- let width = 1920;
31763
- let height = 1080;
31764
- if (cloudInfo && cloudInfo.length) {
31765
- width = cloudInfo[0].renderWidth;
31766
- height = cloudInfo[0].renderHeight;
31767
- }
31768
- this.renderWidth = width;
31769
- this.renderHeight = height;
31770
- });
31760
+ // this.getCloudApps(data => {
31761
+ // let cloudInfo = data.filter(item => item.appliId == appliId) || [];
31762
+ // let width = 1920;
31763
+ // let height = 1080;
31764
+ // if (cloudInfo && cloudInfo.length) {
31765
+ // width = cloudInfo[0].renderWidth;
31766
+ // height = cloudInfo[0].renderHeight;
31767
+ // }
31768
+ // this.renderWidth = width;
31769
+ // this.renderHeight = height;
31770
+ // });
31771
31771
  };
31772
31772
  this.renderEle = ele => {
31773
31773
  let stream = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhyz-cloudrender-v5",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "cloudrender zhyz",
5
5
  "main": "cloudRender.es.js",
6
6
  "scripts": {