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 40643ac3e089c5cf6cbd0e980cbab7b3b744d2fd..0d7f6413c45ca32a51a4589f88dfb3dacec11231 100644 --- a/zh-cn/application-dev/media/using-avsession-developer.md +++ b/zh-cn/application-dev/media/using-avsession-developer.md @@ -88,7 +88,7 @@ ```ts // 假设已经创建了一个session,如何创建session可以参考之前的案例 let session: AVSessionManager.AVSession = ALLREADY_CREATE_A_SESSION; - let wantAgentInfo: { + let wantAgentInfo = { wants: [ { bundleName: "com.example.musicdemo",