跳转至

Harmony播放器 API参考


由于arkTs语言特性,芒果播放sdk(playercore.har)暴露的类及接口可以在playercore/Index.ets中非常直观地体现,以下参考playercore/Index.ets中export项一一描述播放器类、接口、枚举及它们的用法。

export { FlowReportProcessor } from './src/main/ets/hunantv/flow/FlowReportProcessor'

export { OhosVideoComponent } from './src/main/ets/hunantv/player/bak/OhosVideoComponent'

export { MgtvComponent } from './src/main/ets/hunantv/player/MgtvComponent'

export { MgPlayerSdkStarter } from './src/main/ets/hunantv/global/MgPlayerSdkStarter'

export { MgPlayerSupporter } from './src/main/ets/hunantv/global/MgPlayerSupporter'

export { RenderComponentType,
  BusinessType,
  MgVideoPlayer,
  PlayEvent,
  PlaySpeed,
  VideoScaleType } from './src/main/ets/hunantv/player/IVideoPlayer'

export { MgVideoPlayerController } from './src/main/ets/hunantv/player/MgVideoPlayerController'

export { VideoType, ReportParams } from './src/main/ets/hunantv/report/ReportParams'

export { ReportConstants } from './src/main/ets/hunantv/report/ReportConstants'