This repository was archived by the owner on Nov 22, 2017. It is now read-only.
forked from wellcometrust/player
-
Notifications
You must be signed in to change notification settings - Fork 1
Embedding
Edward Silverton edited this page Oct 31, 2013
·
7 revisions
When clicking on the Wellcome Player's embed button in the footer you will see a dialogue similar to those provided by video sharing sites that allows you to copy and paste some code to embed the player in your own site.
This consists of a div with data attributes:
- data-uri: The path to the data package you wish to display
- data-assetsequenceindex: For packages with more than one asset sequence e.g. http://wellcomelibrary.org/osplayer/b18031511 this specifies which asset sequence (in this example which volume of the book) to load.
- data-assetindex: The initial asset index to load (page index in the previous example).
- data-zoom: An attribute specific to image asset sequences viewed with the Seadragon Extension which specifies an initial zoom level.
Plus a script to load embed.js which handles creating an iframe housing the player page within the containing div.