docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetPlaybackDataset

    SetPlaybackDataset(string)

    Sets an MP4 dataset file to playback instead of live camera feed.

    Declaration
    public ArStatus SetPlaybackDataset(string path)
    Parameters
    Type Name Description
    string path

    A file path to a MP4 dataset file or null to use the live camera feed.

    Returns
    Type Description
    ArStatus
    • Returns Success if successful.
    • Returns ErrorSessionNotPaused if called when session is not paused.
    • Returns ErrorSessionUnsupported if playback is incompatible with selected features.
    • Returns ErrorPlaybackFailed if an error occurred with the MP4 dataset file such as not being able to open the file or the file is unable to be decoded.
    Remarks

    Restrictions:

    • Can only be called while the session is paused. Playback of the MP4 dataset file starts once the session is resumed.
    • The MP4 dataset file must use the same camera facing direction as is configured in the session.

    When an MP4 dataset file is set:

    • All existing trackables (i.e., anchors and trackables) immediately enter tracking state TrackingState.None.
    • The desired focus mode is ignored, and does not affect the previously recorded camera images.
    • The current camera configuration is immediately set to the default for the device the MP4 dataset file was recorded on.
    • Calls to retrieve the supported camera configurations return camera configs supported by the device the MP4 dataset file was recorded on.
    • Setting a previously obtained camera config has no effect.
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)