Liking a Video
I don't think Cloudinary has out of the box support for "liking" a video -- such as a user clicking on a like button, and the back end adding that to the "likes" count.
Any thoughts on how this might be achieved?
If we ran a process on our own server that tracked likes per video (using public_id) and making sure user identity is taken into account to allow 1 like per user -- then we could update a "likes" key in the meta data for the video from the server using admin api.
One issue is that this is only really useful if we can sort search results by number of likes. So that goes back to the question if you can sort results using metadata.
Since metadata are <string,string> pairs, as long as the likes is stored with leading zeros, the desired results can be achieved by sorting the likes values as strings.
-
Official comment
Hi Alan.
Thanks for your question. Unfortunately we don't support sorting results from the Search API by either contextual or structured metadata. I'm afraid if you wanted to implement a like counter for videos within your cloud, you would need to implement this on your side with your own database setup.
I hope this helps. Please let us know if we can be of further assistance by either replying here or raising a support request.
Many thanks,
-DannyComment actions -
Hi Alan! I’m Jonathan, one of the Customer Success Managers here at Cloudinary (I responded on your other post as well but have added my comments here just in case you see this one first).
We’re always happy to get feedback and suggestions from our users.
In fact, you can help shape the future direction of our roadmap by submitting your feature request here: https://cloudinary.com/roadmap
On the bottom left page you’ll be able to click the + icon and submit a new idea.
If you have any other questions we’re always happy to help!
Please sign in to leave a comment.
Comments
5 comments