2013-01-17 2 views
0

제조업체, 모델 및 지원 대상 (예 : 3D, 외부 컨트롤 (마우스, 키보드 등)과 같은 장치에 대한 정보가 필요한 앱을 구축 중입니다.)) 등등. http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.developing.book%2Fhtml%2FAPI%2FAPI%2FProperties2.htm삼성 스마트 장치 정보

가 어떻게 삼성 기기에서이 작업을 수행 할 수 있습니다 : LG TV의

내가는 DOM 요소를 참조하고 속성을의 읽고이 액세스 할 수 있어요?

답변

0

발견! 밝혀지면 $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()); 
}