harmony 鸿蒙Class (MediaSourceInfo)

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

Class (MediaSourceInfo)

表示媒体源的信息。

说明:

  • 本模块接口从API version 12开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。

  • 示例效果请以真机运行为准,当前IDE预览器不支持。

属性

系统能力: SystemCapability.Web.Webview.Core

名称 类型 必填 说明
type12+ SourceType 媒体源的类型。
source12+ string 媒体源地址。
format12+ string 媒体源格式, 可能为空, 需要使用者自己去判断格式。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkWeb(方舟Web)

harmony 鸿蒙ArkWeb_AnyNativeAPI

harmony 鸿蒙ArkWeb_ComponentAPI

harmony 鸿蒙ArkWeb_ControllerAPI

harmony 鸿蒙ArkWeb_CookieManagerAPI

harmony 鸿蒙ArkWeb_JavaScriptBridgeData

harmony 鸿蒙ArkWeb_JavaScriptObject

harmony 鸿蒙ArkWeb_JavaScriptValueAPI

harmony 鸿蒙ArkWeb_ProxyMethod

harmony 鸿蒙ArkWeb_ProxyMethodWithResult

0  赞