// Copyright Epic Games, Inc. All Rights Reserved. import { ActionOverlay } from './ActionOverlay'; /** * Show an overlay for when the session is unattended, it begins a countdown timer, which when elapsed will disconnect the stream. */ export class AFKOverlay extends ActionOverlay { /** * @returns The created root element of this overlay. */ public static createRootElement(): HTMLElement { const afkOverlayHtml = document.createElement('div'); afkOverlayHtml.id = 'afkOverlay'; afkOverlayHtml.className = 'clickableState'; return afkOverlayHtml; } /** * @returns The created content element of this overlay, which contain some text for an afk count down. */ public static createContentElement(): HTMLElement { const afkOverlayHtmlInner = document.createElement('div'); afkOverlayHtmlInner.id = 'afkOverlayInner'; afkOverlayHtmlInner.innerHTML = '