Add support for mediaTiles to example game JSON
authorChristian Weiske <cweiske@cweiske.de>
Thu, 7 Nov 2019 16:09:29 +0000 (17:09 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 7 Nov 2019 16:09:29 +0000 (17:09 +0100)
example-game.json
game-metadata.html

index 4c8b152..4d8d61f 100644 (file)
         "screenshots": [
             "http://example.org/game-1.jpg",
             "http://example.org/game-2.jpg"
+        ],
+        "details": [
+            {
+                "type": "video",
+                "url": "https://vimeo.com/141878938"
+            },
+            {
+                "type": "image",
+                "url": "http://example.org/game-1.jpg",
+                "thumb": "http://example.org/game-1.thumbnail.jpg"
+            }
         ]
     },
 
index 3db1020..c7cffd6 100644 (file)
      <td>media.video</td>
      <td></td>
      <td>videoUrl</td>
-     <td>mediaTiles.*.url (when mediaTiles.*.type=video)</td>
+     <td></td>
      <td>Media</td>
      <td>https://vimeo.com/141878938</td>
      <td></td>
      <td>media.screenshots</td>
      <td></td>
      <td>filepickerScreenshots</td>
-     <td>mediaTiles.*.urls.full, mediaTiles.*.urls.thumb, mediaTiles.*.fp_url (when mediaTiles.*.type=image)</td>
+     <td>-</td>
      <td>Media</td>
      <td>[urls]</td>
      <td></td>
     </tr>
     <tr>
      <td>media</td>
+     <td>Details images+videos</td>
+     <td>media.details</td>
+     <td></td>
+     <td></td>
+     <td>mediaTiles</td>
+     <td>?</td>
+     <td>
+      <pre>[
+  {
+    "type: "image",
+    "urls": [
+      "full": "http://...",
+      "thumb": "http://...",
+    ],
+    "fp_url": "http://...."
+  },
+  {
+    "type": "video",
+    "url": "https://vimeo.com/141878938"
+  }
+]</pre>
+     </td>
+     <td>
+      Allows free ordering of images and videos on the details page.<br/>
+      "fp" is probably "FilePicker".<br/>
+      fp_url is not used in OUYA's launcher.
+      The launcher loads the thumbnail at first, immediately after the full image.
+      If no mediaTile is available, the app's mainImageFullUrl
+      is used. When offline, the apk image is used.<br/>
+      <br/>
+      Game data information:
+      If details is not given or an emtpy array,
+      "mediaTile" array should automatically be created by combining
+      "media.large", "media.video" and "media.screenshots" into the
+      mediaTiles format.
+     </td>
+    </tr>
+    <tr>
+     <td>media</td>
      <td>FIXME</td>
      <td>-</td>
      <td></td>