This particular package is quite impressive, however, it seems to lack built-in support for looping gifs. Fortunately, the provided link demonstrates how custom URL sections like "e_loop" can be created.
One challenge I'm facing is figuring out how to incorporate these properties into the URL constructor offered by the package.
previewUrl = buildVideoUrl(animation_url, {
cloud: {
cloudName: 'my-cloud'
},
transformations: {
format: 'gif',
loop: 'infinite' // Does not work
}
});
It appears that utilizing the transformer methods could solve this issue (as shown in the example below), but I'm struggling with how to integrate the Transformer instance into my buildVideoUrl call. Perhaps something along the lines of:
const trans = Transformer.toString([
'c_thumb',
'w_500',
'h_500',
'g_auto',
[ 'e_grayscale' ]
])
previewUrl = buildVideoUrl(animation_url, {
cloud: {
cloudName: 'my-cloud'
},
transformations: {
format: 'gif',
trans // adding the Transformer instance
}
});
Any assistance on this matter would be greatly appreciated