User Tools

Site Tools


en:tvip_json_middleware_api:2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tvip_json_middleware_api:2 [2025/04/30 12:59] – Варвара Синицкаяen:tvip_json_middleware_api:2 [2025/09/12 09:48] (current) – [Feeds] Курбатова Анастасия
Line 256: Line 256:
       {       {
     "id": 1,      "id": 1, 
-    "type": DEFAULT, +    "type": "PROVISIONING_BANNER",
-    "subtype": PROVISIONING_BANNER,+
     "focusable": true,     "focusable": true,
-    "title": "", 
     "card_size": {"width": 1920, "height": 180},     "card_size": {"width": 1920, "height": 180},
-    "mark_position": TOP_LEFT,+                        "expanded": false, 
 +                        "show_item_title": false
   },   },
       {       {
     "id": 2,      "id": 2, 
-    "type": DEFAULT, +    "type": "APPS",
-    "subtype": APPS,+
     "focusable": true,     "focusable": true,
     "title": "Apps",     "title": "Apps",
     "card_size": {"width": 240, "height": 135},     "card_size": {"width": 240, "height": 135},
-    "mark_position": TOP_LEFT,+                        "expanded": false, 
 +                        "show_item_title": true
   },   },
  {  {
     "id": 3,      "id": 3, 
-    "type": DEFAULT, +    "type": "CHANNELS",
-    "subtype": CHANNELS,+
     "focusable": true,     "focusable": true,
     "title": "Channels",     "title": "Channels",
     "card_size": {"width": 416, "height": 234},     "card_size": {"width": 416, "height": 234},
-    "mark_position": TOP_LEFT,+                        "expanded": false, 
 +                        "show_item_title": true
   },   },
  {  {
     "id": 4,      "id": 4, 
-    "type": DEFAULT, +    "type": "CCTV",
-    "subtype": CCTV,+
     "focusable": true,     "focusable": true,
     "title": "CCTV",     "title": "CCTV",
     "card_size": {"width": 416, "height": 234},     "card_size": {"width": 416, "height": 234},
-    "mark_position": TOP_LEFT,+                        "expanded": false, 
 +                        "show_item_title": true
   },   },
- {+                {
     "id": 5,      "id": 5, 
-    "type": DEFAULT, +    "type": "SERVERS",
-  "subtype": Continue,+
     "focusable": true,     "focusable": true,
-    "title": "Continue watching", +    "title": "Server generated feed", 
-    "card_size": {"width": 416, "height": 234}, +    "card_size": {"width": 100, "height": 180}, 
-   "mark_position": BOTTOM_LEFT,+                        "expanded": false, 
 +                        "show_item_title": true
   }   }
         ]         ]
Line 310: Line 309:
 ^Field: ^Type ^Req. ^Description | ^Field: ^Type ^Req. ^Description |
 | **id** | Int  | Yes | Unique id.  | | **id** | Int  | Yes | Unique id.  |
-| **type** | String | Yes | [enum] default or additional feed, "DEFAULT" by default   | +| **type** | String | Yes | [enum] "SERVERS" for every feed generated on server, predefined: "PROVISIONING_BANNER", "APPS", "CHANNELS", "CCTV"   | 
-| **subtype** | String  | Yes  | [enum] Type of the feed, defaults are: "PROVISIONING_BANNER", "APPS", "CHANNELS", "CCTV", "CONTINUE"     | +| **focusable** | Boolean | Yes, default = true | If user can focus on the feed | 
-| **focusable** | Boolean | Yes | If user can focus on the feed - true by default | +| **title** | String | No | The title of the feed |
-| **title** | String | Yes | The title of the feed |+
 | **card_size** | Size | Yes | The width and height of item image card - under the table watch more info | | **card_size** | Size | Yes | The width and height of item image card - under the table watch more info |
-| **mark_position** | String | Yes | [enum] Position of the mark on the card, available values: "TOP_LEFT", "TOP_RIGHT", "BOTTOM_LEFT", "BOTTOM_RIGHT",  "TOP_LEFT" by default |+| **expanded** | Boolean | Yes, default = false | Whether feed needs more space to show it's background | 
 +| **show_item_title** | Boolean | Yes, default = true | If true then item title is always shown under the item card, if false then title is shown in the center of item card when the card image is not loaded |
  
 Size structure: Size structure:
Line 324: Line 323:
 card size available (can choose only from these ones): card size available (can choose only from these ones):
  
-  * landscape_poster: 416 x 234 - default for "CHANNELS", "CCTV", "CONTINUE" +  * landscape_poster: 416 x 234 - default for "CHANNELS", "CCTV"
   * portrait_poster: 240 x 360   * portrait_poster: 240 x 360
   * big_portrait_poster: 460 x 700   * big_portrait_poster: 460 x 700
Line 331: Line 330:
   * wide_banner: 1800 x 340    * wide_banner: 1800 x 340 
  
-for "PROVISIONING_BANNER" client overrides the size taking it from provisioning
for "APPS" let choose between app_logo and landscape_poster
+for "PROVISIONING_BANNER" client (flutter app) overrides the size taking it from provisioning
 
 + 
 +for "APPS" let choose between app_logo and landscape_poster
  
 =====  Feed items ===== =====  Feed items =====
en/tvip_json_middleware_api/2.1746017949.txt.gz · Last modified: by Варвара Синицкая

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki