2015-05-20 16 views
0

我是Gracenote的商業開發者。我想在SDK檢測到視頻時給我一些匹配之後,獲取GnAcrMatch的tvAiring的videoWork數據。例如,在結果事件中,我在IGnAcrEvents實施的ResultEvent回調運行這段代碼:如何在Gracenote Entourage SDK中獲取GnAcrMatch電視的videoWork數據?

GnTVAiring tvAiring = acrMatch.tvAiring(); 
        if (!tvAiring.isNull()) 
        { 
         GnTitle subtitle = acrMatch.subtitle(); 
         GnTVChannel tvChannel = tvAiring.tvChannel(); 

         updateResultView(
           String.format("Airing: %s(%s) %s %s (Match #%d)", 
             officialTitle, 
             (subtitle != null ? subtitle.display() : "n/a"), 
             (tvChannel != null ? tvChannel.channelCallsign() : "n/a"), 
             matchPosition, 
             matchCounter), 
           false); 
         System.out.println("tvAiring is not null"); 

         GnVideoWork videoWork = tvAiring.tvProgram().videoWork(); 
         System.out.println("Release date: " + videoWork.dateOriginalRelease()); 
        } 

這段代碼只是打印「發佈日期」,儘管它已經意識到電影在電視直播中。

回答

0

你有沒有得到一個有效的'視頻工作'? 並非所有的電視節目都有相應的視頻作品,所以我猜測沒有任何可用的。 下次如果您有類似問題,請指定電視節目的GNID,以便輕鬆驗證。

  • 如果您已經是商業開發人員,那麼聯繫您的Gracenote聯繫人可能會更快地解決您的問題。
相關問題