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
Use the FBRecorder::WebCamSourceAvailable property to determine whether a webcam is attached.
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.
If you want to allow the user to adjust image quality settings for the webcam:
Use the TestWebCam method to display webcam output in a window of your choosing, and display controls to allow the user to adjust brightness, contrast etc
Use GetWebCamProperties to get a WebCamProperties object, and change its properties in response to user adjustments to the brightness, contrast controls.
Set the keyframe frequency and quality of video to be captured from the webcam via the WebCamQuality and WebCamKeyFrames properties.
Set UseWebCam to True
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
In FBPlayer, use the HasWebCamVideo property to determine whether the movie file contains webcam video.
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.