selkies-project / selkies-gstreamer

Open-Source Low-Latency Accelerated Linux WebRTC HTML5 Remote Desktop Streaming Platform for Self-Hosting, Containers, Kubernetes, or Cloud/HPC
https://selkies-project.github.io/selkies-gstreamer/
Mozilla Public License 2.0
381 stars 49 forks source link

Improve serialization and deserialization of clipboard content on client side #149

Closed PMohanJ closed 6 months ago

PMohanJ commented 6 months ago

Reference the issue numbers and reviewers Use # and @ to tag issues and reviewers. @ehfd

Explain relevant issues and how this pull request solves them Improves serialization and deserialization of clipboard content on client side. The methods btoa() and atob() are meant to handle ASCII chars, so if character's code point exceeds 0xff it causes exception. So, we can use TextEncoder and TextDecoder interfaces to handle chars with UTF-8 format more appropriately.

Describe the changes in code and its dependencies and justify that they work as intended after testing Changes are primarily on web interface(gst-web) where the messages sent/received though datachannel for the clipboard read and write events are handled furtherly to support UTF-8 encoding format.

Describe alternatives you've considered NA

Additional context NA

ehfd commented 6 months ago

@PMohanJ Please resolve conflict triggered by revert.