<doc>
  <legacy_id>2070</legacy_id>
  <name>revPreviewVideo</name>
  <type>command</type>
  <syntax>
    <example>revPreviewVideo</example>
  </syntax>
  <library>Video library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revStopPreviewingVideo">revStopPreviewingVideo Command</command>
    <command tag="revRecordVideo">revRecordVideo Command</command>
    <command tag="revVideoFrameImage">revVideoFrameImage Command</command>
    <command tag="revVideoGrabIdle">revVideoGrabIdle 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>Displays the video input in the <glossary tag="video grabber">video grabber</glossary> without recording it.</summary>
  <examples>
    <example>revPreviewVideo</example>
    <example>if the hilite of button "Preview Only" then revPreviewVideo</example>
  </examples>
  <description>
    <p>Use the <b>revPreviewVideo</b> <glossary tag="command">command</glossary> to see the image from a video camera on the screen.</p><p/><p><b>Comments:</b></p><p>You must use the <b>revInitializeVideoGrabber</b> <glossary tag="command">command</glossary> to open the <glossary tag="video grabber">video grabber</glossary> before you can use the <b>revPreviewVideo</b> <glossary tag="command">command</glossary>.</p><p/><p>The <b>revPreviewVideo</b> <glossary tag="command">command</glossary> shows the input from the video source in the <glossary tag="video grabber">video grabber window</glossary>, but does not record it. To save the video as a <keyword tag="file">file</keyword> while displaying it, use the <command tag="revRecordVideo">revRecordVideo</command> <glossary tag="command">command</glossary> instead.</p><p/><p>If the video grabber was already recording video to a file, the <b>revPreviewVideo</b> <glossary tag="command">command</glossary> stops the recording.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> If you are using <glossary tag="QuickTime">QuickTime</glossary> for video capture, <glossary tag="execute">execute</glossary> the <command tag="revVideoGrabIdle">revVideoGrabIdle</command> <glossary tag="command">command</glossary> periodically while previewing or recording video. Otherwise, you may experience poor quality in the video capture.</p><p/><p>To stop displaying the video input, use the <b>revStopPreviewingVideo</b> <glossary tag="command">command</glossary>.</p><p/><p><code/><b><img src="202653"/> Important! </b><code/> The <b>revPreviewVideo</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>