I would like to know if I could change the ‘created’ property of a video object, so as to be able to use the stream API and call the objects according to the date of creation, as set by me. This is to pipe the process with a date-time widget and call specific videos. The problem is, my video library has been uploaded by me, all at once and possesses the same ‘created’ property which is not usable for me.
I saw a similar topic, that has been closed earlier on the forum, that talks about changing the name and requiredSignedURL property, but it did not serve me.
being able to add a custom meta-data is cool. However, the API wouldn’t act on it, though. It’s restricted to work on just the ‘created’ property, to fetch multiple videos at once. The need to have a local database and custom functions, still remains.
This will get the first 1000 videos. By reading the total property, you’ll know if you have more than 1000. videos. If you have >1000, you can take the created timestamp from the last video and make the next call:
@ashutosh I see what you mean. You’d like to see a way to filter by the custom metadata you would set in the Stream API? How does your datetime widget work? For example, if we provided a simple string equality check for metadata fields as a filter in the API would this solve your requirement in the datetime widget?
as @bink suggested, the local database approach seems to be the right one if you require more advanced filtering or ordering.