laurencedawson / sync-for-lemmy

Issue tracker for the app Sync for Lemmy
114 stars 0 forks source link

Playback speed of GIF is slow when view is maximized #318

Open ruffsl opened 1 year ago

ruffsl commented 1 year ago

Describe the bug
Some GIFs or animations seem to encounter slower than realtime playback speeds when viewed in full screen via the enlarged image viewer. Curiously, this playback slow down does not seem to happen for the same GIF or animation when viewed as an inline image embedded in a post/comment view or as a thumbnail image in the feed view.

Steps to Reproduce

  1. Go to this example comment: https://programming.dev/comment/353023
  2. Tap on Mad Max GIF
  3. Notice how playback slows down to about ~75% of real time.

Expected behavior
The playback speed for the GIF should be the same, regardless if it's being viewed as a thunmail in the feed/post/comments or via fullscreen in the image viewer.

Screenshots

Screenshot_20230814_212314_Sync

https://github.com/laurencedawson/sync-for-lemmy/assets/2293573/28e9b49f-e814-40f3-ac5f-f9c0d13998a8

Smartphone (please complete the following information):

Additional context
Playback speed should only be affected by the playback speed controls under the advance context menu, however these controls do not currently seem to effective for the media shown in the example comment link.

ruffsl commented 1 year ago

Perhaps this has something to do with some lemmy backends re-encoding certain image formats as WebP?

laurencedawson commented 1 year ago

I'm not setting the speed there so this is likely a bug with the gif player.