localVideoStateChanged property

LocalVideoStateCallback? localVideoStateChanged
getter/setter pair

Occurs when the local video state changes.

The SDK returns the current video state in this callback. When the state is LocalVideoStreamState.Failed, see the error parameter for details.

Note

  • This callback reports the current state of the local video, which keeps changing throughout the RtcEngine life cycle. We recommend maintaining the states reported in this callback, and check the local video state before starting the local camera. If the SDK reports LocalVideoStreamError.CaptureFailure, the local camera is occupied by either the system or a third-party app. To access the camera, call RtcEngine.enableLocalVideo (false) first, and then RtcEngine.enableLocalVideo (true).

The LocalVideoStateCallback typedef includes the following parameters:

Implementation

LocalVideoStateCallback? localVideoStateChanged;