LG SmartTV连接到HDMI

时间:2018-07-16 12:50:33

标签: smart-tv

我想将我的应用程序与HDMI连接, 我测试了连接isConnected类型HDMI的连接,结果得到了“ TRUE”

hcap.externalinput.isExternalInputConnected({
             "type" : hcap.externalinput.ExternalInputType.HDMI,
             "index" : 1,
             "onSuccess" : function(s) {
                 alert("onSuccess : isConnected = " + s.isConnected);
             }, 
             "onFailure" : function(f) {
                 alert("onFailure : errorMessage = " + f.errorMessage);
             }
        });

但是当我使用插入装置时外部输入类型HDMI;将我重定向到“功能失败”

hcap.externalinput.setCurrentExternalInput({
          "type" : hcap.externalinput.ExternalInputType.HDMI,
          "index" : 1, 
          "onSuccess" : function() {
                alert("onSuccess");
          }, 
          "onFailure" : function(f) {
              alert("onFailure : errorMessage = " + f.errorMessage);
          }
    });

我不知道为什么不能使用setCurrentExternalInput与HDMI连接?

0 个答案:

没有答案
相关问题