tencent cloud

ITXVodPlayListener
Last updated: 2025-05-30 15:01:18
ITXVodPlayListener
Last updated: 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).
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback