<doc>
  <legacy_id>2239</legacy_id>
  <name>revCloseVideoGrabber</name>
  <type>command</type>
  <syntax>
    <example>revCloseVideoGrabber</example>
  </syntax>
  <library>Video library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Windows &amp; Dialog Boxes</category>
    <category>Images &amp; Multimedia</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="close">close Command</command>
    <command tag="revInitializeVideoGrabber">revInitializeVideoGrabber Command</command>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
    <web/>
  </classes>
  <security>
    <disk access="???"/>
    <privacy/>
  </security>
  <summary>Closes the <glossary tag="video grabber">video grabber window</glossary> and frees any memory used.</summary>
  <examples>
    <example>revCloseVideoGrabber</example>
    <example>if there is no stack "Video Control" then<p>  revCloseVideoGrabber</p>end if</example>
  </examples>
  <description>
    <p>Use the <b>revCloseVideoGrabber</b> <glossary tag="command">command</glossary> to free up memory when you're done using the <glossary tag="Video library">Video library</glossary>.</p><p/><p><b>Comments:</b></p><p>The Video library loads the operating system's video capture software into memory when you use the <b>revInitializeVideoGrabber</b> <glossary tag="command">command</glossary>. The <b>revCloseVideoGrabber</b> <glossary tag="command">command</glossary> unloads this software, freeing up the memory it uses, when you're done.</p><p/><p>If your application uses video capture, you should execute the <b>revCloseVideoGrabber</b> <glossary tag="command">command</glossary> either when your application is finished using <glossary tag="video capture">video capture</glossary>, when the <object tag="stack">stack</object> that uses <glossary tag="video capture">video capture</glossary> is closed (in a <message tag="closeStack">closeStack</message> <glossary tag="handler">handler</glossary>), or when your application quits (in a <message tag="shutdown">shutdown</message> <glossary tag="handler">handler</glossary>).</p><p/><p>If the video grabber was already recording video to a file, the <b>revCloseVideoGrabber</b> <glossary tag="command">command</glossary> stops the recording.</p><p/><p><img src="202653"/> <b>Important!</b> The <b>revCloseVideoGrabber</b> <glossary tag="command">command</glossary> is part of the <glossary tag="Video library">Video library</glossary>. To ensure that the <glossary tag="command">command</glossary> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section on the General screen of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure that "Video Grabber" is selected from the list of script libraries.</p>
  </description>
</doc>