Triton Web Player SDK

Anterior Siguiente

This document describes the Triton Digital Web Player SDK version 2.9. See the Archives page for previous versions. You can find a demo of the current SDK here: https://sdk.listenlive.co/web/2,90/playground/

For updates, see the Change Log.

Cuando use la demostración, considere cuál es la mejor integración de este kit de desarrollo de software para su sitio web, en vez de usar la página de pruebas de configuración "tal como está".

The Triton Digital Web Player SDK 2,90 allows you to create an HTML5 embeddable and chromeless media player connected to all Triton Digital services (i.e., Live Streaming, Ads, etc.) via JavaScript. HTML5 rendering mode is supported, so the media player is available on desktop, tablet, and mobile devices.

The Triton Digital Web Player SDK 2,90 does not provide a UI, except for a video projector used to display video ads and live video streams. The player UI interface and skinning have to be done in HTML, CSS, and JavaScript by the developer.

The Triton Digital Web Player SDK 2,90 is designed with a modular approach (AMD), where each module gives you access to a specific player feature (e.g., the MediaPlayer, described below, is a module and is required to play a stream or a preroll).

Para actualizar desde una versión anterior

Si estaba usando una versión anterior de este kit de desarrollo de software, la integración de su kit de desarrollo de software requerirá los siguientes cambios para actualizarlo a la versión 2,90:

  1. Actualice el URL del kit de desarrollo de software JavaScript:
    <script src="//sdk.listenlive.co/web/2,90/td-sdk.min.js"></script>
  2. Actualice la configuración del reproductor:
    In previous versions, the core events where configured with event listeners and you had to call the loadModules() function on the player instance, as follows:
    var player = new TdPlayerApi( tdPlayerConfig );
    player.addEventListener( 'player-ready', onPlayerReady );
    player.addEventListener( 'configuration-error', onConfigurationError );
    player.addEventListener( 'module-error', onModuleError );
    player.loadModules();
    

    In 2.9, the core events callbacks are now passed as configurations and the call to loadModules() is no longer required:

var tdPlayerConfig = { 
 coreModules: [{ 
         id: 'MediaPlayer', 
         playerId: 'td_container' 
 }],
 // The callbacks are defined in your source code.
 playerReady: onPlayerReady,
 configurationError: onConfigurationError,
 moduleError: onModuleError,
 adBlockerDetected: onAdBlockerDetected
};
 
// The call to loadModules() as been removed.                 
player = new TDSdk( tdPlayerConfig );



© 2026 Triton Digital. Todos los derechos reservados.