return { images: 'no' };
}
}
+ global.webapis.getCameraInfo = () => {
+ try {
+ if (wrt.tv)
+ return wrt.tv.getCameraInfo();
+ else
+ throw 'This API is only for TV profile';
+ } catch(e) {
+ console.debug(`wrt.tv.getCameraInfo() failed, ${e}`);
+ return '{}';
+ }
+ }
global.webapis.getProfile = () => {
if (wrt.tv) return 'TV';
else if (wrt.da) return 'DA';
Object.defineProperties(global.webapis, {
getAppIdsByMetadata: { writable: false, enumerable: true },
getCallerAppId: { writable: false, enumerable: true },
+ getCameraInfo: { writable: false, enumerable: true },
getPackageId: { writable: false, enumerable: true },
getPreviewData: { writable: false, enumerable: true },
getProfile: { writable: false, enumerable: true },