ZEGO Live
  • iOS
  • Android : Java
  • Introduction
  • Sample app
  • Getting started
  • Guides
    • Room
    • Co-host
    • Face beautify
    • Sound effects
    • Room related Server APIs
  • Error codes

Sample app

Last updated:2022-05-26 10:02

Sample app
Download

Here we provide you with a sample application to experience the following core features of ZEGO Live:

  • Create/Join a live stream
  • Make co-hosts
  • Interact with hosts/co-hosts in real time
  • Face beautification, music accompaniments, and voice effects.

The source codes are available on Github to enable you to build your first ZEGO Live application.

To run the sample codes, remember to contact us to activate the Zego Live service first.

UI reference

The main UIs of the sample app and their corresponding classes in the source code are as follows:

/Pics/ZEGOLive/UIRef1_a.png

/Pics/ZEGOLive/UIRef2_a.png

  1. WelcomeActivity: The homepage of ZEGO Live. You will jump to the login page after tapping the ZEGO Live card.

  2. UserLoginActivity: The user login page. You will jump to the room list page after you fill in the user information and tap the Log In button.

  3. RoomListActivity: The room list page. You will jump to the in-room page after tapping the Create Live button or selecting a live room.

  4. LiveRoomActivity: In-room pages. Different UI will be displayed for different user roles.

    a. The UI when creating a live room. You will see the same UI as the host after you fill in the room name and tap the Go Live button.

    b. The UI that the host sees when he enters a live room.

    c. The UI that a participant sees when he enters a live room.

Page Directory
1 UI reference