Skip to main content

Comments

5 comments

  • Aditi Madan

    Hi Jonas,

    The default image works for the video but it shows it as a video, if that works for you.

    For eg: https://res.cloudinary.com/demo/video/upload/d_sample.jpg/dogsdf.mp4

    Regards,
    Aditi

    0
  • Jonas Jacek

    Hi Aditi,

    thank you for your quick reply. Is there also a way to define a fallback video for a video?

    Thank you for your help.

    0
  • Stephen Doyle

    Hi Jonas,

    At the moment we don't support a fallback/default video if you access the URL of a video that doesn't exist, though it's something we may add in the future.

    Can you provide some more information about your use-case which would help us prioritize adding this?

    In my experience, it's more likely that videos are uploaded programmatically with different versions of them requested eagerly prior to the URL being used on a site or app, and also less likely that a video will be removed after it's first used (when compared to images), so we see fewer cases of customers seeing 404 errors on video transformations

    Regards,

    Stephen

    0
  • Jonas Jacek

    Thanks again for your quick reply.

    Use cases?

    • A classic product launch, where you want to display a teaser (fallback) before the launch, and the actual product after the launch.
    • During development, to inform about missing videos with a default video.
    • ...

    Regards,

    Jonas

    0
  • Stephen Doyle

    Hi Jonas,

    Thanks for the additional information.

    I checked internally and we have a feature request open for this already, and it's marked as scheduled on the planning board. I don't have an ETA to share at this time, but I've linked this thread with the internal task so I can let you know once we have an ETA or it's released as a feature.

    Regarding your use-cases, For the first case, I'd recommend using different URLs for the teaser and main video as a matter of course. 
    Although we can and do invalidate the CDN cache when you 'fix' a missing image (and if you overwrite one video with another), the old result for that URL may still be cached in a company, ISP, or browser cache, so for a time-sensitive event like a launch, it may be better to use a different URL to serve the content

    Regards,

    Stephen

     

    0

Post is closed for comments.