Available APIs Clause Samples

Available APIs. As the SMT aims to be used not only by LinkedTV (see chapter 5) there has been decided to integrate LinkedTV specific features in external APIs instead of in the core of the toolkit. By means of this functionalities are available, but not interweaved into the toolkit. The different APIs are developed with requests and feedback from the different partners that have used the SMT for implementing their multiscreen applications. With television broadcasters in mind we defined channels and episodes, where a channel could be a continuous live television channel or a predefined channel. It contains a list of episodes for the defined channel. Creates a channel for the given domain and channel name. public List<Episode> getEpisodes() Returns a list of episodes from the channel. public Episode getLatestEpisode() Returns the latest episode from the channel. Episodes hold not only the video but also related information like chapters, annotations and enrichments taken from the LinkedTV platform. Creates an episode for the given media resource id. public String getMediaResourceId() Returns the media resource id for this episode. public String getStillsUri() Returns the base URI for the video stills. public int getDuration() Returns the duration of the episode. public String getStreamUri() Returns the video stream URI. public String getStreamUri(int quality) Returns the video stream URI for the given quality. The following qualities are available for LinkedTV: • 2 – 640x360, 800kbps • 3 – 1280x720, 1.4Mbps • 4 – 1920x1080, 2.7 Mbps • 5 – 320x180, 100kbps Returns the title for the episode. public String getPresentationId() Returns the presentation id for this episode for the Noterik display database. public FSList getAnnotations() Returns a FSList of annotations for the episode. public FSList getChapters() Returns a FSList of chapters for the episode. public FSList getAnnotationsFromChapter(FsNode chapter) Returns a FSList of annotations for the given chapter. public FSList getEnrichmentsFromAnnotation(FsNode annotation) Returns a FSList of enrichments for the given annotation. For personalization as described in D4.6 it is required to communicate the user interactions with the player back to the LinkedTV platform, by means of this the platform can personalize the recommendations showed in the player. The events are communicated to GAIN [2] that processes the events. Creates a GAIN object with the given account id and application id. public void application_new() Signals ...