harmony 鸿蒙Video (System API)

  • 2025-06-12
  • 浏览 (7)

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

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArcButton

harmony 鸿蒙ArcSlider

harmony 鸿蒙Chip

harmony 鸿蒙ChipGroup

harmony 鸿蒙ComposeListItem

harmony 鸿蒙ComposeTitleBar

harmony 鸿蒙advanced.Counter

harmony 鸿蒙Dialog Box (Dialog)

harmony 鸿蒙DialogV2

harmony 鸿蒙DownloadFileButton

0  赞