• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Module Description
2<!--Kit: AVSession Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @ccfriend; @liao_qian-->
5<!--SE: @ccfriend-->
6<!--TSE: @chenmingxi1_huawei-->
7
8> **NOTE**
9>
10> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
11
12The AVSession module provides APIs for media playback control so that applications can access the system's Media Controller.
13
14This module provides the following typical features related to media sessions:
15
16- [AVSession](arkts-apis-avsession-AVSession.md): used to set session metadata, playback state information, and more.
17- [AVSessionController](arkts-apis-avsession-AVSessionController.md): used to obtain session IDs, send commands and events to sessions, and obtain the session metadata and playback state information.
18- [AVCastController](arkts-apis-avsession-AVCastController.md): used to control playback, listen for remote playback state changes, and obtain the remote playback state in casting scenarios.
19
20## Modules to Import
21
22```ts
23import { avSession } from '@kit.AVSessionKit';
24```
25