• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Class (NativeMediaPlayerSurfaceInfo)
2
3Implements a **NativeMediaPlayerSurfaceInfo** object to provide the surface information used for same-layer rendering [when the application takes over the media playback of the web page](./arkts-basic-components-web-attributes.md#enablenativemediaplayer12).
4
5> **NOTE**
6>
7> - The initial APIs of this module are supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version.
8>
9> - The initial APIs of this class are supported since API version 12.
10>
11> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer.
12
13## Attributes
14
15**System capability**: SystemCapability.Web.Webview.Core
16
17| Name| Type| Mandatory| Description|
18|------|------|------|------|
19| id<sup>12+</sup> | string | Yes| Surface ID, which is the **psurfaceid** of the native image used for rendering at the same layer.<br>For details, see [NativeEmbedDataInfo](./arkts-basic-components-web-i.md#nativeembeddatainfo11).|
20| rect<sup>12+</sup> | [RectEvent](./arkts-apis-webview-i.md#rectevent12) | Yes| Position of the surface.|
21