VirtualBox

Changeset 105267 in vbox


Ignore:
Timestamp:
Jul 11, 2024 7:58:35 AM (5 months ago)
Author:
vboxsync
Message:

Recording: Implemented support for a dedicated progress object, which is exposed to API clients. This can be used for better tracking the recording progress as well as for error reporting. The RecordingSettings API also now has a dedicated start() method to start recording, as well as support for attaching to an already ongoing recording by retrieving the progress object at a later time. Adapted FE/Qt (draft, see @todos), FE/VBoxManage and the Validation Kit testdriver to the new APIs. VBoxManage also can attach to an ongoing recording now. The recording progress object also will have multiple operations to get the recording progress for convenience [build fix]. bugref:10718

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/Recording.cpp

    r105266 r105267  
    244244     * If one screen is configured to be recorded indefinitely (until manually stopped),
    245245     * the operation count gets reset to 1. */
    246     ULONG cOperations;
     246    ULONG cOperations = 1; /* Always start at 1. */
    247247    settings::RecordingScreenSettingsMap::const_iterator itScreen = Settings.mapScreens.begin();
    248248    while (itScreen != Settings.mapScreens.end())
     
    756756                                     ComPtr<IProgress> &pProgress)
    757757{
     758    int vrc = VINF_SUCCESS;
     759
    758760    /* Copy the settings to our context. */
    759761    m_Settings = Settings;
     
    766768    settings::RecordingScreenSettings const &screen0Settings = itScreen0->second;
    767769
    768     int vrc = this->audioInit(screen0Settings);
     770    vrc = this->audioInit(screen0Settings);
    769771    if (RT_FAILURE(vrc))
    770772        return vrc;
  • trunk/src/VBox/Main/src-client/SessionImpl.cpp

    r105266 r105267  
    785785    return mConsole->i_onRecordingStateChange(aEnable, aProgress);
    786786#else
    787     RT_NOREF(aEnable);
     787    RT_NOREF(aEnable, aProgress);
    788788    return S_OK;
    789789#endif
     
    802802    return mConsole->i_onRecordingScreenStateChange(aEnable, aScreen);
    803803#else
    804     RT_NOREF(aEnable);
     804    RT_NOREF(aEnable, aScreen);
    805805    return S_OK;
    806806#endif
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