This commit is contained in:
MaxenceBrasselet 2019-06-18 14:31:08 +02:00
Родитель d09ae04f67
Коммит ea661b5a91
1 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -4,21 +4,21 @@ You'll need a pro version subscription on your Furioos interface in order to use
Then choose the app you want to use with the SDK and share it as SDK link.
## Installation
```npm install --save furioos-sdk```
```npm install --save furioos-sdk```
## Exemple
You should copy past your link previously you got in your Furioos interface.
```js
import { Player } from 'furioos-sdk';
const player = new Player({sdkShareLink}, {containerDivId});
```js
import { Player } from 'furioos-sdk';
const player = new Player({sdkShareLink}, {containerDivId});
player.onLoad(function() {
// Here you know when the player is ready.
player.startSession();
})
```
player.onLoad(function() {
// Here you know when the player is ready.
player.startSession();
})
```
## Methods
### constructor(sdkShareLink, containerDivId)