Return list of videos in accordance with search params
example
// Return 50 first videos that contain specified metadata
Videos.getVideos({
metadata: {
itemId: '548f0460-6170-691f-a2be-070000000000'
}
}).then(function(videos) {})
// Return 50 last videos that have tag dogs
Videos.getVideos({
tag: 'dogs',
sortOrder: 'desc'
}).then(function(videos) {})
// Return first 30 videos that were created before specified date
Videos.getVideos({
toDate: '2016-10-11T13:50:27.730490Z',
page: 1,
perPage: 30
}).then(function(videos) {})
// Return next page with 30 videos that were created after specified date
Videos.getVideos({
fromDate: '2016-10-11T13:50:27.730490Z',
page: 2,
perPage: 30
}).then(function(videos) {})
Create new video
Videos.createVideo({ title: 'My new video', tags: ['cats'] }).then(function(video) {})