Version: 1.4.0
A TextTrack plugin for Thunder framework.
The TextTrack plugin provides an interface for TextTrack.
The plugin is designed to be loaded and executed within the Thunder framework. For more information about the framework refer to [Thunder].
The table below lists configuration options of the plugin.
| Name | Type | Description |
|---|---|---|
| callsign | string | Plugin instance name (default: org.rdk.TextTrack) |
| classname | string | Class name: TextTrack |
| locator | string | Library name: libWPEFrameworkTextTrack.so |
| autostart | boolean | Determines if the plugin shall be started automatically along with the framework |
The following methods are provided by the TextTrack plugin:
TextTrack interface methods:
| Method | Description |
|---|---|
| closeSession | Closes a previously opened render session. |
| getBackgroundColor | Getter for BackgroundColor |
| getBackgroundOpacity | Getter for BackgroundOpacity |
| getCapabilities | Retrieves an iterator over all supported TextTrack capabilities. |
| getCapability | Queries whether a specific TextTrack capability is supported by the implementation. |
| getClosedCaptionsStyle | Gets the current ClosedCaptionsStyle settings. |
| getFontColor | Getter for FontColor |
| getFontEdge | Getter for FontEdge |
| getFontEdgeColor | Getter for FontEdgeColor |
| getFontFamily | Getter for FontFamily |
| getFontOpacity | Getter for FontOpacity |
| getFontSize | Getter for FontSize |
| getTtmlStyleOverrides | Gets the global TTML style overrides |
| getWindowColor | Getter for WindowColor |
| getWindowOpacity | Getter for WindowOpacity |
| muteSession | Mute will hide rendering of Captions |
| openSession | Opens a new renderSession. |
| pauseSession | Pauses a render session. |
| resetSession | Resets a previously opened render session back to its opened state. |
| resumeSession | Resumed a paused session |
| sendSessionData | Sends data of Closed Captions, Captions or Timed Text data to a render session. |
| sendSessionTimestamp | Sends the current timestamp from a media player to a render session. |
| setBackgroundColor | Setter for BackgroundColor |
| setBackgroundOpacity | Setter for BackgroundOpacity |
| setClosedCaptionsStyle | Sets the ClosedCaptionsStyle. |
| setFontColor | Setter for FontColor |
| setFontEdge | Setter for FontEdge |
| setFontEdgeColor | Setter for FontEdgeColor |
| setFontFamily | Setter for FontFamily |
| setFontOpacity | Setter for FontOpacity |
| setFontSize | Setter for FontSize |
| setPreviewText | Sets a static text in the display for preview purposes. |
| setSessionClosedCaptionsService | Sets the render session into CC mode. |
| setSessionDvbSubtitleSelection | Set the render session into Dvb Subtitle mode, specifying the the page for presentation. (See ETSI EN 300 743) |
| setSessionSCTESelection | Set the render session into SCTE mode |
| setSessionTTMLSelection | Set the render session into TTML mode |
| setSessionTeletextSelection | Set the render session into Teletext mode, providing the teletext caption page for presentation |
| setSessionWebVTTSelection | Set the render session into WebVTT mode |
| setTtmlStyleOverrides | Sets global TTML override style. |
| setWindowColor | Setter for WindowColor |
| setWindowOpacity | Setter for WindowOpacity |
| unMuteSession | UnMute will unhide the rendering of Captions. |
Any created windows and surfaces is destroyed
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 0,
"method": "org.rdk.TextTrack.closeSession",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 0, "method": "org.rdk.TextTrack.closeSession", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 0,
"result": null
}Getter for BackgroundColor
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.color | string |
{
"jsonrpc": 2.0,
"id": 1,
"method": "org.rdk.TextTrack.getBackgroundColor"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 1, "method": "org.rdk.TextTrack.getBackgroundColor"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 1,
"result": {
"color": ""
}
}Getter for BackgroundOpacity
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.opacity | integer |
{
"jsonrpc": 2.0,
"id": 2,
"method": "org.rdk.TextTrack.getBackgroundOpacity"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 2, "method": "org.rdk.TextTrack.getBackgroundOpacity"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 2,
"result": {
"opacity": 0
}
}Retrieves an iterator over all supported TextTrack capabilities.
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.capabilities | IIterator | Iterator providing the list of supported capabilities. @retval Core::ERROR_NONE The list of capabilities was retrieved successfully. @retval Core::ERROR_NOT_SUPPORTED Retrieving capabilities is not supported. |
| result.capabilities[#] | string |
{
"jsonrpc": 2.0,
"id": 3,
"method": "org.rdk.TextTrack.getCapabilities"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 3, "method": "org.rdk.TextTrack.getCapabilities"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 3,
"result": [
"UNSET"
]
}Queries whether a specific TextTrack capability is supported by the implementation.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.capability | string | The capability to query |
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.hasCapability | bool | Indicates whether the queried capability is supported. @retval Core::ERROR_NONE The capability query completed successfully. @retval Core::ERROR_NOT_SUPPORTED Capability querying is not supported. |
{
"jsonrpc": 2.0,
"id": 4,
"method": "org.rdk.TextTrack.getCapability",
"params": {
"capability": "FIREBOLT_MIGRATION"
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 4, "method": "org.rdk.TextTrack.getCapability", "params": {"capability": "FIREBOLT_MIGRATION"}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 4,
"result": {
"hasCapability": true
}
}Gets the current ClosedCaptionsStyle settings.
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.style | ClosedCaptionsStyle | Contains the chosen styles |
| result.style.fontFamily | string | |
| result.style.fontSize | string | |
| result.style.fontColor | string | |
| result.style.fontOpacity | integer | |
| result.style.fontEdge | string | |
| result.style.fontEdgeColor | string | |
| result.style.backgroundColor | string | |
| result.style.backgroundOpacity | integer | |
| result.style.windowColor | string | |
| result.style.windowOpacity | integer |
{
"jsonrpc": 2.0,
"id": 5,
"method": "org.rdk.TextTrack.getClosedCaptionsStyle"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 5, "method": "org.rdk.TextTrack.getClosedCaptionsStyle"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 5,
"result": {
"fontFamily": "CONTENT_DEFAULT",
"fontSize": "CONTENT_DEFAULT",
"fontColor": "",
"fontOpacity": 0,
"fontEdge": "CONTENT_DEFAULT",
"fontEdgeColor": "",
"backgroundColor": "",
"backgroundOpacity": 0,
"windowColor": "",
"windowOpacity": 0
}
}Getter for FontColor
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.color | string |
{
"jsonrpc": 2.0,
"id": 6,
"method": "org.rdk.TextTrack.getFontColor"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 6, "method": "org.rdk.TextTrack.getFontColor"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 6,
"result": {
"color": ""
}
}Getter for FontEdge
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.edge | string |
{
"jsonrpc": 2.0,
"id": 7,
"method": "org.rdk.TextTrack.getFontEdge"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 7, "method": "org.rdk.TextTrack.getFontEdge"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 7,
"result": {
"edge": "CONTENT_DEFAULT"
}
}Getter for FontEdgeColor
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.color | string |
{
"jsonrpc": 2.0,
"id": 8,
"method": "org.rdk.TextTrack.getFontEdgeColor"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 8, "method": "org.rdk.TextTrack.getFontEdgeColor"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 8,
"result": {
"color": ""
}
}Getter for FontFamily
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.font | string |
{
"jsonrpc": 2.0,
"id": 9,
"method": "org.rdk.TextTrack.getFontFamily"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 9, "method": "org.rdk.TextTrack.getFontFamily"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 9,
"result": {
"font": "CONTENT_DEFAULT"
}
}Getter for FontOpacity
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.opacity | integer |
{
"jsonrpc": 2.0,
"id": 10,
"method": "org.rdk.TextTrack.getFontOpacity"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 10, "method": "org.rdk.TextTrack.getFontOpacity"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 10,
"result": {
"opacity": 0
}
}Getter for FontSize
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.size | string |
{
"jsonrpc": 2.0,
"id": 11,
"method": "org.rdk.TextTrack.getFontSize"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 11, "method": "org.rdk.TextTrack.getFontSize"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 11,
"result": {
"size": "CONTENT_DEFAULT"
}
}Gets the global TTML style overrides
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.style | string | Contains the chosen override for styles |
{
"jsonrpc": 2.0,
"id": 12,
"method": "org.rdk.TextTrack.getTtmlStyleOverrides"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 12, "method": "org.rdk.TextTrack.getTtmlStyleOverrides"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 12,
"result": {
"style": ""
}
}Getter for WindowColor
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.color | string |
{
"jsonrpc": 2.0,
"id": 13,
"method": "org.rdk.TextTrack.getWindowColor"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 13, "method": "org.rdk.TextTrack.getWindowColor"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 13,
"result": {
"color": ""
}
}Getter for WindowOpacity
Event details will be updated soon.
This method takes no parameters.
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.opacity | integer |
{
"jsonrpc": 2.0,
"id": 14,
"method": "org.rdk.TextTrack.getWindowOpacity"
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 14, "method": "org.rdk.TextTrack.getWindowOpacity"}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 14,
"result": {
"opacity": 0
}
}Mute will hide rendering of Captions
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 15,
"method": "org.rdk.TextTrack.muteSession",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 15, "method": "org.rdk.TextTrack.muteSession", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 15,
"result": null
}If a session is already running on the supplied displayHandle, the sessionId for this session is returned. If the session is instead newly opened, the session type is not set and display is muted. Use one of the "selection" functions to select a session type, and UnMuteSession() to get subtitles displayed.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.displayHandle | string | is an encoding of the wayland display name |
| Name | Type | Description |
|---|---|---|
| result | object | |
| result.sessionId | integer | On success the returned session id |
{
"jsonrpc": 2.0,
"id": 16,
"method": "org.rdk.TextTrack.openSession",
"params": {
"displayHandle": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 16, "method": "org.rdk.TextTrack.openSession", "params": {"displayHandle": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 16,
"result": {
"sessionId": 1
}
}Any text rendered remains on screen and any text due to be rendered soon is held until the render session is resumed.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 17,
"method": "org.rdk.TextTrack.pauseSession",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 17, "method": "org.rdk.TextTrack.pauseSession", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 17,
"result": null
}The state will be like after calling OpenSession()
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 18,
"method": "org.rdk.TextTrack.resetSession",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 18, "method": "org.rdk.TextTrack.resetSession", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 18,
"result": null
}Resumed a paused session
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 19,
"method": "org.rdk.TextTrack.resumeSession",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 19, "method": "org.rdk.TextTrack.resumeSession", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 19,
"result": null
}Sends data of Closed Captions, Captions or Timed Text data to a render session.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| params.type | string | Is the type of data |
| params.displayOffsetMs | integer | Is currently unused |
| params.data | string | Is the data to display, properly formatted as per the expectations of the type used |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 20,
"method": "org.rdk.TextTrack.sendSessionData",
"params": {
"sessionId": 1,
"type": "PES",
"displayOffsetMs": 0,
"data": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 20, "method": "org.rdk.TextTrack.sendSessionData", "params": {"sessionId": 1, "type": "PES", "displayOffsetMs": 0, "data": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 20,
"result": null
}The STC is used in some forms of text rendering to compare against the text data PTS to determine its presentation time.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| params.mediaTimestampMs | integer | Is a timestamp |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 21,
"method": "org.rdk.TextTrack.sendSessionTimestamp",
"params": {
"sessionId": 1,
"mediaTimestampMs": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 21, "method": "org.rdk.TextTrack.sendSessionTimestamp", "params": {"sessionId": 1, "mediaTimestampMs": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 21,
"result": null
}Setter for BackgroundColor
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 22,
"method": "org.rdk.TextTrack.setBackgroundColor",
"params": {
"color": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 22, "method": "org.rdk.TextTrack.setBackgroundColor", "params": {"color": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 22,
"result": null
}Setter for BackgroundOpacity
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.opacity | integer |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 23,
"method": "org.rdk.TextTrack.setBackgroundOpacity",
"params": {
"opacity": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 23, "method": "org.rdk.TextTrack.setBackgroundOpacity", "params": {"opacity": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 23,
"result": null
}For all values it is possible to keep or override the stream default. The style setting will take effect immediately in all running (Closed Captions) sessions, which has not applied a custom style.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.style | ClosedCaptionsStyle | Contains the chosen styles |
| params.style.fontFamily | string | |
| params.style.fontSize | string | |
| params.style.fontColor | string | |
| params.style.fontOpacity | integer | |
| params.style.fontEdge | string | |
| params.style.fontEdgeColor | string | |
| params.style.backgroundColor | string | |
| params.style.backgroundOpacity | integer | |
| params.style.windowColor | string | |
| params.style.windowOpacity | integer |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 24,
"method": "org.rdk.TextTrack.setClosedCaptionsStyle",
"params": {
"fontFamily": "CONTENT_DEFAULT",
"fontSize": "CONTENT_DEFAULT",
"fontColor": "",
"fontOpacity": 0,
"fontEdge": "CONTENT_DEFAULT",
"fontEdgeColor": "",
"backgroundColor": "",
"backgroundOpacity": 0,
"windowColor": "",
"windowOpacity": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 24, "method": "org.rdk.TextTrack.setClosedCaptionsStyle", "params": {"fontFamily": "CONTENT_DEFAULT", "fontSize": "CONTENT_DEFAULT", "fontColor": "", "fontOpacity": 0, "fontEdge": "CONTENT_DEFAULT", "fontEdgeColor": "", "backgroundColor": "", "backgroundOpacity": 0, "windowColor": "", "windowOpacity": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 24,
"result": null
}Setter for FontColor
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 25,
"method": "org.rdk.TextTrack.setFontColor",
"params": {
"color": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 25, "method": "org.rdk.TextTrack.setFontColor", "params": {"color": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 25,
"result": null
}Setter for FontEdge
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.edge | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 26,
"method": "org.rdk.TextTrack.setFontEdge",
"params": {
"edge": "CONTENT_DEFAULT"
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 26, "method": "org.rdk.TextTrack.setFontEdge", "params": {"edge": "CONTENT_DEFAULT"}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 26,
"result": null
}Setter for FontEdgeColor
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 27,
"method": "org.rdk.TextTrack.setFontEdgeColor",
"params": {
"color": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 27, "method": "org.rdk.TextTrack.setFontEdgeColor", "params": {"color": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 27,
"result": null
}Setter for FontFamily
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.font | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 28,
"method": "org.rdk.TextTrack.setFontFamily",
"params": {
"font": "CONTENT_DEFAULT"
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 28, "method": "org.rdk.TextTrack.setFontFamily", "params": {"font": "CONTENT_DEFAULT"}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 28,
"result": null
}Setter for FontOpacity
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.opacity | integer |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 29,
"method": "org.rdk.TextTrack.setFontOpacity",
"params": {
"opacity": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 29, "method": "org.rdk.TextTrack.setFontOpacity", "params": {"opacity": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 29,
"result": null
}Setter for FontSize
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.size | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 30,
"method": "org.rdk.TextTrack.setFontSize",
"params": {
"size": "CONTENT_DEFAULT"
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 30, "method": "org.rdk.TextTrack.setFontSize", "params": {"size": "CONTENT_DEFAULT"}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 30,
"result": null
}The session must be opened as usual and a type chosen. The text will only be shown if the type of session supports preview.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| params.text | string | Is the text to display |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 31,
"method": "org.rdk.TextTrack.setPreviewText",
"params": {
"sessionId": 1,
"text": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 31, "method": "org.rdk.TextTrack.setPreviewText", "params": {"sessionId": 1, "text": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 31,
"result": null
}Selecting the specified CC service to decode and display in the specified render session. This should be done before starting the injection of data. Valid input for service is "CC[1-4]", "TEXT[1-4]", "SERVICE[1-64]"
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| params.service | string | Identifies the service to display |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 32,
"method": "org.rdk.TextTrack.setSessionClosedCaptionsService",
"params": {
"sessionId": 1,
"service": "CC3"
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 32, "method": "org.rdk.TextTrack.setSessionClosedCaptionsService", "params": {"sessionId": 1, "service": "CC3"}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 32,
"result": null
}Set the render session into Dvb Subtitle mode, specifying the the page for presentation. (See ETSI EN 300 743)
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| params.compositionPageId | integer | Is the one Id |
| params.ancillaryPageId | integer | Is the other Id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 33,
"method": "org.rdk.TextTrack.setSessionDvbSubtitleSelection",
"params": {
"sessionId": 1,
"compositionPageId": 0,
"ancillaryPageId": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 33, "method": "org.rdk.TextTrack.setSessionDvbSubtitleSelection", "params": {"sessionId": 1, "compositionPageId": 0, "ancillaryPageId": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 33,
"result": null
}Set the render session into SCTE mode
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 34,
"method": "org.rdk.TextTrack.setSessionSCTESelection",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 34, "method": "org.rdk.TextTrack.setSessionSCTESelection", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 34,
"result": null
}Set the render session into TTML mode
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 35,
"method": "org.rdk.TextTrack.setSessionTTMLSelection",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 35, "method": "org.rdk.TextTrack.setSessionTTMLSelection", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 35,
"result": null
}Set the render session into Teletext mode, providing the teletext caption page for presentation
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| params.page | integer | The user selected teletext caption page 100-899 |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 36,
"method": "org.rdk.TextTrack.setSessionTeletextSelection",
"params": {
"sessionId": 1,
"page": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 36, "method": "org.rdk.TextTrack.setSessionTeletextSelection", "params": {"sessionId": 1, "page": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 36,
"result": null
}Set the render session into WebVTT mode
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 37,
"method": "org.rdk.TextTrack.setSessionWebVTTSelection",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 37, "method": "org.rdk.TextTrack.setSessionWebVTTSelection", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 37,
"result": null
}The styles given here (as "attr:value;attr:value") will be applied last to TTML sessions, meaning that they will override styles given in the content. The value will be persisted in the system. The style setting will take effect immediately in all running (TTML) sessions, which has not applied a custom style.
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.style | string | Contains the chosen override for styles |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 38,
"method": "org.rdk.TextTrack.setTtmlStyleOverrides",
"params": {
"style": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 38, "method": "org.rdk.TextTrack.setTtmlStyleOverrides", "params": {"style": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 38,
"result": null
}Setter for WindowColor
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 39,
"method": "org.rdk.TextTrack.setWindowColor",
"params": {
"color": ""
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 39, "method": "org.rdk.TextTrack.setWindowColor", "params": {"color": ""}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 39,
"result": null
}Setter for WindowOpacity
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.opacity | integer |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 40,
"method": "org.rdk.TextTrack.setWindowOpacity",
"params": {
"opacity": 0
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 40, "method": "org.rdk.TextTrack.setWindowOpacity", "params": {"opacity": 0}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 40,
"result": null
}A newly created session is muted and should be unmuted to me visible
Event details will be updated soon.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.sessionId | integer | On success the returned session id |
| Name | Type | Description |
|---|---|---|
| result | null | On success null will be returned. |
{
"jsonrpc": 2.0,
"id": 41,
"method": "org.rdk.TextTrack.unMuteSession",
"params": {
"sessionId": 1
}
}curl -H 'content-type:text/plain;' --data-binary '{"jsonrpc": 2.0, "id": 41, "method": "org.rdk.TextTrack.unMuteSession", "params": {"sessionId": 1}}' http://127.0.0.1:9998/jsonrpc
{
"jsonrpc": 2.0,
"id": 41,
"result": null
}Notifications are autonomous events, triggered by the internals of the implementation, and broadcasted via JSON-RPC to all registered observers. Refer to [Thunder] for information on how to register for a notification.
The following events are provided by the TextTrack plugin:
TextTrack interface events:
| Event | Description |
|---|---|
| onBackgroundColorChanged | Notify backgroundColor Changed |
| onBackgroundOpacityChanged | Notify backgroundOpacity Changed |
| onClosedCaptionsStyleChanged | The ClosedCaptionsStyle settings has changed. Call GetClosedCaptionsStyle() to get the new settings. |
| onFontColorChanged | Notify fontColor Changed |
| onFontEdgeChanged | Notify fontEdge Changed |
| onFontEdgeColorChanged | Notify fontEdgeColor Changed |
| onFontFamilyChanged | Notify fontFamily Changed |
| onFontOpacityChanged | Notify fontOpacity Changed |
| onFontSizeChanged | Notify fontSize Changed |
| onTtmlStyleOverridesChanged | The TTML Style override settings has changed. |
| onWindowColorChanged | Notify windowColor Changed |
| onWindowOpacityChanged | Notify windowOpacity Changed |
Notify backgroundColor Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
{
"jsonrpc": 2.0,
"id": 42,
"method": "org.rdk.TextTrack.onBackgroundColorChanged",
"params": {
"color": ""
}
}Notify backgroundOpacity Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.opacity | integer |
{
"jsonrpc": 2.0,
"id": 43,
"method": "org.rdk.TextTrack.onBackgroundOpacityChanged",
"params": {
"opacity": 0
}
}The ClosedCaptionsStyle settings has changed. Call GetClosedCaptionsStyle() to get the new settings.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.style | ClosedCaptionsStyle | Contains the chosen styles |
| params.style.fontFamily | string | |
| params.style.fontSize | string | |
| params.style.fontColor | string | |
| params.style.fontOpacity | integer | |
| params.style.fontEdge | string | |
| params.style.fontEdgeColor | string | |
| params.style.backgroundColor | string | |
| params.style.backgroundOpacity | integer | |
| params.style.windowColor | string | |
| params.style.windowOpacity | integer |
{
"jsonrpc": 2.0,
"id": 44,
"method": "org.rdk.TextTrack.onClosedCaptionsStyleChanged",
"params": {
"fontFamily": "CONTENT_DEFAULT",
"fontSize": "CONTENT_DEFAULT",
"fontColor": "",
"fontOpacity": 0,
"fontEdge": "CONTENT_DEFAULT",
"fontEdgeColor": "",
"backgroundColor": "",
"backgroundOpacity": 0,
"windowColor": "",
"windowOpacity": 0
}
}Notify fontColor Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
{
"jsonrpc": 2.0,
"id": 45,
"method": "org.rdk.TextTrack.onFontColorChanged",
"params": {
"color": ""
}
}Notify fontEdge Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.edge | string |
{
"jsonrpc": 2.0,
"id": 46,
"method": "org.rdk.TextTrack.onFontEdgeChanged",
"params": {
"edge": "CONTENT_DEFAULT"
}
}Notify fontEdgeColor Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
{
"jsonrpc": 2.0,
"id": 47,
"method": "org.rdk.TextTrack.onFontEdgeColorChanged",
"params": {
"color": ""
}
}Notify fontFamily Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.font | string |
{
"jsonrpc": 2.0,
"id": 48,
"method": "org.rdk.TextTrack.onFontFamilyChanged",
"params": {
"font": "CONTENT_DEFAULT"
}
}Notify fontOpacity Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.opacity | integer |
{
"jsonrpc": 2.0,
"id": 49,
"method": "org.rdk.TextTrack.onFontOpacityChanged",
"params": {
"opacity": 0
}
}Notify fontSize Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.size | string |
{
"jsonrpc": 2.0,
"id": 50,
"method": "org.rdk.TextTrack.onFontSizeChanged",
"params": {
"size": "CONTENT_DEFAULT"
}
}The TTML Style override settings has changed.
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.style | string | Contains the chosen override for styles |
{
"jsonrpc": 2.0,
"id": 51,
"method": "org.rdk.TextTrack.onTtmlStyleOverridesChanged",
"params": {
"style": ""
}
}Notify windowColor Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.color | string |
{
"jsonrpc": 2.0,
"id": 52,
"method": "org.rdk.TextTrack.onWindowColorChanged",
"params": {
"color": ""
}
}Notify windowOpacity Changed
| Name | Type | Description |
|---|---|---|
| params | object | |
| params.opacity | integer |
{
"jsonrpc": 2.0,
"id": 53,
"method": "org.rdk.TextTrack.onWindowOpacityChanged",
"params": {
"opacity": 0
}
}