Asset URLs

Tips and Tricks for Asset URLs in Wistia.

Asset URLs - Tips & Tricks

Modifying File Extensions

Asset URLs in Wistia take this form:

http://embed.wistia.com/deliveries/856970d9a4bcb9aab381a0bd9ab714f19d72c62f.bin

The .bin extension at the URL is for binary. Certain ornery clients (iTunes, ahem) won’t accept URLs that don’t end in an extension that’s familiar to them. In this case, you can drop the .bin, add a slash, and append whatever filename and extension you like -– you’ll still get the underlying asset. So, say the URL above is an mp4 file and we really want that in the URL. Here’s what we’d have:

http://embed.wistia.com/deliveries/856970d9a4bcb9aab381a0bd9ab714f19d72c62f/my-file.mp4

Resizing Images

Using the Data API or oEmbed endpoint, you can obtain the thumbnail URL for your video, and then manipulate it. Check working with images.

Extracting Images

You can also extract thumbnails from a video by modify the URL of that video asset. Pretty sneaky, right? Here’s how to do it: Extracting Thumbnails

SSL

If you have an asset that’s served over HTTP and you’d like to get it served over HTTPS instead, you’ll need to change the subdomain from embed to embed-ssl. We use different subdomains for SSL and non-SSL assets because they’re sometimes served through different CDNs for performance reasons.