diff --git a/index.74ef7f02.js b/index.e1a007dd.js similarity index 99% rename from index.74ef7f02.js rename to index.e1a007dd.js index c6a9a99dd..ff974ce41 100644 --- a/index.74ef7f02.js +++ b/index.e1a007dd.js @@ -913,13 +913,13 @@ a=extmap-allow-mixed`)!==-1){const n=r.sdp.split(` Click 'Dismiss' to postpone this decision for the next boot. Click 'Download' to download the files. If you decide to download them, they will be removed afterwards. `,icon:"warning",showDenyButton:!0,showCancelButton:!0,confirmButtonText:"Download",denyButtonText:"Discard",cancelButtonText:"Dismiss"}).then(n=>{n.isDismissed||(n.isDenied?i.iterate((o,l)=>i.removeItem(l)):n.isConfirmed&&(i.iterate((o,l)=>{const c=o.reduce((m,d)=>new Blob([m,d],{type:"video/webm"}));Ei.exports.saveAs(c,l)}),i.iterate((o,l)=>i.removeItem(l))))})});const a=setInterval(()=>{e.value===void 0||!t.value.isEmpty()||e.value.length>=1&&(W2.fire({html:` -

Cockpit detected more than one IP being used to route the video streaming. This situation often leads to - video stuterring, specially if one of the IPs is from a non-wired connection.

+

Cockpit detected more than one IP address being used to route the video streaming. This often + leads to video stuttering, especially if one of the IPs is from a non-wired connection.


-

To prevent issues and archieve an optimum streaming experience, please:

+

To prevent issues and achieve an optimal streaming experience, please:

    -
  1. 1. Open the configuration of one of your video widgets.
  2. -
  3. 2. Choose the IP that should be used for the video streaming.
  4. +
  5. 1. Open the configuration of one of your video widgets (in Edit Mode).
  6. +
  7. 2. Select the IP address that should be used for the video streaming.
`,icon:"warning",customClass:{htmlContainer:"text-left"}}),clearInterval(a))},5e3);return{availableIceIps:e,allowedIceIps:t}}),Pu=e=>(f0("data-v-fcfccf1d"),e=e(),L0(),e),GP1={key:1,class:"w-16 text-justify text-slate-100"},WP1={class:"p-6 m-5 bg-white rounded-md"},XP1=Pu(()=>K("p",{class:"text-xl font-semibold"},"Choose a stream to record",-1)),YP1=Pu(()=>K("div",{class:"w-auto h-px my-2 bg-grey-lighten-3"},null,-1)),KP1={class:"flex items-center"},qP1=Pu(()=>K("span",null,"Record",-1)),$P1={key:1,class:"w-5 h-5 ml-2 rounded-full bg-red"},jP1=d2({__name:"MiniVideoRecorder",props:{miniWidget:{}},setup(e){const t=e,i=qY(),{allowedIceIps:a}=xN(i),{rtcConfiguration:r,webRTCSignallingURI:n}=Ne(),{missionName:o}=w9();console.debug("[WebRTC] Using webrtc-adapter for",YY.browserDetails);const l=x2(t).miniWidget,c=Q(),m=new KY(n.val,r),{availableStreams:d,mediaStream:u}=m.startStream(c,a),h=Q(),p=Q(),{isOutside:H}=V_1(p),V=Q([]),_=Q(!1),S=Q(!1),v=Q(new Date),A=u9({interval:100}),R=X(()=>h.value!==void 0&&h.value.state==="recording"),y=_6.createInstance({driver:_6.INDEXEDDB,name:"CockpitVideoDB",storeName:"cockpit-video-db",version:1,description:"Local backups of Cockpit video recordings to be retrieved in case of failure."});d5(async()=>{Object.keys(l.value.options).length===0&&(l.value.options={streamName:void 0}),w()});const b=async()=>{if(R.value){E();return}_.value=!0},w=()=>{const x={id:"screenStream",name:"Entire screen",encode:null,height:null,width:null,interval:null,source:null,created:null};V.value.push(x)};Se(()=>{m.close("WebRTC manager removed")});const P=async()=>{var r1;if(V.value.isEmpty())return W2.fire({text:"No streams available.",icon:"error"});if(c.value===void 0)if(V.value.length===1)await Y(V.value[0]);else return W2.fire({text:"No stream selected. Please choose one before continuing.",icon:"error"});if(((r1=c.value)==null?void 0:r1.id)==="screenStream")try{if((await navigator.permissions.query({name:"display-capture"})).state==="denied"){const g1=`

Your browser is currently blocking screen recording.

diff --git a/index.html b/index.html index 26bcc6e89..1e5d52269 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ Cockpit - + diff --git a/sw.js b/sw.js index d9b7058ae..33ab97980 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,r={};const i=(i,n)=>(i=new URL(i+".js",n).href,r[i]||new Promise((r=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=r,document.head.appendChild(e)}else e=i,importScripts(i),r()})).then((()=>{let e=r[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,s)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(r[l])return;let o={};const c=e=>i(e,l),t={module:{uri:l},exports:o,require:c};r[l]=Promise.all(n.map((e=>t[e]||c(e)))).then((e=>(s(...e),o)))}}define(["./workbox-9bc8a7af"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"electron/main.js",revision:"79f3bbfb05e945b35c338b1d717f0adf"},{url:"index.html",revision:"ac9536ed0a79ca73c15d7f8423758207"},{url:"leaflet-src.esm.13473dcf.js",revision:null},{url:"marker-icon-2x.68378269.js",revision:null},{url:"marker-icon.753d5637.js",revision:null},{url:"marker-shadow.40fd21b3.js",revision:null},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"style.69338e04.css",revision:null},{url:"webfontloader.3696e2c4.js",revision:null},{url:"favicon.ico",revision:"b54531a824aa22f592590e347be8347c"},{url:"apple-touch-icon.png",revision:"4d6428d260d0f769a26ed6ce0387d0c1"},{url:"manifest.webmanifest",revision:"a28c2c0a5d92b960e17dd3757933e534"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,r={};const i=(i,n)=>(i=new URL(i+".js",n).href,r[i]||new Promise((r=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=r,document.head.appendChild(e)}else e=i,importScripts(i),r()})).then((()=>{let e=r[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,s)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(r[l])return;let o={};const t=e=>i(e,l),c={module:{uri:l},exports:o,require:t};r[l]=Promise.all(n.map((e=>c[e]||t(e)))).then((e=>(s(...e),o)))}}define(["./workbox-9bc8a7af"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"electron/main.js",revision:"79f3bbfb05e945b35c338b1d717f0adf"},{url:"index.html",revision:"9d67b56aaf571ab6b27a524680254ab3"},{url:"leaflet-src.esm.13473dcf.js",revision:null},{url:"marker-icon-2x.68378269.js",revision:null},{url:"marker-icon.753d5637.js",revision:null},{url:"marker-shadow.40fd21b3.js",revision:null},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"style.69338e04.css",revision:null},{url:"webfontloader.3696e2c4.js",revision:null},{url:"favicon.ico",revision:"b54531a824aa22f592590e347be8347c"},{url:"apple-touch-icon.png",revision:"4d6428d260d0f769a26ed6ce0387d0c1"},{url:"manifest.webmanifest",revision:"a28c2c0a5d92b960e17dd3757933e534"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));