diff --git a/en/application-dev/media/using-avsession-developer.md b/en/application-dev/media/using-avsession-developer.md index 07bd4bf1297f3afc5352d30e9acd674fe056f815..077f0b956a5fb6abaf26c647132bdbb81e78fc63 100644 --- a/en/application-dev/media/using-avsession-developer.md +++ b/en/application-dev/media/using-avsession-developer.md @@ -88,7 +88,7 @@ To enable an audio and video application to access the AVSession service as a pr ```ts // It is assumed that an AVSession object has been created. For details about how to create an AVSession object, see the node snippet above. let session: AVSessionManager.AVSession = ALLREADY_CREATE_A_SESSION; - let wantAgentInfo: { + let wantAgentInfo = { wants: [ { bundleName: "com.example.musicdemo", diff --git a/zh-cn/application-dev/media/using-avsession-developer.md b/zh-cn/application-dev/media/using-avsession-developer.md index 865417c9a28f6526934a4c7d4702db452f78fd51..bc2f22de68aacb7a922461f41753d423eded6338 100644 --- a/zh-cn/application-dev/media/using-avsession-developer.md +++ b/zh-cn/application-dev/media/using-avsession-developer.md @@ -143,7 +143,7 @@ ```ts // 假设已经创建了一个session,如何创建session可以参考之前的案例 let session: AVSessionManager.AVSession = ALREADY_CREATE_A_SESSION; - let wantAgentInfo: { + let wantAgentInfo = { wants: [ { bundleName: 'com.example.musicdemo',