# 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.Casting")

try:
    import winsdk.windows.devices.enumeration
except ImportError:
    pass

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.ui.popups
except ImportError:
    pass

class CastingConnectionErrorStatus(enum.IntEnum):
    SUCCEEDED = 0
    DEVICE_DID_NOT_RESPOND = 1
    DEVICE_ERROR = 2
    DEVICE_LOCKED = 3
    PROTECTED_PLAYBACK_FAILED = 4
    INVALID_CASTING_SOURCE = 5
    UNKNOWN = 6

class CastingConnectionState(enum.IntEnum):
    DISCONNECTED = 0
    CONNECTED = 1
    RENDERING = 2
    DISCONNECTING = 3
    CONNECTING = 4

class CastingPlaybackTypes(enum.IntFlag):
    NONE = 0
    AUDIO = 0x1
    VIDEO = 0x2
    PICTURE = 0x4

_ns_module._register_CastingConnectionErrorStatus(CastingConnectionErrorStatus)
_ns_module._register_CastingConnectionState(CastingConnectionState)
_ns_module._register_CastingPlaybackTypes(CastingPlaybackTypes)

CastingConnection = _ns_module.CastingConnection
CastingConnectionErrorOccurredEventArgs = _ns_module.CastingConnectionErrorOccurredEventArgs
CastingDevice = _ns_module.CastingDevice
CastingDevicePicker = _ns_module.CastingDevicePicker
CastingDevicePickerFilter = _ns_module.CastingDevicePickerFilter
CastingDeviceSelectedEventArgs = _ns_module.CastingDeviceSelectedEventArgs
CastingSource = _ns_module.CastingSource
