tencent cloud

Video on Demand

ITXVodPlayListener

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 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).

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백