Actions
An item’s action says what happens when the user presses OK (or taps). The format is type:value.
All actions
| Action | What it does |
|---|---|
video:URL | Plays the video in the player. The item’s title, footer and image appear in the player |
audio:URL | Plays the audio in the player, with the item’s image as the cover |
image:context | Enlarges the item’s own image. ◀ ▶ go through the other images on the page |
image:URL | Enlarges the given image |
content:URL | Opens a page (Back returns) |
panel:URL | Same as content: |
menu:URL | Opens another menu |
start:URL | Reads another start.json and opens its parameter |
back | Goes back one screen |
home (or restart) | Goes back to the start of the content |
reload | Reloads the current page |
settings | Opens CF media Settings |
info:text · success:text | Shows a quick notice |
warn:text · error:text | Shows a warning or error notice |
[action1|action2] | Runs several actions in sequence |
Examples
items
[
{ "title": "Trailer", "action": "video:http://{SERVER}/media/trailer.mp4" },
{ "title": "Live", "action": "video:http://{SERVER}/live/stream.m3u8" },
{ "title": "Radio", "image": "http://{SERVER}/img/radio.jpg", "action": "audio:http://{SERVER}/radio.mp3" },
{ "title": "Gallery", "action": "content:http://{SERVER}/cfmedia/gallery.json" },
{ "title": "Notice", "action": "[info:Loading the gallery|content:http://{SERVER}/cfmedia/gallery.json]" }
]tips_and_updates