From c0021f1f9a58ee72d18d77ac08b1c7f55ef57762 Mon Sep 17 00:00:00 2001 From: gabek Date: Sun, 9 Oct 2022 21:50:38 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 static/web/_next/static/chunks/2854-074aedb014a3a446.js | 1 - static/web/_next/static/chunks/2854-7495dff68ef13adc.js | 1 + static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) rename static/web/_next/static/{97_zsq6Y0gD9zRt5To4vA => Sw6NLH0br6eyDo4pf2C3R}/_buildManifest.js (98%) rename static/web/_next/static/{97_zsq6Y0gD9zRt5To4vA => Sw6NLH0br6eyDo4pf2C3R}/_ssgManifest.js (100%) delete mode 100644 static/web/_next/static/chunks/2854-074aedb014a3a446.js create mode 100644 static/web/_next/static/chunks/2854-7495dff68ef13adc.js diff --git a/static/web/404.html b/static/web/404.html index dfa049234..bcedf26e4 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index dfa049234..bcedf26e4 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/97_zsq6Y0gD9zRt5To4vA/_buildManifest.js b/static/web/_next/static/Sw6NLH0br6eyDo4pf2C3R/_buildManifest.js similarity index 98% rename from static/web/_next/static/97_zsq6Y0gD9zRt5To4vA/_buildManifest.js rename to static/web/_next/static/Sw6NLH0br6eyDo4pf2C3R/_buildManifest.js index 1f0e9ea01..21b676638 100644 --- a/static/web/_next/static/97_zsq6Y0gD9zRt5To4vA/_buildManifest.js +++ b/static/web/_next/static/Sw6NLH0br6eyDo4pf2C3R/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,b,o,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,m,l,s,t,d,f,u,k,_,w,v,"static/chunks/9358-6c31827aa73f405a.js",h,r,y,"static/css/1f227ae7ed6aac0d.css","static/chunks/pages/index-900dc74997ad50a0.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,b,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-3176829e7059317f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-e6982b17ca2b6d30.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-574b118b6708bb45.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-33efa67745b85252.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-40e0e71cfeaff121.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-58fa36815f7c88c5.js"],"/admin/config-public-details":[a,s,c,e,g,"static/css/1f5ee95fffd43a71.css","static/chunks/9181-df8b71d4f342f83d.js",A,"static/chunks/pages/admin/config-public-details-271e3473e762bcda.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js"],"/admin/config-storage":["static/chunks/5473-185a5241676edf4a.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-106e72c5e21f1d74.js","static/chunks/pages/admin/config-video-67dd9ceeab2a8d04.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-e31f1858274d3033.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-e98bbd3f5a837580.js"],"/admin/hardware-info":[j,i,t,n,b,p,g,"static/chunks/pages/admin/hardware-info-cd84396bc39c49ed.js"],"/admin/help":[t,n,v,"static/chunks/5566-66931d6b98651304.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-2296627de57047d9.js"],"/admin/stream-health":[j,i,t,n,b,p,"static/chunks/6610-62b167129a72b8f1.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-a2690af66d4d3214.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,b,p,g,"static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-31e1e30a1af46238.js"],"/embed/chat/readonly":[o,m,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-5595887f9035766a.js"],"/embed/chat/readwrite":[o,m,s,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-951dea2889142856.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-b921529d7c1b6a75.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-1e79dad4c0cd3b68.js","static/chunks/8939-b1631aef52fbaa8f.js","static/chunks/3698-68c12d00e813fbb1.js","static/chunks/3626-e1c13c951477db78.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-6793cb651dad1c89.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-58df969e6bd09ed9.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-b1e647c0e7c9ab4e.js","static/chunks/2429-35846a119e7209fe.js","static/chunks/8763-9490625166d46d87.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/css/7c735c05af084bb2.css","static/chunks/2860-6233db10d7394b17.js","static/chunks/1082-03ae605a1f81cbce.js","static/chunks/2854-074aedb014a3a446.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,b,o,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,m,l,s,t,d,f,u,k,_,w,v,"static/chunks/9358-6c31827aa73f405a.js",h,r,y,"static/css/1f227ae7ed6aac0d.css","static/chunks/pages/index-900dc74997ad50a0.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,b,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-3176829e7059317f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-e6982b17ca2b6d30.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-574b118b6708bb45.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-33efa67745b85252.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-40e0e71cfeaff121.js"],"/admin/config-federation":["static/chunks/1829-271cba4b38fde9a4.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-58fa36815f7c88c5.js"],"/admin/config-public-details":[a,s,c,e,g,"static/css/1f5ee95fffd43a71.css","static/chunks/9181-df8b71d4f342f83d.js",A,"static/chunks/pages/admin/config-public-details-271e3473e762bcda.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js"],"/admin/config-storage":["static/chunks/5473-185a5241676edf4a.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-106e72c5e21f1d74.js","static/chunks/pages/admin/config-video-67dd9ceeab2a8d04.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-e31f1858274d3033.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-e98bbd3f5a837580.js"],"/admin/hardware-info":[j,i,t,n,b,p,g,"static/chunks/pages/admin/hardware-info-cd84396bc39c49ed.js"],"/admin/help":[t,n,v,"static/chunks/5566-66931d6b98651304.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-2296627de57047d9.js"],"/admin/stream-health":[j,i,t,n,b,p,"static/chunks/6610-62b167129a72b8f1.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-a2690af66d4d3214.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,b,p,g,"static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-31e1e30a1af46238.js"],"/embed/chat/readonly":[o,m,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-5595887f9035766a.js"],"/embed/chat/readwrite":[o,m,s,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-951dea2889142856.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-b921529d7c1b6a75.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-1e79dad4c0cd3b68.js","static/chunks/8939-b1631aef52fbaa8f.js","static/chunks/3698-68c12d00e813fbb1.js","static/chunks/3626-e1c13c951477db78.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-6793cb651dad1c89.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-58df969e6bd09ed9.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-b1e647c0e7c9ab4e.js","static/chunks/2429-35846a119e7209fe.js","static/chunks/8763-9490625166d46d87.js","static/chunks/7910-7248e2d1496cf795.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-1e3969b413cccadf.js","static/css/7c735c05af084bb2.css","static/chunks/2860-6233db10d7394b17.js","static/chunks/1082-03ae605a1f81cbce.js","static/chunks/2854-7495dff68ef13adc.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/97_zsq6Y0gD9zRt5To4vA/_ssgManifest.js b/static/web/_next/static/Sw6NLH0br6eyDo4pf2C3R/_ssgManifest.js similarity index 100% rename from static/web/_next/static/97_zsq6Y0gD9zRt5To4vA/_ssgManifest.js rename to static/web/_next/static/Sw6NLH0br6eyDo4pf2C3R/_ssgManifest.js diff --git a/static/web/_next/static/chunks/2854-074aedb014a3a446.js b/static/web/_next/static/chunks/2854-074aedb014a3a446.js deleted file mode 100644 index cefe0586f..000000000 --- a/static/web/_next/static/chunks/2854-074aedb014a3a446.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{30896:function(e,t,n){"use strict";n.d(t,{e:function(){return x}});var i=n(26042),r=n(69396),a=n(85893),s=n(71577),o=n(34447),l=n(67294),c=n(4480),u=n(32365),h=n(47568),d=n(70655),f=n(26713),m=n(11382),v=n(14670),p=n(69677),g=n(13840),y=n.n(g);var b=function(e){var t=e.handleClose,n=e.account,i=e.name,r=(0,l.useState)(null),o=r[0],c=r[1],u=(0,l.useState)(!1),g=u[0],b=u[1],k=(0,l.useState)(!1),w=k[0],T=k[1],x=(0,l.useState)(null),_=x[0],j=x[1],C=function(e){c(e),!function(e){var t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e)?b(!1):b(!0)},B=function(){var e=(0,h.Z)((function(){var e,n,i,r;return(0,d.__generator)(this,(function(a){switch(a.label){case 0:if(!g)return[2];T(!0),a.label=1;case 1:return a.trys.push([1,4,,5]),e=o.replace(/^@+/,""),n={account:e},[4,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(n)})];case 2:return[4,a.sent().json()];case 3:return(i=a.sent()).redirectUrl&&(window.open(i.redirectUrl,"_blank"),t()),i.success?i.redirectUrl?[3,5]:(j("Unable to follow."),T(!1),[2]):(j(i.message),T(!1),[2]);case 4:return r=a.sent(),j(r.message),[3,5];case 5:return T(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(f.Z,{direction:"vertical",children:[(0,a.jsxs)("div",{className:y().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,a.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,a.jsxs)(m.Z,{spinning:w,children:[_&&(0,a.jsx)(v.Z,{message:"Follow Error",description:_,type:"error",showIcon:!0}),(0,a.jsxs)("div",{className:y().account,children:[(0,a.jsx)("img",{src:"/logo",alt:"logo",className:y().logo}),(0,a.jsxs)("div",{className:y().username,children:[(0,a.jsx)("div",{className:y().name,children:i}),(0,a.jsx)("div",{children:n})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:y().instructions,children:"Enter your username @server to follow"}),(0,a.jsx)(p.Z,{value:o,size:"large",onChange:function(e){return C(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:o}),(0,a.jsx)("div",{className:y().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,a.jsxs)(f.Z,{className:y().buttons,children:[(0,a.jsx)(s.Z,{disabled:!g,type:"primary",onClick:B,children:"Follow"}),(0,a.jsx)(s.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},k=n(36879),w=n.n(k),T=n(1899),x=function(e){var t=(0,l.useState)(!1),n=t[0],h=t[1],d=(0,c.sJ)(T.g1),f=d.name,m=d.federation.account;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,(0,r.Z)((0,i.Z)({},e),{type:"primary",className:w().button,icon:(0,a.jsx)(o.Z,{}),onClick:function(){return h(!0)},children:"Follow"})),(0,a.jsx)(u.Modal,{title:"Follow ".concat(f),visible:n,handleCancel:function(){return h(!1)},width:"550px",height:"200px",children:(0,a.jsx)(b,{account:m,name:f,handleClose:function(){return h(!1)}})})]})}},52437:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(85893),r=n(71577),a=n(71578),s=n(36879),o=n.n(s),l=function(e){var t=e.onClick;return(0,i.jsx)(r.Z,{type:"primary",className:"".concat(o().button),icon:(0,i.jsx)(a.Z,{}),onClick:t,children:"Notify"})}},32365:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return u}});var i=n(85893),r=n(85402),a=n(26303),s=n(11382),o=n(67294),l=n(78890),c=n.n(l),u=function(e){var t=e.title,n=e.url,l=e.visible,u=e.handleOk,h=e.handleCancel,d=e.afterClose,f=e.height,m=e.width,v=e.children,p=(0,o.useState)(!!n),g=p[0],y=p[1],b={padding:"0px",minHeight:f},k=n&&(0,i.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return y(!1)}}),w=g?"none":"inline";return(0,i.jsx)(r.Z,{title:t,visible:l,onOk:u,onCancel:h,afterClose:d,bodyStyle:b,width:m,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(a.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),k&&(0,i.jsx)("div",{style:{display:w},children:k}),v&&(0,i.jsx)("div",{className:c().content,children:v}),g&&(0,i.jsx)(s.Z,{className:c().spinner,spinning:g,size:"large"})]})})};t.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},1698:function(e,t,n){"use strict";n.d(t,{R:function(){return h}});var i=n(85893),r=n(27049),a=n(24019),s=n(45938),o=n(29316),l=n.n(o),c=n(30896),u=n(52437),h=function(e){var t,n=e.streamName,o=e.customText,h=e.lastLive,d=e.notificationsEnabled,f=e.fediverseAccount,m=e.onNotifyClick;return t=o||(!o&&d&&f?"This stream is offline. You can be notified the next time ".concat(n," goes live or follow ").concat(f," on the Fediverse."):!o&&d?"This stream is offline. Be notified the next time ".concat(n," goes live."):"This stream is offline. Check back soon!"),(0,i.jsx)("div",{className:l().outerContainer,children:(0,i.jsxs)("div",{className:l().innerContainer,children:[(0,i.jsx)("div",{className:l().header,children:n}),(0,i.jsx)(r.Z,{className:l().separator}),(0,i.jsx)("div",{className:l().bodyText,children:t}),h&&(0,i.jsxs)("div",{className:l().lastLiveDate,children:[(0,i.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,s.Z)(new Date(h))," ago.")]}),(0,i.jsxs)("div",{className:l().footer,children:[f&&(0,i.jsx)(c.e,{}),d&&(0,i.jsx)(u.E,{onClick:m})]})]})})}},43125:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),l=n(93132),c=n.n(l);var u=function(e){var t=e.online,n=e.lastConnectTime,l=e.lastDisconnectTime,u=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var d,f="";if(t&&n){var m=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(n));f=t?"Live for ".concat(m):"Offline",d=u>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",u]})}else t||(f="Offline",l&&(d="Last live ".concat((0,r.Z)(new Date(l))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:f}),(0,i.jsx)("div",{children:d})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return z}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),l=n(4480),c=n(49218),u=n(85215),h=n(55206),d=n.n(h);n(33108);var f=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,u.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,u.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered ".concat(d().player," vjs-owncast")})})},m=n(51438);var v=function(){function e(){(0,m.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),p=n(26042),g=n(69396),y=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,l=void 0===a?"fill":a,c=e.duration,u=void 0===c?"1s":c,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),d=(0,o.useMemo)((function(){return[(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:1,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0})]}),[l,u]),f=(0,o.useState)(0),m=f[0],v=f[1],k=(0,o.useState)(["",""]),w=k[0],T=k[1],x=n!==w[1]?n:"",_=function(){v((m+1)%3),T([w[1],x])};return(0,s.jsx)("span",{style:h,children:(0,y.Z)(w).concat([x]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:d[t],onLoad:2===t?_:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var w=n(1125),T=n.n(w),x=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),l=a[0],c=a[1],u=(0,o.useState)("0s"),h=u[0],d=u[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&d("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:T().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:l,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},_=n(73682),j=n(1899),C=n(52951);var B=function(){function e(t,n){var i=this;(0,m.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,l,c,u,h,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,l=Math.round(1e3*o)/1e3,c=i(e.latencyTracking)/1e3,u=Math.round(1e3*c)/1e3,n={bandwidth:l,latency:u,downloadDuration:s,errors:t+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],h={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return d=a.sent(),console.error(d),[3,4];case 4:return[2]}}))}))()}}]),e}(),Z=B,I=n(45785),M=n(82662),S=n(88029),E=n(91224);var N=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,i){return(0,m.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,I.Z)((0,M.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),l=new a(e,{selectable:!0});l.setAttribute("class","latency-toggle-item"),l.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),u=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[l]:n.length>1&&s?[i].concat((0,y.Z)(r),[c,l]):s||1!==n.length?[i].concat((0,y.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var d=new u;return d.addClass("vjs-quality-selector"),d}};var P=function(){function e(t){(0,m.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,C.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(p){console.error(p)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=l+3e3);var u=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-u;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var d=h/1e3-3*a.duration,f=this.player.currentTime()+d;console.info("latency",h/1e3,"jumping",d,"to live from ",this.player.currentTime()," to ",f);var m=e.vhs.stats.buffered[0].end;if(f>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(v=this.playbackRate+.02),v=Math.round(v*Math.pow(10,3))/Math.pow(10,3),this.start(v)}else h<=l&&this.stop();console.info("latency",h/1e3,"min",l/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(g){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),D=P,L="/api/video/variants",F="owncast_volume",O="latencyCompensatorEnabled",R=new v,A=null,J=null,V=!1;function q(){return U.apply(this,arguments)}function U(){return(U=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(L)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var z=function(e){var t=e.source,n=e.online,u=o.useRef(null),h=(0,r.Z)((0,l.FV)(j.We),2),d=h[0],m=h[1],v=(0,l.sJ)(j.g8),p=function(){(0,_.qQ)(F,u.current.muted()?0:u.current.volume())},g=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},y=function(){J&&J.stop(),V=!0,(J=new D(u.current)).setClockSkew(v),J.enable(),(0,_.qQ)(O,!0),g("disable minimized latency")},b=function(){J&&J.disable(),J=null,V=!1,(0,_.qQ)(O,!1),g('enable minimized latency (experimental)')},k=function(){V?b():y()},w=function(){var e=(0,i.Z)((function(e,t){var n,i;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,q()];case 1:return n=r.sent(),i=N(e,t,n,k),e.controlBar.addChild(i,{},e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,_.$o)(O)&&t&&t.vhs?y():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,c.y1)("space",(function(e){e.preventDefault(),u.current.paused()?u.current.play():u.current.pause()})),(0,c.y1)("f",(function(){u.current.isFullscreen()?u.current.exitFullscreen():u.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,c.y1)("m",(function(){u.current.muted()||0===u.current.volume()?u.current.volume(.7):u.current.volume(0)}),{enableOnContentEditable:!1}),(0,c.y1)("0",(function(){return u.current.volume(u.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,c.y1)("9",(function(){return u.current.volume(u.current.volume()-.1)}),{enableOnContentEditable:!1});var T={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){A&&A.setClockSkew(v)}),[v]),(0,o.useEffect)((function(){return function(){b()}}),[]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(f,{options:T,onReady:function(e,t){u.current=e,function(){try{u.current.volume((0,_.$o)(F)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),R.stop()})),e.on("playing",(function(){e.log("player is playing"),R.start(),m(!0)})),e.on("pause",(function(){e.log("player is paused"),R.stop(),m(!1)})),e.on("ended",(function(){e.log("player is ended"),R.stop(),m(!1)})),t.hookOnce(),e.on("volumechange",p),(A=new Z(e,t)).setClockSkew(v),w(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!d&&(0,s.jsx)(x,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2854-7495dff68ef13adc.js b/static/web/_next/static/chunks/2854-7495dff68ef13adc.js new file mode 100644 index 000000000..b8648d6aa --- /dev/null +++ b/static/web/_next/static/chunks/2854-7495dff68ef13adc.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{30896:function(e,t,n){"use strict";n.d(t,{e:function(){return x}});var i=n(26042),r=n(69396),a=n(85893),s=n(71577),o=n(34447),l=n(67294),c=n(4480),u=n(32365),h=n(47568),d=n(70655),f=n(26713),v=n(11382),m=n(14670),p=n(69677),g=n(13840),y=n.n(g);var b=function(e){var t=e.handleClose,n=e.account,i=e.name,r=(0,l.useState)(null),o=r[0],c=r[1],u=(0,l.useState)(!1),g=u[0],b=u[1],k=(0,l.useState)(!1),w=k[0],T=k[1],x=(0,l.useState)(null),_=x[0],j=x[1],C=function(e){c(e),!function(e){var t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e)?b(!1):b(!0)},B=function(){var e=(0,h.Z)((function(){var e,n,i,r;return(0,d.__generator)(this,(function(a){switch(a.label){case 0:if(!g)return[2];T(!0),a.label=1;case 1:return a.trys.push([1,4,,5]),e=o.replace(/^@+/,""),n={account:e},[4,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(n)})];case 2:return[4,a.sent().json()];case 3:return(i=a.sent()).redirectUrl&&(window.open(i.redirectUrl,"_blank"),t()),i.success?i.redirectUrl?[3,5]:(j("Unable to follow."),T(!1),[2]):(j(i.message),T(!1),[2]);case 4:return r=a.sent(),j(r.message),[3,5];case 5:return T(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(f.Z,{direction:"vertical",children:[(0,a.jsxs)("div",{className:y().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,a.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,a.jsxs)(v.Z,{spinning:w,children:[_&&(0,a.jsx)(m.Z,{message:"Follow Error",description:_,type:"error",showIcon:!0}),(0,a.jsxs)("div",{className:y().account,children:[(0,a.jsx)("img",{src:"/logo",alt:"logo",className:y().logo}),(0,a.jsxs)("div",{className:y().username,children:[(0,a.jsx)("div",{className:y().name,children:i}),(0,a.jsx)("div",{children:n})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:y().instructions,children:"Enter your username @server to follow"}),(0,a.jsx)(p.Z,{value:o,size:"large",onChange:function(e){return C(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:o}),(0,a.jsx)("div",{className:y().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,a.jsxs)(f.Z,{className:y().buttons,children:[(0,a.jsx)(s.Z,{disabled:!g,type:"primary",onClick:B,children:"Follow"}),(0,a.jsx)(s.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},k=n(36879),w=n.n(k),T=n(1899),x=function(e){var t=(0,l.useState)(!1),n=t[0],h=t[1],d=(0,c.sJ)(T.g1),f=d.name,v=d.federation.account;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,(0,r.Z)((0,i.Z)({},e),{type:"primary",className:w().button,icon:(0,a.jsx)(o.Z,{}),onClick:function(){return h(!0)},children:"Follow"})),(0,a.jsx)(u.Modal,{title:"Follow ".concat(f),visible:n,handleCancel:function(){return h(!1)},width:"550px",height:"200px",children:(0,a.jsx)(b,{account:v,name:f,handleClose:function(){return h(!1)}})})]})}},52437:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var i=n(85893),r=n(71577),a=n(71578),s=n(36879),o=n.n(s),l=function(e){var t=e.onClick,n=e.text;return(0,i.jsx)(r.Z,{type:"primary",className:"".concat(o().button),icon:(0,i.jsx)(a.Z,{}),onClick:t,children:n||"Notify"})}},32365:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return u}});var i=n(85893),r=n(85402),a=n(26303),s=n(11382),o=n(67294),l=n(78890),c=n.n(l),u=function(e){var t=e.title,n=e.url,l=e.visible,u=e.handleOk,h=e.handleCancel,d=e.afterClose,f=e.height,v=e.width,m=e.children,p=(0,o.useState)(!!n),g=p[0],y=p[1],b={padding:"0px",minHeight:f},k=n&&(0,i.jsx)("iframe",{title:t,src:n,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return y(!1)}}),w=g?"none":"inline";return(0,i.jsx)(r.Z,{title:t,visible:l,onOk:u,onCancel:h,afterClose:d,bodyStyle:b,width:v,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(a.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),k&&(0,i.jsx)("div",{style:{display:w},children:k}),m&&(0,i.jsx)("div",{className:c().content,children:m}),g&&(0,i.jsx)(s.Z,{className:c().spinner,spinning:g,size:"large"})]})})};t.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},1698:function(e,t,n){"use strict";n.d(t,{R:function(){return h}});var i=n(85893),r=n(27049),a=n(24019),s=n(45938),o=n(29316),l=n.n(o),c=n(30896),u=n(52437),h=function(e){var t,n=e.streamName,o=e.customText,h=e.lastLive,d=e.notificationsEnabled,f=e.fediverseAccount,v=e.onNotifyClick;return t=o||(!o&&d&&f?"This stream is offline. You can be notified the next time ".concat(n," goes live or follow ").concat(f," on the Fediverse."):!o&&d?"This stream is offline. Be notified the next time ".concat(n," goes live."):"This stream is offline. Check back soon!"),(0,i.jsx)("div",{className:l().outerContainer,children:(0,i.jsxs)("div",{className:l().innerContainer,children:[(0,i.jsx)("div",{className:l().header,children:n}),(0,i.jsx)(r.Z,{className:l().separator}),(0,i.jsx)("div",{className:l().bodyText,children:t}),h&&(0,i.jsxs)("div",{className:l().lastLiveDate,children:[(0,i.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,s.Z)(new Date(h))," ago.")]}),(0,i.jsxs)("div",{className:l().footer,children:[f&&(0,i.jsx)(c.e,{}),d&&(0,i.jsx)(u.E,{text:"Notify when live",onClick:v})]})]})})}},43125:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),l=n(93132),c=n.n(l);var u=function(e){var t=e.online,n=e.lastConnectTime,l=e.lastDisconnectTime,u=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var d,f="";if(t&&n){var v=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(n));f=t?"Live for ".concat(v):"Offline",d=u>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",u]})}else t||(f="Offline",l&&(d="Last live ".concat((0,r.Z)(new Date(l))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:f}),(0,i.jsx)("div",{children:d})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return z}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),l=n(4480),c=n(49218),u=n(85215),h=n(55206),d=n.n(h);n(33108);var f=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,u.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,u.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered ".concat(d().player," vjs-owncast")})})},v=n(51438);var m=function(){function e(){(0,v.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),p=n(26042),g=n(69396),y=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,l=void 0===a?"fill":a,c=e.duration,u=void 0===c?"1s":c,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),d=(0,o.useMemo)((function(){return[(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:1,transition:"opacity ".concat(u)}),(0,g.Z)((0,p.Z)({},b),{objectFit:l,opacity:0})]}),[l,u]),f=(0,o.useState)(0),v=f[0],m=f[1],k=(0,o.useState)(["",""]),w=k[0],T=k[1],x=n!==w[1]?n:"",_=function(){m((v+1)%3),T([w[1],x])};return(0,s.jsx)("span",{style:h,children:(0,y.Z)(w).concat([x]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:d[t],onLoad:2===t?_:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var w=n(1125),T=n.n(w),x=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),l=a[0],c=a[1],u=(0,o.useState)("0s"),h=u[0],d=u[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&d("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:T().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:l,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},_=n(73682),j=n(1899),C=n(52951);var B=function(){function e(t,n){var i=this;(0,v.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,l,c,u,h,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,l=Math.round(1e3*o)/1e3,c=i(e.latencyTracking)/1e3,u=Math.round(1e3*c)/1e3,n={bandwidth:l,latency:u,downloadDuration:s,errors:t+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],h={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return d=a.sent(),console.error(d),[3,4];case 4:return[2]}}))}))()}}]),e}(),Z=B,I=n(45785),M=n(82662),S=n(88029),E=n(91224);var N=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,i){return(0,v.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,I.Z)((0,M.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),l=new a(e,{selectable:!0});l.setAttribute("class","latency-toggle-item"),l.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),u=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[l]:n.length>1&&s?[i].concat((0,y.Z)(r),[c,l]):s||1!==n.length?[i].concat((0,y.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var d=new u;return d.addClass("vjs-quality-selector"),d}};var P=function(){function e(t){(0,v.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,C.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(p){console.error(p)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=l+3e3);var u=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-u;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var d=h/1e3-3*a.duration,f=this.player.currentTime()+d;console.info("latency",h/1e3,"jumping",d,"to live from ",this.player.currentTime()," to ",f);var v=e.vhs.stats.buffered[0].end;if(f>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(m=this.playbackRate+.02),m=Math.round(m*Math.pow(10,3))/Math.pow(10,3),this.start(m)}else h<=l&&this.stop();console.info("latency",h/1e3,"min",l/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(g){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),D=P,L="/api/video/variants",F="owncast_volume",O="latencyCompensatorEnabled",R=new m,A=null,J=null,V=!1;function q(){return U.apply(this,arguments)}function U(){return(U=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(L)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var z=function(e){var t=e.source,n=e.online,u=o.useRef(null),h=(0,r.Z)((0,l.FV)(j.We),2),d=h[0],v=h[1],m=(0,l.sJ)(j.g8),p=function(){(0,_.qQ)(F,u.current.muted()?0:u.current.volume())},g=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},y=function(){J&&J.stop(),V=!0,(J=new D(u.current)).setClockSkew(m),J.enable(),(0,_.qQ)(O,!0),g("disable minimized latency")},b=function(){J&&J.disable(),J=null,V=!1,(0,_.qQ)(O,!1),g('enable minimized latency (experimental)')},k=function(){V?b():y()},w=function(){var e=(0,i.Z)((function(e,t){var n,i;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,q()];case 1:return n=r.sent(),i=N(e,t,n,k),e.controlBar.addChild(i,{},e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,_.$o)(O)&&t&&t.vhs?y():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,c.y1)("space",(function(e){e.preventDefault(),u.current.paused()?u.current.play():u.current.pause()})),(0,c.y1)("f",(function(){u.current.isFullscreen()?u.current.exitFullscreen():u.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,c.y1)("m",(function(){u.current.muted()||0===u.current.volume()?u.current.volume(.7):u.current.volume(0)}),{enableOnContentEditable:!1}),(0,c.y1)("0",(function(){return u.current.volume(u.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,c.y1)("9",(function(){return u.current.volume(u.current.volume()-.1)}),{enableOnContentEditable:!1});var T={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){A&&A.setClockSkew(m)}),[m]),(0,o.useEffect)((function(){return function(){b()}}),[]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(f,{options:T,onReady:function(e,t){u.current=e,function(){try{u.current.volume((0,_.$o)(F)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),R.stop()})),e.on("playing",(function(){e.log("player is playing"),R.start(),v(!0)})),e.on("pause",(function(){e.log("player is paused"),R.stop(),v(!1)})),e.on("ended",(function(){e.log("player is ended"),R.stop(),v(!1)})),t.hookOnce(),e.on("volumechange",p),(A=new Z(e,t)).setClockSkew(m),w(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!d&&(0,s.jsx)(x,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/admin/access-tokens/index.html b/static/web/admin/access-tokens/index.html index adbdb91a1..758fba538 100644 --- a/static/web/admin/access-tokens/index.html +++ b/static/web/admin/access-tokens/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index e933c1089..a2336afbe 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index 841dd7bf9..224271efb 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index b1b1c0da5..052e2e1d4 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 923440542..bcdc87274 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index 13e321202..3f9c2659d 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index 7e4d522e9..eda39d33f 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index a8d139c8f..11e38fa09 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index b03f1aadf..d124365d6 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index ad24e4540..7d4e8e10b 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index 1abd63092..df7c6e88b 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index 2b5c883ed..c3893f23a 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 02645a627..7781a27df 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file diff --git a/static/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index ce9001194..26e98c991 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file diff --git a/static/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index 00bbcfc0e..32164853a 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index 9735ec2a8..9787b82cf 100644 --- a/static/web/admin/help/index.html +++ b/static/web/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/web/admin/index.html b/static/web/admin/index.html index c6a96f41f..49f30c3cd 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index 5d115a4bf..47841fc51 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index dd7d2ff20..ec3679162 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index ce6edfa48..aa2bade05 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index c9e2143b3..7ef9eca0b 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index 2b01452cd..8f2a2be80 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index 02d7bd309..53be1d3a2 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index 2bc1acfe4..72d43b3c8 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -

Chat message goes here...

\ No newline at end of file +

Chat message goes here...

\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index 8c0adb33a..c4f5d9a34 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index c0a18dff1..41e353beb 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@
Chat offline
Logo
Preview
\ No newline at end of file +
Chat offline
Logo
Preview
\ No newline at end of file