BB FlashBack SDK: Base Classes

Recording WebCam Video

The FBRecorder class can record video from an attached webcam while recording the screen. This webcam video footage is saved into the FBR movie file and can be displayed by the FBPlayer class.

How to record webcam video

  1. Use the FBRecorder::WebCamSourceAvailable property to determine whether a webcam is attached.

  2. Use the WebCamFormatsCount and WebCamSourcesCount properties to determine the formats and sources available for the user to choose from. The GetWebCamFormat and GetWebCamSource methods return displayable names and descriptions for the formats and sources.

  3. If you want to allow the user to adjust image quality settings for the webcam:

  4. Set the keyframe frequency and quality of video to be captured from the webcam via the WebCamQuality and WebCamKeyFrames properties.

  5. Set UseWebCam to True

  6. Either start recording normally, to have the webcam video recorded at the same time as the screen, or use RecordWebCamToFile to capture only from the webcam.

 

How to display webcam video

  1. In FBPlayer, use the HasWebCamVideo property to determine whether the movie file contains webcam video.

  2. Use FBMovie::WebCamWindowVisible and FBMovie::WebCamVideoMode to set the appearance of the webcam video in the player. Use FBPlayer::WebCamVideoPositionX and FBPlayer::WebCamVideoPositionY to set its position.