Class (NativeMediaPlayerSurfaceInfo)
Implements 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.
NOTE
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.
The initial APIs of this class are supported since API version 12.
The sample effect is subject to the actual device.
Attributes
System capability: SystemCapability.Web.Webview.Core
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| id12+ | string | No | No | Surface ID, which is the psurfaceid of the native image used for rendering at the same layer. For details, see NativeEmbedDataInfo. |
| rect12+ | RectEvent | No | No | Position of the surface. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-webview-WebviewController
openharmony 鸿蒙 arkts-apis-webview-t
openharmony 鸿蒙 arkts-apis-webview
openharmony 鸿蒙 capi-arkweb-type-h
openharmony 鸿蒙 arkts-basic-components-web-FullScreenExitHandler
openharmony 鸿蒙 arkts-apis-webview-WebDownloadManager
openharmony 鸿蒙 arkts-basic-components-web-VerifyPinHandler
openharmony 鸿蒙 capi-web-arkweb-webmessage8h