{"id":29249,"date":"2025-12-24T04:32:19","date_gmt":"2025-12-24T04:32:19","guid":{"rendered":"https:\/\/ligamosya.com\/a\/?page_id=29249"},"modified":"2026-03-10T01:31:47","modified_gmt":"2026-03-10T01:31:47","slug":"lab","status":"publish","type":"page","link":"https:\/\/ligamosya.com\/a\/lab\/","title":{"rendered":"lab"},"content":{"rendered":"\n<div class=\"video-container\" style=\"position:relative;\">\n    <div id=\"yt-player\"><\/div>\n\n    <div id=\"yt-block-screen\" style=\"\n        position:absolute;\n        top:0;left:0;\n        width:100%;height:100%;\n        z-index:10;\n        background:#000;\n        display:flex;\n        align-items:center;\n        justify-content:center;\n        text-align:center;\n        padding:12px;\n        box-sizing:border-box;\n        pointer-events:none;\n    \">\n        <p style=\"\n            color:#fff;\n            font-family:sans-serif;\n            font-size:14px;\n            line-height:1.5;\n            margin:0;\n            opacity:0.85;\n        \">Loading list of movies you like&#8230;<br>choose the best one<\/p>\n    <\/div>\n\n    <div id=\"yt-overlay\" style=\"position:absolute;top:0;left:0;width:100%;height:40px;z-index:11;pointer-events:auto;background:transparent;\"><\/div>\n<\/div>\n\n<script>\n\/**\n * Implementaci\u00f3n Avanzada de YT Iframe API v4\n * Arquitectura de triple protecci\u00f3n:\n *   1. Debounce fusionador \u2014 colapsa errores en cascada en un \u00fanico salto\n *   2. Watchdog independiente \u2014 detecta congelamiento por API Throttling\n *   3. M\u00e1quina de estados \u2014 evita re-entradas y bucles infinitos\n * + Pantalla de carga con triple disparador de cierre garantizado\n *\/\n(function() {\n    'use strict';\n\n    const CONFIG = {\n        playerId:        'yt-player',\n        playlistId:      'PLy9kP19x29TsZrhiu677MIgIRMSyQP2cm',\n        skippableErrors:  [100, 101, 150],\n        debounceMs:       500,\n        watchdogMs:       3500,\n        maxSkips:         50,\n        screenTimeoutMs:  20000  \/\/ Tiempo m\u00e1ximo absoluto de la pantalla de carga\n    };\n\n    let player;\n    let targetIndex    = 0;\n    let skipCount      = 0;\n    let debounceTimer  = null;\n    let watchdogTimer  = null;\n    let pollTimer      = null;\n    let screenTimer    = null;\n    let state          = 'IDLE';\n    let screenDismissed = false;\n\n    \/\/ \u2500\u2500 Utilidad: oculta la pantalla \u2014 invocable desde cualquier disparador \u2500\u2500\n    function hideBlockScreen() {\n        if (screenDismissed) return; \/\/ Garant\u00eda de ejecuci\u00f3n \u00fanica\n        screenDismissed = true;\n\n        \/\/ Limpia todos los timers de seguridad al confirmar reproducci\u00f3n\n        clearInterval(pollTimer);\n        clearTimeout(screenTimer);\n\n        const screen = document.getElementById('yt-block-screen');\n        if (!screen) return;\n\n        screen.style.transition = 'opacity 0.4s ease';\n        screen.style.opacity    = '0';\n        setTimeout(() => { screen.style.display = 'none'; }, 420);\n    }\n\n    \/\/ \u2500\u2500 DISPARADOR 3: Polling activo \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    \/\/ Revisa el estado del player cada 800ms de forma independiente a los eventos.\n    \/\/ Cubre el caso donde onStateChange no dispara PLAYING correctamente.\n    function startScreenPoll() {\n        pollTimer = setInterval(() => {\n            if (!player || screenDismissed) {\n                clearInterval(pollTimer);\n                return;\n            }\n            try {\n                const s = player.getPlayerState();\n                if (s === YT.PlayerState.PLAYING || s === YT.PlayerState.BUFFERING) {\n                    clearInterval(pollTimer);\n                    hideBlockScreen();\n                }\n            } catch(e) { \/* player a\u00fan no disponible *\/ }\n        }, 800);\n    }\n\n    \/\/ \u2500\u2500 DISPARADOR 2: Timeout de seguridad absoluto \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    \/\/ Si tras screenTimeoutMs nada funcion\u00f3, fuerza el cierre de la pantalla.\n    function startScreenTimeout() {\n        screenTimer = setTimeout(() => {\n            if (!screenDismissed) {\n                console.warn('[Imperio-System] Timeout de pantalla alcanzado. Forzando cierre.');\n                hideBlockScreen();\n            }\n        }, CONFIG.screenTimeoutMs);\n    }\n\n    \/\/ \u2500\u2500 Inicializaci\u00f3n API \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    const initYouTubeAPI = () => {\n        \/\/ Arranca los disparadores 2 y 3 desde el inicio\n        startScreenPoll();\n        startScreenTimeout();\n\n        if (window.YT && window.YT.Player) {\n            onYouTubeIframeAPIReady();\n        } else {\n            const tag = document.createElement('script');\n            tag.src = \"https:\/\/www.youtube.com\/iframe_api\";\n            document.getElementsByTagName('script')[0].parentNode.insertBefore(\n                tag, document.getElementsByTagName('script')[0]\n            );\n        }\n    };\n\n    window.onYouTubeIframeAPIReady = () => {\n        player = new YT.Player(CONFIG.playerId, {\n            width: '100%',\n            height: '100%',\n            playerVars: {\n                listType:        'playlist',\n                list:            CONFIG.playlistId,\n                autoplay:        1,\n                mute:            1,\n                loop:            1,\n                rel:             0,\n                modestbranding:  1\n            },\n            events: {\n                'onReady':       onPlayerReady,\n                'onError':       onPlayerError,\n                'onStateChange': onPlayerStateChange\n            }\n        });\n    };\n\n    \/\/ \u2500\u2500 Eventos del player \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    function onPlayerReady(event) {\n        event.target.playVideo();\n\n        const overlay = document.getElementById('yt-overlay');\n        if (overlay) {\n            overlay.addEventListener('click', function(e) {\n                e.preventDefault();\n                e.stopPropagation();\n                setTimeout(() => {\n                    if (player && player.getPlayerState() !== YT.PlayerState.PLAYING) {\n                        player.playVideo();\n                    }\n                }, 150);\n            });\n        }\n    }\n\n    function onPlayerError(event) {\n        if (!CONFIG.skippableErrors.includes(event.data)) return;\n\n        console.warn(`[Imperio-System] Error ${event.data} en \u00edndice ${targetIndex}. Acumulando salto...`);\n\n        targetIndex++;\n        clearTimeout(debounceTimer);\n        clearTimeout(watchdogTimer);\n        state = 'SKIPPING';\n\n        debounceTimer = setTimeout(executeSkip, CONFIG.debounceMs);\n    }\n\n    function onPlayerStateChange(event) {\n        const s = event.data;\n\n        \/\/ DISPARADOR 1: Evento directo PLAYING o BUFFERING\n        if (s === YT.PlayerState.PLAYING || s === YT.PlayerState.BUFFERING) {\n            if (s === YT.PlayerState.PLAYING) {\n                clearTimeout(watchdogTimer);\n                clearTimeout(debounceTimer);\n                watchdogTimer = null;\n                debounceTimer = null;\n                state         = 'PLAYING';\n                skipCount     = 0;\n                targetIndex   = player.getPlaylistIndex();\n                console.info(`[Imperio-System] Reproduciendo \u00edndice ${targetIndex}.`);\n            }\n            hideBlockScreen(); \/\/ Se ejecuta en PLAYING y BUFFERING, pero screenDismissed la protege\n        }\n\n        if (s === YT.PlayerState.ENDED) {\n            targetIndex++;\n            advancePlaylist();\n        }\n    }\n\n    \/\/ \u2500\u2500 Motor de salto \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    function executeSkip() {\n        if (skipCount >= CONFIG.maxSkips) {\n            console.error('[Imperio-System] L\u00edmite de saltos alcanzado. Abortando.');\n            state     = 'IDLE';\n            skipCount = 0;\n            return;\n        }\n\n        skipCount++;\n        console.warn(`[Imperio-System] Ejecutando salto #${skipCount} \u2192 \u00edndice ${targetIndex}`);\n\n        try {\n            const playlist = player.getPlaylist();\n            if (playlist && playlist.length > 0) {\n                player.playVideoAt(targetIndex % playlist.length);\n            } else {\n                player.loadPlaylist({\n                    list:             CONFIG.playlistId,\n                    listType:         'playlist',\n                    index:            targetIndex,\n                    suggestedQuality: 'default'\n                });\n            }\n        } catch (e) {\n            console.error('[Imperio-System] executeSkip fall\u00f3. M\u00e9todo nativo.', e);\n            try { player.nextVideo(); } catch (e2) { \/* silencioso *\/ }\n        }\n\n        watchdogTimer = setTimeout(() => {\n            const ps = player.getPlayerState();\n            const isStuck = (\n                ps !== YT.PlayerState.PLAYING &&\n                ps !== YT.PlayerState.BUFFERING\n            );\n            if (isStuck && state === 'SKIPPING') {\n                console.warn(`[Imperio-System] Watchdog: congelamiento en \u00edndice ${targetIndex}. Forzando siguiente...`);\n                targetIndex++;\n                executeSkip();\n            }\n        }, CONFIG.watchdogMs);\n    }\n\n    function advancePlaylist() {\n        try {\n            const playlist = player.getPlaylist();\n            if (playlist && playlist.length > 0) {\n                player.playVideoAt(targetIndex % playlist.length);\n            } else {\n                player.nextVideo();\n            }\n        } catch (e) {\n            player.nextVideo();\n        }\n    }\n\n    document.addEventListener('DOMContentLoaded', initYouTubeAPI);\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Loading list of movies you like&#8230;choose the best one<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"showcase.php","meta":{"footnotes":""},"class_list":["post-29249","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>lab - Ly mobile it&#039;s People&#039;s Internet Internet de las Personas<\/title>\n<meta name=\"description\" content=\"Loading list of movies you like...choose the best one\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ligamosya.com\/a\/lab\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"lab - Ly mobile it&#039;s People&#039;s Internet Internet de las Personas\" \/>\n<meta property=\"og:description\" content=\"Loading list of movies you like...choose the best one\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ligamosya.com\/a\/lab\/\" \/>\n<meta property=\"og:site_name\" content=\"Ly mobile it&#039;s People&#039;s Internet Internet de las Personas\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/groups\/Internetdelaspersonas\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-10T01:31:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ligamosya.com\/a\/wp-content\/uploads\/2021\/05\/GANDIA-SHORE-CHICOS-CHICAS.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"480\" \/>\n\t<meta property=\"og:image:height\" content=\"338\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/lab\\\/\",\"url\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/lab\\\/\",\"name\":\"lab - Ly mobile it&#039;s People&#039;s Internet Internet de las Personas\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/#website\"},\"datePublished\":\"2025-12-24T04:32:19+00:00\",\"dateModified\":\"2026-03-10T01:31:47+00:00\",\"description\":\"Loading list of movies you like...choose the best one\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/lab\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ligamosya.com\\\/a\\\/lab\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/lab\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"lab\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/#website\",\"url\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/\",\"name\":\"Ly mobile it&#039;s People&#039;s Internet Internet de las Personas\",\"description\":\"T\u00fa estas en el mundo a todo lujo. You are in the world in luxury\",\"publisher\":{\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/#organization\",\"name\":\"Ly mobile\",\"url\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/2_win1.ico\",\"contentUrl\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/2_win1.ico\",\"width\":32,\"height\":32,\"caption\":\"Ly mobile\"},\"image\":{\"@id\":\"https:\\\/\\\/ligamosya.com\\\/a\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/groups\\\/Internetdelaspersonas\\\/\",\"https:\\\/\\\/www.instagram.com\\\/ligamosya.com_partner\\\/?hl=es-la\",\"https:\\\/\\\/www.pinterest.com.mx\\\/billmayoii\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCk3UUsA6_PbjUs3kL1Qohsw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"lab - Ly mobile it&#039;s People&#039;s Internet Internet de las Personas","description":"Loading list of movies you like...choose the best one","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ligamosya.com\/a\/lab\/","og_locale":"en_US","og_type":"article","og_title":"lab - Ly mobile it&#039;s People&#039;s Internet Internet de las Personas","og_description":"Loading list of movies you like...choose the best one","og_url":"https:\/\/ligamosya.com\/a\/lab\/","og_site_name":"Ly mobile it&#039;s People&#039;s Internet Internet de las Personas","article_publisher":"https:\/\/www.facebook.com\/groups\/Internetdelaspersonas\/","article_modified_time":"2026-03-10T01:31:47+00:00","og_image":[{"width":480,"height":338,"url":"https:\/\/ligamosya.com\/a\/wp-content\/uploads\/2021\/05\/GANDIA-SHORE-CHICOS-CHICAS.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ligamosya.com\/a\/lab\/","url":"https:\/\/ligamosya.com\/a\/lab\/","name":"lab - Ly mobile it&#039;s People&#039;s Internet Internet de las Personas","isPartOf":{"@id":"https:\/\/ligamosya.com\/a\/#website"},"datePublished":"2025-12-24T04:32:19+00:00","dateModified":"2026-03-10T01:31:47+00:00","description":"Loading list of movies you like...choose the best one","breadcrumb":{"@id":"https:\/\/ligamosya.com\/a\/lab\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ligamosya.com\/a\/lab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ligamosya.com\/a\/lab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ligamosya.com\/a\/"},{"@type":"ListItem","position":2,"name":"lab"}]},{"@type":"WebSite","@id":"https:\/\/ligamosya.com\/a\/#website","url":"https:\/\/ligamosya.com\/a\/","name":"Ly mobile it&#039;s People&#039;s Internet Internet de las Personas","description":"T\u00fa estas en el mundo a todo lujo. You are in the world in luxury","publisher":{"@id":"https:\/\/ligamosya.com\/a\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ligamosya.com\/a\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ligamosya.com\/a\/#organization","name":"Ly mobile","url":"https:\/\/ligamosya.com\/a\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ligamosya.com\/a\/#\/schema\/logo\/image\/","url":"https:\/\/ligamosya.com\/a\/wp-content\/uploads\/2019\/11\/2_win1.ico","contentUrl":"https:\/\/ligamosya.com\/a\/wp-content\/uploads\/2019\/11\/2_win1.ico","width":32,"height":32,"caption":"Ly mobile"},"image":{"@id":"https:\/\/ligamosya.com\/a\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/groups\/Internetdelaspersonas\/","https:\/\/www.instagram.com\/ligamosya.com_partner\/?hl=es-la","https:\/\/www.pinterest.com.mx\/billmayoii\/","https:\/\/www.youtube.com\/channel\/UCk3UUsA6_PbjUs3kL1Qohsw"]}]}},"_links":{"self":[{"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/pages\/29249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/comments?post=29249"}],"version-history":[{"count":0,"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/pages\/29249\/revisions"}],"wp:attachment":[{"href":"https:\/\/ligamosya.com\/a\/wp-json\/wp\/v2\/media?parent=29249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}