I am a commercial developer of Gracenote. I want to get videoWork data of GnAcrMatch's tvAiring after the SDK giving me some matches when detecting a video. For example, in the result event I run this code in the resultEvent callback of IGnAcrEvents implementation:
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());
}
This code just print "Release date: ", although It has recognized a movie on live TV.