revCloseVideoGrabber

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revCloseVideoGrabber
Associationsvideo library
Summary

Closes the video grabber window and frees any memory used.

Introduced2.0
Changes

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

Deprecated9.0
OSwindows
Platformsdesktop
Example
revCloseVideoGrabber
if there is no stack "Video Control" then
  revCloseVideoGrabber
end if
RelatedMessage: closeStack, shutdown
Command: revInitializeVideoGrabber, close
Object: stack
Glossary: video capture, handler, Standalone Application Settings, standalone application, video grabber, command, LiveCode custom library
Library: Video library
Securitydisk, privacy
Description

Use the revCloseVideoGrabber command to free up memory when you're done using the Video library.

The Video library loads the operating system's video capture software into memory when you use the revInitializeVideoGrabber command. The revCloseVideoGrabber command unloads this software, freeing up the memory it uses, when you're done.

If your application uses video capture, you should execute the revCloseVideoGrabber command either when your application is finished using video capture, when the stack that uses video capture is closed (in a closeStack handler), or when your application quits (in a shutdown handler).

If the video grabber was already recording video to a file, the revCloseVideoGrabber command stops the recording.

Important: The revCloseVideoGrabber 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