aboutsummaryrefslogtreecommitdiff
path: root/TestMediaApp/assets/media_items/mixed.json
diff options
context:
space:
mode:
authorArnaud Berry <arnaudberry@google.com>2019-05-16 16:52:30 -0700
committerArnaud Berry <arnaudberry@google.com>2019-05-21 18:56:32 -0700
commitb6d873275f754b1dbd72f02ff2295219adf5373a (patch)
tree1bb51843a2f9c6f01e9568d658d404f392368a21 /TestMediaApp/assets/media_items/mixed.json
parentd003b9e3fc81bb6fbf2ab320c0c9351cc2347075 (diff)
downloadtests-b6d873275f754b1dbd72f02ff2295219adf5373a.tar.gz
Create Test Media App
This application is intended to help test the Car/Media app by making it easy to send it media items and playback states. Those media items are bundled within the assets of the TestMediaApp, as very readable json files. Quick overview: - loader package interprets the json files - prefs package implements the app's preferences (account type, root node, reply delay) - TmaBrowser implements the MediaBrowserService. It send replies based on the content of the prefs and the json files - TmaLibrary caches the interpreted files - TmaPlayer simulates all media interactions (without playing any sound) - TmaMediaItem represents the media items of the test app - TmaMediaEvent represents playback events to send to the media session Test: manual Change-Id: I5f4e6c537d8d0e49d4f5a1dc958e73722b78534e
Diffstat (limited to 'TestMediaApp/assets/media_items/mixed.json')
-rw-r--r--TestMediaApp/assets/media_items/mixed.json54
1 files changed, 54 insertions, 0 deletions
diff --git a/TestMediaApp/assets/media_items/mixed.json b/TestMediaApp/assets/media_items/mixed.json
new file mode 100644
index 0000000..872fa4f
--- /dev/null
+++ b/TestMediaApp/assets/media_items/mixed.json
@@ -0,0 +1,54 @@
+{
+ "FLAGS": "browsable",
+ "PLAYABLE_HINT": "GRID",
+ "BROWSABLE_HINT": "LIST",
+
+ "METADATA": {
+ "MEDIA_ID": "mixed",
+ "DISPLAY_TITLE": "Only nodes"
+ },
+
+ "CHILDREN": [
+ {
+ "FLAGS": "playable",
+ "METADATA": {
+ "MEDIA_ID": "mixed normal 15s song",
+ "DISPLAY_TITLE": "A normal 15s song",
+ "DURATION": 15000
+ }
+ },
+ {
+ "FLAGS": "playable",
+ "METADATA": {
+ "MEDIA_ID": "mixed normal 20s song",
+ "DISPLAY_TITLE": "A normal 20s song",
+ "DURATION": 20000
+ }
+ },
+ {
+ "FLAGS": "browsable",
+ "METADATA": {
+ "MEDIA_ID": "mixed simple_leaves",
+ "DISPLAY_TITLE": "Basic songs"
+ },
+ "INCLUDE":"media_items/simple_leaves.json"
+ },
+ {
+ "FLAGS": "browsable",
+ "PLAYABLE_HINT": "LIST",
+ "BROWSABLE_HINT": "GRID",
+ "METADATA": {
+ "MEDIA_ID": "mixed rabbit hole",
+ "DISPLAY_TITLE": "Rabbit hole"
+ },
+ "INCLUDE":"media_items/only_nodes.json"
+ },
+ {
+ "FLAGS": "browsable",
+ "METADATA": {
+ "MEDIA_ID": "mixed empty mix",
+ "DISPLAY_TITLE": "Empty mix"
+ }
+ }
+ ]
+} \ No newline at end of file