Skip to main content
Version: 21 Aug 2024

ml_media_common.h

Enums

Name
enumMLMediaSeekMode
{
MLMediaSeekMode_Previous_Sync,
MLMediaSeekMode_Next_Sync,
MLMediaSeekMode_Closest_Sync,
MLMediaSeekMode_Closest,
MLMediaSeekMode_Ensure32Bits = 0x7FFFFFFF
}

Enums Documentation

MLMediaSeekMode

EnumeratorValueDescription
MLMediaSeekMode_Previous_SyncSeek to the previous key frame.
MLMediaSeekMode_Next_SyncSeek to the next key frame.
MLMediaSeekMode_Closest_SyncSeek to the closest key frame.
MLMediaSeekMode_ClosestSeek to the closest frame, more accurate but slower.
MLMediaSeekMode_Ensure32Bits0x7FFFFFFFEnsure enum is represented as 32 bits.

Mode indicating where exactly to seek to.


Source code

// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
// Copyright (c) 2017 Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Software License Agreement,
// located here: https://www.magicleap.com/software-license-agreement-ml2
// Terms and conditions applicable to third-party materials accompanying
// this distribution may also be found in the top-level NOTICE file
// appearing herein.
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%

#pragma once

ML_EXTERN_C_BEGIN

typedef enum MLMediaSeekMode {
MLMediaSeekMode_Previous_Sync,
MLMediaSeekMode_Next_Sync,
MLMediaSeekMode_Closest_Sync,
MLMediaSeekMode_Closest,
MLMediaSeekMode_Ensure32Bits = 0x7FFFFFFF
} MLMediaSeekMode;

ML_EXTERN_C_END