OHOS::Media::PlayerCallback
Overview
Related Modules:
Description:
Provides listeners for events and exception notifications that occur during media playback.
Since:
1.0
Version:
1.0
Summary
Public Types
| Public Type Name | Description |
|---|---|
| PlayerInfoType : int32_t { PLAYER_INFO_RENDER_START = 0 } |
Public Member Functions
| Public Member Function Name | Description |
|---|---|
| OnPlaybackComplete ()=0 | virtual void Called when the playback is complete. |
| OnError (int32_t errorType, int32_t errorCode)=0 | virtual void Called when a playback error occurs. |
| OnInfo (int type, int extra)=0 | virtual void Called when playback information is received. |
| OnVideoSizeChanged (int width, int height)=0 | virtual void Called when the video image size changes. |
| OnRewindToComplete ()=0 | virtual void Called when the rewind is complete. |
