VirtualBox

Changeset 45835 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 30, 2013 11:41:26 AM (12 years ago)
Author:
vboxsync
Message:

VBoxManage: added information for video recording to 'showvminfo'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r44948 r45835  
    23002300    }
    23012301
     2302    {
     2303        /* Video capture */
     2304        BOOL bActive = FALSE;
     2305        CHECK_ERROR_RET(machine, COMGETTER(VideoCaptureEnabled)(&bActive), rc);
     2306        ULONG Width;
     2307        CHECK_ERROR_RET(machine, COMGETTER(VideoCaptureWidth)(&Width), rc);
     2308        ULONG Height;
     2309        CHECK_ERROR_RET(machine, COMGETTER(VideoCaptureHeight)(&Height), rc);
     2310        Bstr File;
     2311        CHECK_ERROR_RET(machine, COMGETTER(VideoCaptureFile)(File.asOutParam()), rc);
     2312        if (details == VMINFO_MACHINEREADABLE)
     2313        {
     2314            RTPrintf("VideoCaptureEnabled=\"%s\"\n", bActive ? "on" : "off");
     2315            RTPrintf("VideoCaptureWidth=%u\n", (unsigned)Width);
     2316            RTPrintf("VideoCaptureFile=\"%ls\"\n", File.raw());
     2317            RTPrintf("VideoCaptureHeight=%u\n", (unsigned)Height);
     2318        }
     2319        else
     2320        {
     2321            RTPrintf("Video capturing:    %s\n", bActive ? "active" : "not active");
     2322            RTPrintf("Capture file:       %ls\n", File.raw());
     2323            RTPrintf("Capture dimensions: %ux%u\n", Width, Height);
     2324            RTPrintf("\n");
     2325        }
     2326    }
     2327
    23022328    if (    details == VMINFO_STANDARD
    23032329        ||  details == VMINFO_FULL
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette