harmony 鸿蒙Video (System API)
Video (System API)
The Video component is used to play a video and control its playback.
NOTE
This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
This topic describes only system APIs provided by the module. For details about its public APIs, see Video.
Attributes
surfaceBackgroundColor15+
surfaceBackgroundColor(color: ColorMetrics)
Sets the background color of the SurfaceNode in the Video component.
System API: This is a system API.
System capability: SystemCapability.ArkUI.ArkUI.Full
Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
color | ColorMetrics | Yes | Background color of the SurfaceNode in the Video component. Only black and transparent colors are supported. Any other color will default to black. Default value: Color.Black |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦