0

メーカー、モデル、サポート対象 (3D、外部コントロール (マウス、キーボードなど) など) など、実行中のデバイスに関する情報を必要とするアプリを作成しています。

LG TV では、DOM 要素を参照してその属性を読み取ることでこれにアクセスできます: http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.developing.book%2Fhtml%2FAPI %2FAPI%2FProperties2.htm

Samsung デバイスでこれを行うにはどうすればよいですか?

4

1 に答える 1

1

それを見つけた!ロードする必要があることが判明し$MANAGER_WIDGET/Common/af/2.0.0/loader.js、その後、オブジェクトにアクセスできdeviceapisます。例えば:

if (deviceapis)
{
    // ermagad
    deviceId = findKey(deviceapis.tv.info, deviceapis.tv.info.getProduct()) + '; ' +
        deviceapis.platform + '; ' +
        deviceapis.tv.info.getDeviceID() + '; ' +
        deviceapis.tv.info.getModel() + '; ' +
        deviceapis.tv.info.getFirmware() + '; ' +
        deviceapis.tv.info.getCountry() + '; ' +
        deviceapis.tv.info.getLanguage() + '; ' +
        deviceapis.tv.info.getVersion() + '; ' +
        findKey(deviceapis.displaycontrol, deviceapis.displaycontrol.get3DEffectMode()) + '; ' +
        findKey(deviceapis.audiocontrol, deviceapis.audiocontrol.getOutputMode());
}
于 2013-01-20T09:47:23.677 に答える