Restart App + restart client
This commit is contained in:
Родитель
bcca307bed
Коммит
855e78167f
|
@ -21,13 +21,15 @@ const _eventNames = {
|
|||
MINIMIZE: "minimize",
|
||||
MOUSELOCK: "mouseLock",
|
||||
QUALITY: "quality",
|
||||
RESTART_APP: "restartApp",
|
||||
RESTART_CLIENT: "restartClient",
|
||||
};
|
||||
|
||||
const _qualityValues = {
|
||||
LOW: 0,
|
||||
MEDIUM: 0,
|
||||
HIGH: 0,
|
||||
ULTRA: 0,
|
||||
MEDIUM: 1,
|
||||
HIGH: 2,
|
||||
ULTRA: 3,
|
||||
}
|
||||
|
||||
const _furioosServerUrl = "http://localhost:3000"; //"https://portal.furioos.com"
|
||||
|
@ -159,4 +161,12 @@ module.exports = class Player {
|
|||
value: value
|
||||
}, _furioosServerUrl);
|
||||
}
|
||||
|
||||
restartApp() {
|
||||
this.embed.contentWindow.postMessage({ type: _eventNames.RESTART_APP }, _furioosServerUrl);
|
||||
}
|
||||
|
||||
restartClient() {
|
||||
this.embed.contentWindow.postMessage({ type: _eventNames.RESTART_CLIENT }, _furioosServerUrl);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "furioos-sdk",
|
||||
"version": "1.0.13",
|
||||
"version": "1.0.15",
|
||||
"description": "Furioos SDK to create your own furioos viewer",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче