Skip to content

Instantly share code, notes, and snippets.

@brettgaylor
Created June 15, 2012 17:09
Show Gist options
  • Save brettgaylor/2937612 to your computer and use it in GitHub Desktop.
Save brettgaylor/2937612 to your computer and use it in GitHub Desktop.
Newscaster JSON
{
"targets": [
{
"id": "Target0",
"name": "Target0",
"element": "video-overlay"
},
{
"id": "Target1",
"name": "Target1",
"element": "upper-corner"
},
{
"id": "Target2",
"name": "Target2",
"element": "Area1"
},
{
"id": "Target3",
"name": "Target3",
"element": "Area2"
}
],
"media": [
{
"id": "Media0",
"name": "Media0",
"url": [
"http://videos-origin.mozilla.org/serv/webmademovies/Moz_Doc_0329_GetInvolved.webm"
],
"target": "video",
"duration": 178.411,
"tracks": [
{
"name": "Track0",
"id": "Track0",
"trackEvents": [
{
"id": "TrackEvent0",
"type": "text",
"popcornOptions": {
"start": "0",
"end": 1,
"text": "Here you can put any text you like!",
"target": "Area1",
"escape": false,
"multiline": false
},
"track": "Track0",
"name": "TrackEvent0"
},
{
"id": "TrackEvent1",
"type": "titlecard",
"popcornOptions": {
"start": 3.988,
"end": 6.866,
"target": "video-overlay",
"title": "Popcorn rules!",
"subheading": "These dudes agree:"
},
"track": "Track0",
"name": "TrackEvent1"
},
{
"id": "TrackEvent4",
"type": "zoink",
"popcornOptions": {
"start": 7.477,
"end": 9.537,
"target": "video-overlay",
"text": "I am a Robot!",
"type": "thought",
"triangle": "top left",
"flip": false,
"classes": "none",
"order": "1",
"top": "200",
"left": "200",
"width": "200"
},
"track": "Track0",
"name": "TrackEvent4"
}
]
},
{
"name": "Track1",
"id": "Track1",
"trackEvents": [
{
"id": "TrackEvent2",
"type": "photo",
"popcornOptions": {
"start": 3.988,
"end": 6.872,
"target": "video-overlay",
"src": "http://www.mozilla.org/img/covehead/firefox/brand-toolkit/identity-logo-firefox.png",
"href": "http://www.mozilla.org/",
"width": "150",
"height": "150",
"top": "25",
"left": "75"
},
"track": "Track1",
"name": "TrackEvent2"
},
{
"id": "TrackEvent5",
"type": "text",
"popcornOptions": {
"start": 1.23,
"end": 2.23,
"target": "Area2",
"text": "Also in here!",
"escape": false,
"multiline": false
},
"track": "Track1",
"name": "TrackEvent5"
}
]
},
{
"name": "Track2",
"id": "Track2",
"trackEvents": []
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment