if (!text) { updateCaptionsFunction(""); return; } updateCaptionsFunction(text); }; callback(); this.captionsObserver = new MutationObserver(callback); this.captionsObserver.observe(container, { childList: true, }); } } removeCaptionContainerObserver() { this.captionsObserver?.disconnect(); } } this.PictureInPictureVideoWrapper = PictureInPictureVideoWrapper; PK