Callback functions

更新时间:
复制 MD 格式

This topic describes the callback functions that you can use in Mobile Real-Time Communication (MRTC) APIs when the MRTC component is connected to the iOS platform.

didReceiveLocalFeed

Note

This function returns results only once for each local release.

  • Video call scenarios: This callback function is triggered when the camera is opened or the publish API is called. The SDK sets a restriction at the underlying layer. In the same publishing task, if the feed parameter is already returned when the camera is opened, the feed parameter is no longer returned when the publish API is called.

  • Audio call scenarios: No operations are performed on the camera in audio call scenarios. This callback function is triggered only when the publish API is called.

Sample callback code

typedef NS_ENUM(int,ARTVCFeedType){
  ARTVCFeedTypeRemoteFeed               = 0,
  //Uses the built-in camera and microphone.
  ARTVCFeedTypeLocalFeedDefault         = 1,
  ARTVCFeedTypeLocalFeedCustomVideo     = 2,
  ARTVCFeedTypeLocalFeedScreenCapture   = 3,
};