revInitializeVideoGrabber

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revInitializeVideoGrabber <parentStack>, <videoMethod>, <grabberRect>
Associationsvideo library
Summary

Opens the video grabber window.

Introduced2.0
Changes

The use of QuickTime was deprecated in version 8.1 of LiveCode with new defaults for dontUseQT and dontUseQTEffects as true on all systems apart from pre OS X 10.8. The Windows build of LiveCode no longer supports any QuickTime features and setting the dontUseQT and dontUseQTEffects will have no effect.

Support for the "Video Grabber" library on Mac OS X ended in LiveCode 9.0.

Deprecated9.0
OSwindows
Platformsdesktop
Parameters
NameTypeDescription
parentStack

The short name of the stack that the video-grabber should attach itself to.

videoMethod

Must be "VFW".

grabberRect

The rectangle of the video grabber window, and consists of four integers separated by commas: the left, top, right, and bottom edges of the video grabber, in absolute (screen) coordinates.

Example
revInitializeVideoGrabber the short name of this stack, "VFW",the rect of this stack
RelatedKeyword: file
Property: properties, dontUseQT, dontUseQTEffects
Command: revCloseVideoGrabber, revSetVideoGrabberRect, revRecordVideo, revPreviewVideo, revVideoGrabIdle, revStopPreviewingVideo
Glossary: stack window, video capture, Windows, VFW, Standalone Application Settings, video grabber, standalone application, function, command, LiveCode custom library, QuickTime
Library: Video library
Securitydisk, privacy
Description

Use the revInitializeVideoGrabber command to start up video capture capability.

You must use the revInitializeVideoGrabber command before using any of the other commands and functions in the Video library. The command does two things:

  • Loads the code necessary for video capture into memory.
  • Opens the video grabber window.

Note: The video grabber is not a stack window, so you can't set its properties. To change the size and location of the video grabber, use the revSetVideoGrabberRect command.

Once the video grabber is open, you can use the revVideoGrabDialog command to specify where the video camera (or other video source) is connected. Use the revRecordVideo command to record video from the camera to a file, or use the revPreviewVideo command to display video without saving it.

To use Video for Windows (on Windows systems), specify "VFW".

To close the window and unload the video capture code, you should use the revCloseVideoGrabber command when you're done with video capture.

Important: The revInitializeVideoGrabber command is part of the Video library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Video Grabber" library checkbox is checked.

Tagsmultimedia