How to get the product type?
Checking whether the application is running on a TV or BD
Sometimes, it is necessary for the application to distinguish between different types of platform (whether it is a TV, BD, etc.). In most cases, this feature is needed for different settings of the volume control.
Here is the guide to check the product type code:
alert('Device type: ' + deviceapis.tv.info.getProduct());
The value returned by the function is interpreted as follows:
- 0 - PL_TV_PRODUCT_TYPE_TV
- 1 - PL_TV_PRODUCT_TYPE_MONITOR
- 2 - PL_TV_PRODUCT_TYPE_BD
For the SDK emulator, this function always returns fake PL_TV_PRODUCT_TYPE_TV
In order to check which year series the device belongs to, please see How to check the firmware version?.