Skip to content

Commit

Permalink
Deploying to gh-pages from @ a9844f0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Nov 30, 2023
1 parent 178d000 commit e9b76af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions index.74ef7f02.js → index.e1a007dd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:`
<p>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.</p>
<p>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.</p>
</br>
<p>To prevent issues and archieve an optimum streaming experience, please:</p>
<p>To prevent issues and achieve an optimal streaming experience, please:</p>
<ol>
<li>1. Open the configuration of one of your video widgets.</li>
<li>2. Choose the IP that should be used for the video streaming.</li>
<li>1. Open the configuration of one of your video widgets (in Edit Mode).</li>
<li>2. Select the IP address that should be used for the video streaming.</li>
</ol>
`,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=`
<p>Your browser is currently blocking screen recording.</p>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<title>Cockpit</title>
<meta name="description" content="An intuitive and customizable cross-platform ground control station for remote vehicles of all types.">
<script type="module" crossorigin src="./index.74ef7f02.js"></script>
<script type="module" crossorigin src="./index.e1a007dd.js"></script>
<link rel="stylesheet" href="./style.69338e04.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>

Expand Down
2 changes: 1 addition & 1 deletion sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e9b76af

Please sign in to comment.