revPreviewVideo

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revPreviewVideo
Associationsvideo library
Summary

Displays the video input in the video grabber without recording it.

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.

OSwindows
Platformsdesktop
Example
revPreviewVideo
if the hilite of button "Preview Only" then revPreviewVideo
RelatedKeyword: file
Property: dontUseQT, dontUseQTEffects
Command: revVideoFrameImage, revRecordVideo, revVideoGrabIdle, revStopPreviewingVideo
Glossary: execute, Standalone Application Settings, command, video grabber, standalone application, QuickTime, LiveCode custom library
Library: Video library
Securitydisk, privacy
Description

Use the revPreviewVideo command to see the image from a video camera on the screen.

You must use the revInitializeVideoGrabber command to open the video grabber before you can use the revPreviewVideo command.

The revPreviewVideo command shows the input from the video source in the video grabber window, but does not record it. To save the video as a file while displaying it, use the revRecordVideo command instead.

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

To stop displaying the video input, use the revStopPreviewingVideo command.

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