目录

Introduction to Playback Control

With playback control, audios and videos can be easily and efficiently projected to other HarmonyOS devices. For example, audios and videos on a mobile phone can be projected to a 2-in-1 device.

HarmonyOS provides unified in-application audio and video casting. By using the AVCastPicker (a casting component) and APIs, the application only needs to set the resource information, listen for state changes, and proactively control the playback behavior (such as play and pause). Other actions, including icon switching, device discovery, connection, and authentication, are performed by the system.

Basic Concepts

Working Principles