Development Guide

To Bookmark this document, click

BOOK MARK 0

System Messages

Published 2014-03-05 | Convergence Article. (Compatible with SDK 3.5, 4.5 and 2012, 2013 models)

Description of system messages in Convergence Framework

All system messages are in JSON format.

TV Application System Messages

Quit TV Application

The Quit TV predefined message format is:

{
    "SystemCommand": {
        "Type": "QuitTVApp",
        "AppID": "SampleWidget"
    }
}

This message can be generated in this situations:

TV application should quit execution when receives this message.

Client Application System Messages

Application Exit Notification

The TV application information is usually client driven. When the TV application quits, the system generates a broadcast message to notify all the connected clients that the application running status is changed to “TERMINATED”. For example:

{
    "widgetInfo": {
        "ID": "Canvas_NewOCI",
        "Version": "0.930",
        "Status": "TERMINATED",
        "widgetname": "sampleWidget"

    }
}

On receiving the above message, the client should stops communication with the TV and the long polling process.

Disconnect Client

The Disconnect client predefined message is:

{
    "SystemCommand": {
        "Type": "DisconnectClient",
        "AppID": "SampleWidget"
    }
}

On receiving the above message, the client should stops communication with the TV and the long polling process.

To Bookmark this document, click

BOOK MARK 0