Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

The method TouchCastPlayerAPI.embed() allows you to embed touchcast players into any webpage you want.

You can embed an unlimited number of players.



Code Block
languagejs
themeDJango

TouchCastPlayerAPI.embed(config);


Parameters

NameDescriptionType
config

Object with these possible properties: 

  • container[string]* - mandatory, represents a CSS selector for a container where the TouchCast player should be embedded. For example it can have a value of #player-container or .player-containerThat means that somewhere on your webpage you should have a container like <div id="player-container"></div> or <div class="player-container"></div>
  • width[string]* - mandatory, represents the player width. It accepts values like "100%" or  "640px"
  • height[integer/string]* - mandatory, represents the player height. It accepts values like "100%" or  "400px"
  • videoUrl[string]* - mandatory, represents a touchcast video url.
  • playerId[string]* - mandatory, represents a unique id for the player; helpful to identify the player instance.
  • themeConfiguration[object] - an object that allows to customize player appearance. It accepts these possible properties:
    • d


object