@enplug/sdk-player
Advanced tools
Comparing version 0.11.3 to 0.11.4
{ | ||
"name": "@enplug/sdk-player", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"description": "Enplug Player SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -295,17 +295,14 @@ /** | ||
/** @returns Edu info*/ | ||
/** | ||
* This Promise will resolve to an Object with the following info of the device | ||
* deviceId, deviceName, displayHeight, displayWidth, venueId, venueName | ||
* | ||
* @returns Resolves to an object with device basic info. | ||
*/ | ||
get deviceInfo(): Promise<any> { | ||
return this.bridge.send(Service.Settings, Action.GetDeviceInfo).then((payload: any) => { | ||
console.log(`[Enplug SDK: ${this.version}] Settings: Returning device Info: ${JSON.stringify(payload)}`) | ||
const id = this.getPayloadValue(payload); | ||
return { | ||
deviceId: id? id as string : null, | ||
deviceName: payload.deviceName, | ||
displayWidth: payload.displayWidth, | ||
displayHeight: payload.displayHeight, | ||
venueId: payload.venueId, | ||
venueName: payload.venueName | ||
} | ||
}) | ||
return this.getPayloadValue(payload); | ||
}); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
219542
3195