tencent cloud

最終更新日:2025-05-30 15:01:18
ITXVodPlayListener
最終更新日: 2025-05-30 15:01:18

ITXVodPlayListener API Introduction

Playback event and network event callback monitoring API for on-demand player

Callback API Overview

API
Description
Playback event notification.
Playback process network status event callback.

Callback API Detail

onPlayEvent

Playback event notifications, including start playback, first frame event, Loading event, playback progress, end playback, and other events.
public void onPlayEvent(final TXVodPlayer player, final int event, final Bundle param)
Parameter Description
Parameter Name
Type
Description
player
TXVodPlayer
Current player object.
event
int
Player event.
param
Bundle
Playback event carried parameters, saved in (Key, Value) format, where Key can refer to the event parameters in TXVodConstants.

onNetStatus

Playback process network status event callback.
public void onNetStatus(final TXVodPlayer player, final Bundle status)
Parameter Description
Parameter Name
Type
Description
player
TXVodPlayer
Current player object.
status
Bundle
Playback process network status parameters, format: (Key, Value).
この記事はお役に立ちましたか?
営業担当者に お問い合わせ いただくか チケットを提出 してサポートを求めることができます。
はい
いいえ

フィードバック