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());
}
這段代碼只是打印「發佈日期」,儘管它已經意識到電影在電視直播中。