Lines Matching refs:AVSession

1 # AVSession Provider
3 An audio and video application needs to access the AVSession service as a provider in order to disp…
15 For details, see [AVSession Management](../../reference/apis-avsession-kit/js-apis-avsession.md).
19 …sionType, callback: AsyncCallback&lt;AVSession&gt;): void<sup>10+<sup> | Creates an AVSession.<br>…
20 …a: AVMetadata, callback: AsyncCallback&lt;void&gt;): void<sup>10+<sup> | Sets AVSession metadata.|
21 …ate, callback: AsyncCallback&lt;void&gt;): void<sup>10+<sup> | Sets the AVSession playback state.|
23 …allback&lt;AVSessionController&gt;): void<sup>10+<sup> | Obtains the controller of the AVSession.|
25 | activate(callback: AsyncCallback&lt;void&gt;): void<sup>10+<sup> | Activates the AVSession.|
27 | destroy(callback: AsyncCallback&lt;void&gt;): void<sup>10+<sup> | Destroys the AVSession.|
36 To enable an audio and video application to access the AVSession service as a provider, proceed as …
38 1. Call an API in the **AVSessionManager** class to create and activate an **AVSession** object.
43 // Start to create and activate an AVSession object.
44 // Create an AVSession object.
54 2. Set AVSession information, which includes:
66 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
144 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
168 …a set through **dispatchSessionEvent** is not saved in the **AVSession** object or AVSession servi…
177 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
194 … using **setExtras** is stored in the AVSession service. The data lifecycle is the same as that of…
202 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
230 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
306 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
330 7. Obtain an **AVSessionController** object for this **AVSession** object for interaction.
337 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
341 // Obtain an AVSessionController object for this AVSession object.
344 …// The AVSessionController object can interact with the AVSession object, for example, by deliveri…
358 …s and does not need to continue playback, cancel the listener and destroy the **AVSession** object.
367 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
371 // Cancel the listener of the AVSession object.
384 The code snippet below is used for destroying the AVSession object:
391 …// It is assumed that an AVSession object has been created. For details about how to create an AVS…
394 // Destroy the AVSession object.