@titan-os/sdk 1.10.2 → 1.10.3

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/dist/esm/sdk.js CHANGED
@@ -641,7 +641,7 @@ const matchBrandFromUserAgent = (userAgent, regex) => {
641
641
  const match = userAgent.match(regex);
642
642
  return match ? match[1] : null;
643
643
  };
644
- const VERSION = "1.10.2";
644
+ const VERSION = "1.10.3";
645
645
  var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
646
646
  ErrorCode2["NOT_INITIALIZED"] = "NOT_INITIALIZED";
647
647
  ErrorCode2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
@@ -3746,27 +3746,6 @@ function detectStreamingSupport() {
3746
3746
  supportMPEG_DASH: "unknown"
3747
3747
  };
3748
3748
  }
3749
- function detect3DUHDSupport() {
3750
- try {
3751
- const sysinfoElement = document.createElement("object");
3752
- sysinfoElement.style.display = "none";
3753
- sysinfoElement.setAttribute("id", "sysinfo");
3754
- sysinfoElement.setAttribute("type", "systeminfoobject");
3755
- document.body.appendChild(sysinfoElement);
3756
- const sysinfo = sysinfoElement;
3757
- const result = {
3758
- support3d: Boolean(sysinfo.has3D),
3759
- supportUHD: sysinfo.panelinfo?.toLowerCase() === "3840x2160"
3760
- };
3761
- return { ...result, supportFHD: true };
3762
- } catch (error) {
3763
- return {
3764
- support3d: false,
3765
- supportUHD: false,
3766
- supportFHD: true
3767
- };
3768
- }
3769
- }
3770
3749
  function detectOIPFSupport() {
3771
3750
  try {
3772
3751
  if (oipfWindow.get("oipfObjectFactory") !== void 0) {
@@ -4118,15 +4097,7 @@ class BaseBridge {
4118
4097
  callback(data);
4119
4098
  };
4120
4099
  this.eventHandlers.get(type)?.add(handler);
4121
- window.addEventListener(
4122
- "message",
4123
- (event) => handler(event.data.data)
4124
- );
4125
4100
  return () => {
4126
- window.removeEventListener(
4127
- "message",
4128
- (event) => handler(event.data?.data)
4129
- );
4130
4101
  this.eventHandlers.get(type)?.delete(handler);
4131
4102
  };
4132
4103
  }
@@ -5491,7 +5462,6 @@ class TPVLegacySDK {
5491
5462
  }
5492
5463
  }
5493
5464
  function getCapabilities(_platform) {
5494
- const uhdSupport = detect3DUHDSupport();
5495
5465
  const browserCapabilities = detectBrowserCapabilities();
5496
5466
  const streamingSupport = detectStreamingSupport();
5497
5467
  const drmMethodSupport = detectDRMMethodSupport();
@@ -5536,10 +5506,10 @@ function getCapabilities(_platform) {
5536
5506
  capabilities.supportHDR_DV = false;
5537
5507
  capabilities.supportDolbyAtmos = false;
5538
5508
  capabilities.supportHDR_HDR10Plus = false;
5509
+ capabilities.supportUHD = false;
5539
5510
  }
5540
5511
  return {
5541
5512
  ...capabilities,
5542
- ...uhdSupport,
5543
5513
  ...browserCapabilities,
5544
5514
  ...streamingSupport,
5545
5515
  ...drmMethodSupport,
@@ -6888,10 +6858,9 @@ class VestelBridge extends EnhancedBaseBridge {
6888
6858
  if (config?.gatewayUrl) {
6889
6859
  super({ gatewayUrl: config.gatewayUrl });
6890
6860
  } else {
6891
- const isDev01 = window.location.hostname.includes("dev01.devview");
6892
- const isDevEnv = window.location.hostname.startsWith("dev");
6861
+ const isDevEnv = /dev\d{2}\./.test(window.location.hostname);
6893
6862
  super({
6894
- gatewayUrl: `http://localhost:4660/gateway/${isDev01 || isDevEnv ? "dev01" : "index"}.html`
6863
+ gatewayUrl: `http://localhost:4660/gateway/${isDevEnv ? "dev01" : "index"}.html`
6895
6864
  });
6896
6865
  }
6897
6866
  }