How do I filter data ranges using VideoQuery? The SDK would be much helpful if only they have examples.
I'm thinking it could be done via VideoQuery.Criteria but I'm not sure what exactly to put in there if I want to filter Video.CompletionDate or Created.
I want to get all videos with date From September 1 2011 to September 10 2011.
Currently I'm just getting all the VideoCollection and re-iterating each video from that collection and checking the date which is not efficient at all. Looking for a better way to do this.
Something like this:
// vq is the VideoQuery
vq.Created = new DateTimeCriterion();vq.Created.Operator = ComparisonOperator.GreaterThan | ComparisonOperator.Equals;vq.Created.Value = minDate;vq.Created.Operator2 = ComparisonOperator.LessThan | ComparisonOperator.Equals;vq.Created.Value = maxDate;
PERFECT! Exactly what I need.