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

Screencast utility functions and examples #1152

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

pyneda
Copy link

@pyneda pyneda commented Nov 27, 2024

Development guide

Link

Test on local before making the PR

go run ./lib/utils/simple-check

Overview

This PR introduces some higher level functions to help start a page screencast and receive the frames through a channel. It then leaves the final implementation of what to do with the frames to the user.

Main changes:

  • New page functions (p *Page) StartScreencast(opts *ScreencastOptions) (chan []byte, error) and (p *Page) StopScreencast() error
  • Added MJPEG screencast support in the ServeMonitor function
  • WriteMJPEGFrame utility function
  • Added an example of how to use the functionality and broadcast the frames using websocket and MJPEG
  • Added an example of how to create a video file using FFmpeg

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.

1 participant