/** * Takes care of any necessary setup for autoplaying video. In practice, * this method will load the youtube iframe API for mobile environments * because mobile environments don't support the youtube autoplay param * passed in the url. * * @param {string} src * @param {boolean} needCookiesApproval */ export function setupAutoplay(src: string, needCookiesApproval?: boolean): Promise; /** * @param {HTMLIframeElement} iframeEl - the iframe containing the video player */ export function triggerAutoplay(iframeEl: HTMLIframeElement): void;