OHOS::Media::FrameStateCallback

Overview

Related Modules:

MultiMedia_FrameStateCallback

Description:

Provides functions to listen for frame states and response to the state changes.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

FrameStateCallback ()=default

 

A constructor used to create a FrameStateCallback instance.

~FrameStateCallback ()=default

 

A destructor used to delete the FrameStateCallback instance.

OnFrameFinished (Camera &camera, FrameConfig &frameConfig, FrameResult &frameResult)

virtual void 

Called when the frame capture is finished.

OnFrameError (Camera &camera, FrameConfig &frameConfig, int32_t errorCode, FrameResult &frameResult)

virtual void 

Called when the frame capture fails.