.net ContextParams video
When using the ContextParams to add 'Contextual metadata' for a newly uploaded video, nothing gets added. Below is the code I use for setting 'Contextual metadata' for both image and video.
var map = new StringDictionary();
map.Add("caption", recordTitle);
map.Add("Reference Number", recordReferenceNumber);
map.Add("Version", recordVersion);
var contextParams = new ContextParams()
{
PublicIds = new List<string>() { cloudinaryResponse.PublicID },
ContextDict = map,
Command = ContextCommand.Add,
ResourceType = resourceType
};
var contextResult = _cloudinary.Context(contextParams);
The resourceType is set to Image or Video depending on what I am uploading.
When setting the metadata for an image, this is the result and the 'Contextual metadata' is added.
{
"public_ids": ["uhxm9mlg9tysjpx7rf1l"]
}
However, for video nothing is added and here is the result:
{
"public_ids": []
}
I am using the free version while we work through our proof of concept but being able to set metadata is a must-have for us.
Any help would be appreciated.
-
Hi Mark,
I couldn't reproduce this behavior on my end. I've managed to add context to a video file. Also, looking at your logs, I couldn't see any requests for editing context with `resource_type: video`. Can you verify that the resource type is populated correctly before the request is sent?
If it does, it would be great if you could share the generated request including the parameters so I can better understand why it isn't working for you. If you want to keep it confidential, please feel free to open a ticket, share the details and we'll continue from there.0
Post is closed for comments.
Comments
1 comment