Embed code

Embed by presentation ID

Use presentation ID in place of <presentation_id>.

<div id="embed"></div>
<script src="<https://slideslive.com/embed_presentation.js>"></script>
<script>
  embed = new SlidesLiveEmbed('embed', {
    presentationId: '<presentation_id>',
    autoPlay: false,
    verticalEnabled: true
  });
</script>

Embed livestream

When account or collection has no livestream onError callback will be called with no_live_event error code. You can call reload method to reload embed periodically to check for new livestream.

When no onError callback is set reload method is called every 20 - 30 seconds automatically.

When this happens nothing is shown in the actual embed. Its size is 0x0 px.

Embed live presentation from specific account

Use account canonical name in place of <account_name>. You can find it in the URL when you open the account.

For example for https://slideslive.com/sciencecafe canonical name is sciencecafe.

<div id="embed"></div>
<script src="<https://slideslive.com/embed_presentation.js>"></script>
<script>
  embed = new SlidesLiveEmbed('embed', {
    autoPlay: false,
    verticalEnabled: true,
    live: true,
    account: '<account_name>'
  });
</script>

Embed live presentation from specific collection

Use account canonical name in place of <account_name> and collection canonical name in place of <collection_name>. You can find both of these name in the URL when you open the collection.

For example for https://slideslive.com/sciencecafe/SCPraha account canonical name is sciencecafe and collection canonical name is SCPraha.

<div id="embed"></div>
<script src="<https://slideslive.com/embed_presentation.js>"></script>
<script>
  embed = new SlidesLiveEmbed('embed', {
    autoPlay: false,
    verticalEnabled: true,
    live: true,
    account: '<account_name>',
    folder: '<collection_name>'
  });
</script>

Embed options

These options are passed as an Object as second parameter when creating instance of SlidesLiveEmbed.

Callbacks