-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving video files corrupts them #33
Comments
Maybe using the wrong type. - this.fileSaverService.save(<any>response, `${asset.fileName}.${extension}`);
+ this.fileSaverService.save(<any>response, `${asset.fileName}.${extension}`, 'video/mp4'); |
Nah, it's not the wrong type, in the |
Can you trying use the import { saveAs, FileSaverOptions } from 'file-saver';
saveAs(response) |
I updated my download method to this:
And it still does the same thing: And when I open it, it doesn't play |
Sorry, This looks like an issue with filesaver.js. |
Hey,
So I have added ngx-filesaver to my angular application and it downloads images fine, but with videos it doesn't work properly. I does download the video, but when I try to play it, it says the video is corrupted. I can play the video in the browser (before downloading). The code I have looks like this:
and the SimpleResourceBase looks like this:
Is there something I have to do differently, to get the video to download?
The text was updated successfully, but these errors were encountered: