# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.10

import enum

import winsdk.system

_ns_module = winsdk.system._import_ns_module("Windows.Media.Streaming.Adaptive")

try:
    import winsdk.windows.foundation
except ImportError:
    pass

try:
    import winsdk.windows.foundation.collections
except ImportError:
    pass

try:
    import winsdk.windows.storage.streams
except ImportError:
    pass

try:
    import winsdk.windows.web.http
except ImportError:
    pass

class AdaptiveMediaSourceCreationStatus(enum.IntEnum):
    SUCCESS = 0
    MANIFEST_DOWNLOAD_FAILURE = 1
    MANIFEST_PARSE_FAILURE = 2
    UNSUPPORTED_MANIFEST_CONTENT_TYPE = 3
    UNSUPPORTED_MANIFEST_VERSION = 4
    UNSUPPORTED_MANIFEST_PROFILE = 5
    UNKNOWN_FAILURE = 6

class AdaptiveMediaSourceDiagnosticType(enum.IntEnum):
    MANIFEST_UNCHANGED_UPON_RELOAD = 0
    MANIFEST_MISMATCH_UPON_RELOAD = 1
    MANIFEST_SIGNALED_END_OF_LIVE_EVENT_UPON_RELOAD = 2
    MEDIA_SEGMENT_SKIPPED = 3
    RESOURCE_NOT_FOUND = 4
    RESOURCE_TIMED_OUT = 5
    RESOURCE_PARSING_ERROR = 6
    BITRATE_DISABLED = 7
    FATAL_MEDIA_SOURCE_ERROR = 8

class AdaptiveMediaSourceDownloadBitrateChangedReason(enum.IntEnum):
    SUFFICIENT_INBOUND_BITS_PER_SECOND = 0
    INSUFFICIENT_INBOUND_BITS_PER_SECOND = 1
    LOW_BUFFER_LEVEL = 2
    POSITION_CHANGED = 3
    TRACK_SELECTION_CHANGED = 4
    DESIRED_BITRATES_CHANGED = 5
    ERROR_IN_PREVIOUS_BITRATE = 6

class AdaptiveMediaSourceResourceType(enum.IntEnum):
    MANIFEST = 0
    INITIALIZATION_SEGMENT = 1
    MEDIA_SEGMENT = 2
    KEY = 3
    INITIALIZATION_VECTOR = 4
    MEDIA_SEGMENT_INDEX = 5

_ns_module._register_AdaptiveMediaSourceCreationStatus(AdaptiveMediaSourceCreationStatus)
_ns_module._register_AdaptiveMediaSourceDiagnosticType(AdaptiveMediaSourceDiagnosticType)
_ns_module._register_AdaptiveMediaSourceDownloadBitrateChangedReason(AdaptiveMediaSourceDownloadBitrateChangedReason)
_ns_module._register_AdaptiveMediaSourceResourceType(AdaptiveMediaSourceResourceType)

AdaptiveMediaSource = _ns_module.AdaptiveMediaSource
AdaptiveMediaSourceAdvancedSettings = _ns_module.AdaptiveMediaSourceAdvancedSettings
AdaptiveMediaSourceCorrelatedTimes = _ns_module.AdaptiveMediaSourceCorrelatedTimes
AdaptiveMediaSourceCreationResult = _ns_module.AdaptiveMediaSourceCreationResult
AdaptiveMediaSourceDiagnosticAvailableEventArgs = _ns_module.AdaptiveMediaSourceDiagnosticAvailableEventArgs
AdaptiveMediaSourceDiagnostics = _ns_module.AdaptiveMediaSourceDiagnostics
AdaptiveMediaSourceDownloadBitrateChangedEventArgs = _ns_module.AdaptiveMediaSourceDownloadBitrateChangedEventArgs
AdaptiveMediaSourceDownloadCompletedEventArgs = _ns_module.AdaptiveMediaSourceDownloadCompletedEventArgs
AdaptiveMediaSourceDownloadFailedEventArgs = _ns_module.AdaptiveMediaSourceDownloadFailedEventArgs
AdaptiveMediaSourceDownloadRequestedDeferral = _ns_module.AdaptiveMediaSourceDownloadRequestedDeferral
AdaptiveMediaSourceDownloadRequestedEventArgs = _ns_module.AdaptiveMediaSourceDownloadRequestedEventArgs
AdaptiveMediaSourceDownloadResult = _ns_module.AdaptiveMediaSourceDownloadResult
AdaptiveMediaSourceDownloadStatistics = _ns_module.AdaptiveMediaSourceDownloadStatistics
AdaptiveMediaSourcePlaybackBitrateChangedEventArgs = _ns_module.AdaptiveMediaSourcePlaybackBitrateChangedEventArgs
