Skip to main content

Iframe API

This page is designed to assist you in seamlessly embedding a design you've created on app.chanceseed.com into your website.

You simply need to create an <iframe> HTML tag and place it on your website or WordPress.

The URL has the following format:

https://app.chanceseed.com/b/BOX_ID

The <iframe> tag below would load a 640x640px player that would play the widget with id 64068cba1bd213d50f95704b

<iframe id="csplayer"  width="640" height="640" style="border: none;" scrolling="no"
src="https://app.chanceseed.com/b/64068cba1bd213d50f95704b?embed=1"
frameborder="0"></iframe>

https://app.chanceseed.com/b/64068cba1bd213d50f95704b?embed=1

Supported parameters

All of the following parameters are optional.

ParametersUsage
controls

This parameter indicates whether the video player controls are displayed:

  • controls=0 Player controls do not display in the player.
  • controls=1 (default) Player controls display in the player.
decoration

This parameter indicates whether the decoration all text and images are displayed

  • decoration=0 all decoration do not display in the player.
  • decoration=1 (default) all decoration display in the player.
background

This parameter indicates whether the background image is displayed

  • background=0 background do not display in the player.
  • background=1 (default) background display in the player.
sound

This parameter indicates to turn on or off the sound

  • sound=0 sound off
  • sound=1 (default) sound on
logo

This parameter indicates whether the logo are displayed:

  • logo=0 logo do not display in the player.
  • logo=1 (default) logo display in the player.

You need a Pro plan to use this parameter

tracking

This parameter indicates whether we send a tracking event to our chancseed server when user play the game. We only collect result item of the game to report on analytics.

  • tracking=0 tracking off
  • tracking=1 (default) tracking on
embed

A short hand version of controls, background and decoration

  • embed=1 do not use controls, background and decoration
  • embed=0 (default)
p_{custom}

all params start with p_ will be send to an rest api on your server. so you can include you customer info like user_email or user_id

Example

that code below will create a player with no controls, no sound and no background,

<iframe id="csplayer"  width="640" height="640" style="border: none;" scrolling="no"
src="https://app.chanceseed.com/b/64068cba1bd213d50f95704b?controls=0&sound=0&background=0&[email protected]"
frameborder="0"></iframe>

Revision history