Skip to content

feat: Use Web Workers per scrcpy rendering stream #45

@RoiArthurB

Description

@RoiArthurB

Feature Request

Checklist

  • Do you want to make a PR for this?
  • Have you discussed this feature with the team?
  • Is there a related issue or feature request?
  • Do you have any mockups or designs for this feature?

Description

In the current implementation of WebCodec, every stream are executed within a unified thread.

However, WebCodecs API rendering can be delegated to Web Workers enabling better performance, less clutered rendering thread and more resilient streaming (not breaking every threads if one is faulty).

Why is this needed?

As described above : Better perf and more stable stream rendering.

Additional Notes

The tango library documented this implementation here : https://docs.tangoapp.dev/scrcpy/video/web-codecs/#use-in-web-worker

Metadata

Metadata

Assignees

No one assigned

    Labels

    🎨 FrontendIssues related to HTML, CSS, JavaScript.👀 scrcpyIssue related to casting android video🤗 EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions