Documentation
ScreenCaptureSDK Screen Sharing
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Screen Sharing
  • Sample Codes
Sample Code
GitHub
  • GitHub

1 Overview

Screen Sharing example Demo includes screen sharing, window sharing, and window thumbnail functions. It shows how to use zego-express-engine-electron-plugin-screen-capture for screen capture and combine it with the external video capture function of zego-express-engine-electron, and publishes the captured screen data out. Developers can refer to its writing to realize their own business.

2 Instructions for Running Sample Codes

1.1 Prepare the Environment

Please ensure that the development environment meets the following technical requirements:

  • Operating system Windows 7 or above / macOS 10.10 or above.
  • The computer is connected to the Internet and has external devices that support audio and video such as microphones and cameras.
  • Install Node.js, it is recommended to use the long-term support version shown on the homepage of its official website.

1.2 Apply for AppID and AppSign

Please apply for the AppID and AppSign required to create the engine at ZEGO Management Console. For how to apply, please see Project management.

1.3 Run the Sample Codes

The operation steps are as follows:

  1. Use vscode to open the project.
  2. Fill in the applied AppID and AppSign into the /zegoauth.js file.
  3. Install dependencies and start the project.
npm install
npm run start

2 Notes

When you execute npm install to install the SDK, if the download of the npm official website image is slow, you can switch to the domestic image.

npm set registry https://registry.npm.taobao.org/
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code