summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-04-05 14:05:35 -0400
committerJules Laplace <jules@okfoc.us>2016-04-05 14:05:35 -0400
commit56580705e3a62eaf1c498c1c0456fc33fe3b2f76 (patch)
treee0e42a12aae98aacc733e3f7bb210d72d63c9d19 /examples
parentcd929e1c38c02c1d048abe702c04c7d4d6188011 (diff)
broaden media support
Diffstat (limited to 'examples')
-rw-r--r--examples/db.json29
-rw-r--r--examples/index.js5
2 files changed, 33 insertions, 1 deletions
diff --git a/examples/db.json b/examples/db.json
index 1d045c3..3650355 100644
--- a/examples/db.json
+++ b/examples/db.json
@@ -174,7 +174,34 @@
"title": "Green",
"__index": 1,
"dateCreated": "Tue, 05 Apr 2016 15:17:57 GMT",
- "media": []
+ "media": [
+ {
+ "type": "video",
+ "token": "https://ltho.s3.amazonaws.com/ee12b137-1c8a-400a-87e3-89cbee7b4da6.mp4",
+ "uri": "",
+ "width": "400",
+ "height": "400",
+ "title": "ee12b137-1c8a-400a-87e3-89cbee7b4da6.mp4",
+ "thumb": "http://okfocus.s3.amazonaws.com/misc/okcms/video.png"
+ },
+ {
+ "type": "youtube",
+ "token": "y_35kXCQxN4",
+ "uri": "",
+ "width": "640",
+ "height": "360",
+ "title": "dëf lëöpär¨d¨¨¨¨<>~!@~#!:I!@",
+ "thumb": "http://i.ytimg.com/vi/y_35kXCQxN4/hqdefault.jpg"
+ },
+ {
+ "type": "audio",
+ "token": "http://asdf.us/clouds35.mp3",
+ "uri": "",
+ "duration": "225.645792",
+ "title": "clouds35.mp3",
+ "thumb": "http://okfocus.s3.amazonaws.com/misc/okcms/video.png"
+ }
+ ]
}
]
} \ No newline at end of file
diff --git a/examples/index.js b/examples/index.js
index 81d9241..e9de0a3 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -40,6 +40,11 @@ var app = okcms.createApp({
key: process.env.S3_KEY,
secret: process.env.S3_SECRET,
bucket: process.env.S3_BUCKET,
+ allowVideoUploads: true,
+ allowAudioUploads: true,
+ maxsize: 200,
+ maxsizeVideo: 150000000,
+ maxsizeAudio: 150000000,
}
},