h5player icon indicating copy to clipboard operation
h5player copied to clipboard

[BUG] MIME type error in videoCapturer causing the file size of screenshots to become much larger

Open BarkingPuppy opened this issue 11 months ago • 0 comments

  1. 问题描述 After upgrading from version 3.4.2 to latest version (3.7.8), I noticed that the filesize of screenshots taken by pressing Shift+S becomes significantly larger (~3 times larger) than older version. image Running file command to compare two screenshots taken with different version of script shows that there's a mismatch between file extension and file actual type (JPG extension vs. PNG filetype) in the screenshot with latest version of script. image After comparing two versions of scripts, the issue can be found at line 3177 of codes. The MIME type is set to image/jpg but the correct MIME type should be image/jpeg, which causes toBlob() method to fallback to default MIME type image/png. image Hope this can be fixed in the next version. Thanks!

  2. 出现上述问题的地址 https://www.youtube.com/watch?v=tCI396HyhbQ (whichever videos will have the same issue)

  3. 你使用的浏览器与浏览器版本信息 Edge (doesn't matter)

  4. 其他附注信息 More information about MIME type image/jpeg can be found here Is the MIME type 'image/jpg' the same as 'image/jpeg'?

BarkingPuppy avatar Aug 06 '23 11:08 BarkingPuppy