Coming soon - Get a detailed view of why an account is flagged as spam!
view details
3
Sometimes Reddit fails to generate MP4 ("HTML5 GIF") previews, but misleadingly still provides a URL to the "upload"
Post Body

If you submit as a post a super large GIF (submitting via Reddit's upload service), such as one of the ones from r/highqualitygifs, Reddit will try to do its normal thing where it generates various MP4 URL previews of the image, available in the JSON in preview.

But for these large GIFs, these MP4 URLs are all broken.

Take this post for instance [direct link to JSON], where the GIF is around 100MB and a little over 1 minute long. It links to this URL as the "source MP4 URL", which you can see doesn't exist.

For what it's worth, and if it's extra incentive, this causes both the website and the official Reddit iOS app to fail as well and just show a grey box.

This also applies to images uploaded to Imgur rather than Reddit's own service. Example post [Direct JSON]. However what happens here is that the "source MP4" loads, but none of the other previews do.

Totally understandable if you don't want to render previews for large GIFs, but would it be possible to set the URLs to null, or just not provide MP4 previews in those cases? As client-wise you see the URL and expect it to be there, but it's just a broken link and it's bizarre to loop through them until you find one that works.

[Note: I've posted in r/bugs as well but as this is related to the API I thought it would be relevant to include here as well.]

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,715,057
Link Karma
529,042
Comment Karma
607,499
Profile updated: 1 day ago
Posts updated: 3 months ago
iOS Developer (Apollo)

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago