Description
The method TouchCastPlayerAPI.embed()
allows you to embed touchcast players into any webpage you want. You can embed an unlimited number of players.
TouchCastPlayerAPI.embed(config);
Parameters
Name | Description | Type |
---|---|---|
config | Object with these possible properties:
Also You can see all parameters for playerConfig in | object |
Example
TouchCastPlayerAPI.embed({ container: '#player-container', videoUrl: '//tc.touchcast.com/files/YSAgICAgICAgICAgICAgIE1uejVPOW80SjlINUdsT3kxR0cvbi9YUkhjNkZyaGJjd09IMk03SDU4N0NCU0p4cEZwOC9mK281NHhvUlhWSWQ=', playerId: , width: '960', height: '405', playerConfig: { controlsColor: 'rgba(79, 56, 189, 0.66)', playerBackgroundColor: '#b7c4c7', progressUpdateColor: 'green', interactiveTip: false, playControl: false, volumeControl: false, logoInControls: true, timingControl: false, infoControl: false, shareControl: false, commentsControl: false, summaryControl: true, searchControl: false, subtitlesControl: false, fullscreenControl: true, }, });