Step 1: Require player.js
<script src="https://api3d.crisalix.com/v2/player.js"></script>
Step 2: Initialize CrisalixPlayer
var player_token = 'xxx';
var player = new CrisalixPlayer(player_token);
Step 3: Render the player for Surgeons or Patients
Every Patient has an attribute player_id that is only used here.
var options = {
container: document.getElementById('player'),
reconstruction_type: 'mammo',
player_id: 'N40'
};
player.render('surgeon', options);
player.render('patient', options);
Surgeon player example:
Patient player example:
Load a simulation automatically:
options['simulation_id'] = 9999;
Set player language:
options['locale'] = 'en';
Surgeon player languages:
Patient player languages:
Set Iframe's width and height:
options['iframe'] = {
width: '80%',
height: '80%'
};