Skip to content
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

Bug unsupported file format 'public.heic' #538

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

creativecbr
Copy link
Contributor

While implementing remote sharing using LiveKit, we encountered an error on the iPad 5th generation running iPadOS 16.7.10 when converting a buffer to a JPEG representation. The suggested solution is to avoid using the native .jpgedRepresentation method, as it appears to contain a bug, and instead handle the conversion manually. After applying this approach, the error seems to be resolved.

The error logged in the Console app was:

Error    11:20:25.613787+0100    RemoteSharing    findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

This issue did not occur on newer devices with higher iOS versions and it worked correctly on newer devices like the iPhone SE (2nd generation) with iOS 15.5. This suggests the problem is specific to platform 16.7.10.

This error caused the screen-sharing session to be interrupted after several occurrences. After changes session was stable.

Please review this change and consider potential improvements.

PS: I have also removed the code responsible for scale factor buffering, as I did not observe any usage of it. If this removal was a mistake, please let me know.

…thod for obtaining image representations on devices running iOS versions below 17.0
Copy link
Member

@hiroshihorie hiroshihorie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hiroshihorie hiroshihorie merged commit aded1f9 into livekit:main Jan 13, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants