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

[META] Implement chunked transport for WebRTC DataChannel / Image Clipboards #74

Open
ehfd opened this issue Jan 18, 2023 · 1 comment
Labels
enhancement New feature or request help wanted External contribution is required transport Underlying media or data transport protocols web Web components including gst-web

Comments

@ehfd
Copy link
Member

ehfd commented Jan 18, 2023

The issue #43 has been patched by #73, but the core issue is that there is no graceful handling for a DataChannel message which is above the size of 65535 bytes.

Therefore, it would be VERY useful to implement chunked messages for DataChannels, as the benefit can be applicable to any workload which can use DataChannel messages between the client and server using WebRTC.

If implemented, remove the restrictions placed by:

# TODO: WebRTC DataChannel accepts a maximum length of 65489 (= 65535 - 46 for '{"type": "clipboard", "data": {"content": ""}}'), remove this restriction after implementing DataChannel chunking

Moreover, more diverse formats of clipboards (including images) can be supported, but is not practical unless chunked DataChannels are implemented. xclip provides this capability explicitly but has been sidelined in favor to xsel because of a long-standing bug. It should be manually parsed to base64 with the image type and reconstruct it in either side.

@ehfd ehfd added enhancement New feature or request help wanted External contribution is required transport Underlying media or data transport protocols web Web components including gst-web labels Jan 18, 2023
@ehfd ehfd changed the title Implement chunking for WebRTC DataChannel Improve how RTCDataChannel Works / Implement chunking for WebRTC DataChannel Oct 1, 2023
@ehfd ehfd changed the title Improve how RTCDataChannel Works / Implement chunking for WebRTC DataChannel Improve how RTCDataChannel works / Implement chunking for WebRTC DataChannel Oct 1, 2023
@ehfd ehfd changed the title Improve how RTCDataChannel works / Implement chunking for WebRTC DataChannel Improve how RTCDataChannel works / Implement chunked transport for WebRTC DataChannel Oct 12, 2023
@ehfd ehfd changed the title Improve how RTCDataChannel works / Implement chunked transport for WebRTC DataChannel [META] Improve how RTCDataChannel works / Implement chunked transport for WebRTC DataChannel Oct 12, 2023
@ehfd
Copy link
Member Author

ehfd commented Mar 21, 2024

@ehfd ehfd mentioned this issue Mar 24, 2024
1 task
@ehfd ehfd changed the title [META] Improve how RTCDataChannel works / Implement chunked transport for WebRTC DataChannel [META] Implement chunked transport for WebRTC DataChannel / Image Clipboards May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted External contribution is required transport Underlying media or data transport protocols web Web components including gst-web
Projects
None yet
Development

No branches or pull requests

1 participant