mitodl / odl-video-service

building blocks for a basic video service for ODL
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Public TechTV video downloads get truncated on slower connections #732

Closed mbertrand closed 5 years ago

mbertrand commented 5 years ago

uwsgi will cut off a download after X seconds (formerly 60, now 180).

The video is being downloaded via OVS to customize the filename as a slug of the video title. The video could be downloaded directly from Cloudfront instead, but all TechTV videos will have the same name (hd.mp4).

mbertrand commented 5 years ago

The quickest/easiest fix for this is to redirect to the cloudfront URL directly. However the name of the downloaded filename cannot be modified this way - for old TechTV videos it will always be hd.mp4, for newer public videos it will always be video.mp4. So people downloading multiple videos will end up with hd.mp4, hd(1).mp4, hd(2).mp4, etc and will have to rename the files themselves if they want to.

mbertrand commented 5 years ago

If generic filenames are not acceptable, other possible alternatives are: