UNPKG

@nodert-win10-cu/windows.media.capture

Version:

Use the Windows.Media.Capture UWP API directly from Node.js

1,606 lines (1,271 loc) 72.4 kB
Size = (function () { var cls = function Size() { }; return cls; }) (); exports.Size = Size; BitmapSize = (function () { var cls = function BitmapSize() { this.width = new Number(); this.height = new Number(); }; return cls; }) (); exports.BitmapSize = BitmapSize; Rect = (function () { var cls = function Rect() { }; return cls; }) (); exports.Rect = Rect; WhiteBalanceGain = (function () { var cls = function WhiteBalanceGain() { this.r = new Number(); this.g = new Number(); this.b = new Number(); }; return cls; }) (); exports.WhiteBalanceGain = WhiteBalanceGain; AppBroadcastContract = (function () { var cls = function AppBroadcastContract() { }; return cls; }) (); exports.AppBroadcastContract = AppBroadcastContract; AppCaptureContract = (function () { var cls = function AppCaptureContract() { }; return cls; }) (); exports.AppCaptureContract = AppCaptureContract; CameraCaptureUIContract = (function () { var cls = function CameraCaptureUIContract() { }; return cls; }) (); exports.CameraCaptureUIContract = CameraCaptureUIContract; GameBarContract = (function () { var cls = function GameBarContract() { }; return cls; }) (); exports.GameBarContract = GameBarContract; _CameraCaptureUIMode = function () { this.photoOrVideo = 0; this.photo = 1; this.video = 2; } exports.CameraCaptureUIMode = new _CameraCaptureUIMode(); _CameraCaptureUIPhotoFormat = function () { this.jpeg = 0; this.png = 1; this.jpegXR = 2; } exports.CameraCaptureUIPhotoFormat = new _CameraCaptureUIPhotoFormat(); _CameraCaptureUIVideoFormat = function () { this.mp4 = 0; this.wmv = 1; } exports.CameraCaptureUIVideoFormat = new _CameraCaptureUIVideoFormat(); _CameraCaptureUIMaxVideoResolution = function () { this.highestAvailable = 0; this.lowDefinition = 1; this.standardDefinition = 2; this.highDefinition = 3; } exports.CameraCaptureUIMaxVideoResolution = new _CameraCaptureUIMaxVideoResolution(); _CameraCaptureUIMaxPhotoResolution = function () { this.highestAvailable = 0; this.verySmallQvga = 1; this.smallVga = 2; this.mediumXga = 3; this.large3M = 4; this.veryLarge5M = 5; } exports.CameraCaptureUIMaxPhotoResolution = new _CameraCaptureUIMaxPhotoResolution(); _MediaCategory = function () { this.other = 0; this.communications = 1; this.media = 2; this.gameChat = 3; this.speech = 4; } exports.MediaCategory = new _MediaCategory(); _MediaStreamType = function () { this.videoPreview = 0; this.videoRecord = 1; this.audio = 2; this.photo = 3; } exports.MediaStreamType = new _MediaStreamType(); _StreamingCaptureMode = function () { this.audioAndVideo = 0; this.audio = 1; this.video = 2; } exports.StreamingCaptureMode = new _StreamingCaptureMode(); _VideoRotation = function () { this.none = 0; this.clockwise90Degrees = 1; this.clockwise180Degrees = 2; this.clockwise270Degrees = 3; } exports.VideoRotation = new _VideoRotation(); _PhotoCaptureSource = function () { this.auto = 0; this.videoPreview = 1; this.photo = 2; } exports.PhotoCaptureSource = new _PhotoCaptureSource(); _VideoDeviceCharacteristic = function () { this.allStreamsIndependent = 0; this.previewRecordStreamsIdentical = 1; this.previewPhotoStreamsIdentical = 2; this.recordPhotoStreamsIdentical = 3; this.allStreamsIdentical = 4; } exports.VideoDeviceCharacteristic = new _VideoDeviceCharacteristic(); _PowerlineFrequency = function () { this.disabled = 0; this.fiftyHertz = 1; this.sixtyHertz = 2; this.auto = 3; } exports.PowerlineFrequency = new _PowerlineFrequency(); _MediaCaptureThermalStatus = function () { this.normal = 0; this.overheated = 1; } exports.MediaCaptureThermalStatus = new _MediaCaptureThermalStatus(); _MediaCaptureDeviceExclusiveControlStatus = function () { this.exclusiveControlAvailable = 0; this.sharedReadOnlyAvailable = 1; } exports.MediaCaptureDeviceExclusiveControlStatus = new _MediaCaptureDeviceExclusiveControlStatus(); _KnownVideoProfile = function () { this.videoRecording = 0; this.highQualityPhoto = 1; this.balancedVideoAndPhoto = 2; this.videoConferencing = 3; this.photoSequence = 4; } exports.KnownVideoProfile = new _KnownVideoProfile(); _MediaCaptureMemoryPreference = function () { this.auto = 0; this.cpu = 1; } exports.MediaCaptureMemoryPreference = new _MediaCaptureMemoryPreference(); _MediaCaptureSharingMode = function () { this.exclusiveControl = 0; this.sharedReadOnly = 1; } exports.MediaCaptureSharingMode = new _MediaCaptureSharingMode(); _AppBroadcastCameraOverlayLocation = function () { this.topLeft = 0; this.topCenter = 1; this.topRight = 2; this.middleLeft = 3; this.middleCenter = 4; this.middleRight = 5; this.bottomLeft = 6; this.bottomCenter = 7; this.bottomRight = 8; } exports.AppBroadcastCameraOverlayLocation = new _AppBroadcastCameraOverlayLocation(); _AppBroadcastCameraOverlaySize = function () { this.small = 0; this.medium = 1; this.large = 2; } exports.AppBroadcastCameraOverlaySize = new _AppBroadcastCameraOverlaySize(); _AppBroadcastVideoEncodingBitrateMode = function () { this.custom = 0; this.auto = 1; } exports.AppBroadcastVideoEncodingBitrateMode = new _AppBroadcastVideoEncodingBitrateMode(); _AppBroadcastVideoEncodingResolutionMode = function () { this.custom = 0; this.auto = 1; } exports.AppBroadcastVideoEncodingResolutionMode = new _AppBroadcastVideoEncodingResolutionMode(); _AppBroadcastPlugInState = function () { this.unknown = 0; this.initialized = 1; this.microsoftSignInRequired = 2; this.oAuthSignInRequired = 3; this.providerSignInRequired = 4; this.inBandwidthTest = 5; this.readyToBroadcast = 6; } exports.AppBroadcastPlugInState = new _AppBroadcastPlugInState(); _AppBroadcastStreamState = function () { this.initializing = 0; this.streamReady = 1; this.started = 2; this.paused = 3; this.terminated = 4; } exports.AppBroadcastStreamState = new _AppBroadcastStreamState(); _AppBroadcastSignInState = function () { this.notSignedIn = 0; this.microsoftSignInInProgress = 1; this.microsoftSignInComplete = 2; this.oAuthSignInInProgress = 3; this.oAuthSignInComplete = 4; } exports.AppBroadcastSignInState = new _AppBroadcastSignInState(); _AppBroadcastTerminationReason = function () { this.normalTermination = 0; this.lostConnectionToService = 1; this.noNetworkConnectivity = 2; this.serviceAbort = 3; this.serviceError = 4; this.serviceUnavailable = 5; this.internalError = 6; this.unsupportedFormat = 7; this.backgroundTaskTerminated = 8; this.backgroundTaskUnresponsive = 9; } exports.AppBroadcastTerminationReason = new _AppBroadcastTerminationReason(); _AppBroadcastSignInResult = function () { this.success = 0; this.authenticationFailed = 1; this.unauthorized = 2; this.serviceUnavailable = 3; this.unknown = 4; } exports.AppBroadcastSignInResult = new _AppBroadcastSignInResult(); _ForegroundActivationArgument = function () { this.signInRequired = 0; this.moreSettings = 1; } exports.ForegroundActivationArgument = new _ForegroundActivationArgument(); _AppBroadcastMicrophoneCaptureState = function () { this.stopped = 0; this.started = 1; this.failed = 2; } exports.AppBroadcastMicrophoneCaptureState = new _AppBroadcastMicrophoneCaptureState(); _AppBroadcastCameraCaptureState = function () { this.stopped = 0; this.started = 1; this.failed = 2; } exports.AppBroadcastCameraCaptureState = new _AppBroadcastCameraCaptureState(); _AppBroadcastExitBroadcastModeReason = function () { this.normalExit = 0; this.userCanceled = 1; this.authorizationFail = 2; this.foregroundAppActivated = 3; } exports.AppBroadcastExitBroadcastModeReason = new _AppBroadcastExitBroadcastModeReason(); _AppBroadcastPreviewState = function () { this.started = 0; this.stopped = 1; this.failed = 2; } exports.AppBroadcastPreviewState = new _AppBroadcastPreviewState(); _AppBroadcastCaptureTargetType = function () { this.appView = 0; this.entireDisplay = 1; } exports.AppBroadcastCaptureTargetType = new _AppBroadcastCaptureTargetType(); _GameBarServicesDisplayMode = function () { this.windowed = 0; this.fullScreenExclusive = 1; } exports.GameBarServicesDisplayMode = new _GameBarServicesDisplayMode(); _AppCaptureVideoEncodingBitrateMode = function () { this.custom = 0; this.high = 1; this.standard = 2; } exports.AppCaptureVideoEncodingBitrateMode = new _AppCaptureVideoEncodingBitrateMode(); _AppCaptureVideoEncodingResolutionMode = function () { this.custom = 0; this.high = 1; this.standard = 2; } exports.AppCaptureVideoEncodingResolutionMode = new _AppCaptureVideoEncodingResolutionMode(); _AppCaptureVideoEncodingFrameRateMode = function () { this.standard = 0; this.high = 1; } exports.AppCaptureVideoEncodingFrameRateMode = new _AppCaptureVideoEncodingFrameRateMode(); _AppCaptureHistoricalBufferLengthUnit = function () { this.megabytes = 0; this.seconds = 1; } exports.AppCaptureHistoricalBufferLengthUnit = new _AppCaptureHistoricalBufferLengthUnit(); _AppCaptureMicrophoneCaptureState = function () { this.stopped = 0; this.started = 1; this.failed = 2; } exports.AppCaptureMicrophoneCaptureState = new _AppCaptureMicrophoneCaptureState(); _AppCaptureRecordingState = function () { this.inProgress = 0; this.completed = 1; this.failed = 2; } exports.AppCaptureRecordingState = new _AppCaptureRecordingState(); _GameBarCommand = function () { this.openGameBar = 0; this.recordHistoricalBuffer = 1; this.toggleStartStopRecord = 2; this.startRecord = 3; this.stopRecord = 4; this.takeScreenshot = 5; this.startBroadcast = 6; this.stopBroadcast = 7; this.pauseBroadcast = 8; this.resumeBroadcast = 9; this.toggleStartStopBroadcast = 10; this.toggleMicrophoneCapture = 11; this.toggleCameraCapture = 12; this.toggleRecordingIndicator = 13; } exports.GameBarCommand = new _GameBarCommand(); _GameBarCommandOrigin = function () { this.shortcutKey = 0; this.cortana = 1; this.appCommand = 2; } exports.GameBarCommandOrigin = new _GameBarCommandOrigin(); _GameBarTargetCapturePolicy = function () { this.enabledBySystem = 0; this.enabledByUser = 1; this.notEnabled = 2; this.prohibitedBySystem = 3; this.prohibitedByPublisher = 4; } exports.GameBarTargetCapturePolicy = new _GameBarTargetCapturePolicy(); AppCapture = (function () { var cls = function AppCapture() { this.isCapturingAudio = new Boolean(); this.isCapturingVideo = new Boolean(); }; cls.getForCurrentView = function getForCurrentView() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="AppCapture" /> /// </signature> return new AppCapture(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AppCapture = AppCapture; CameraCaptureUIPhotoCaptureSettings = (function () { var cls = function CameraCaptureUIPhotoCaptureSettings() { this.maxResolution = new CameraCaptureUIMaxPhotoResolution(); this.format = new CameraCaptureUIPhotoFormat(); this.croppedSizeInPixels = new Object(); this.croppedAspectRatio = new Object(); this.allowCropping = new Boolean(); }; return cls; }) (); exports.CameraCaptureUIPhotoCaptureSettings = CameraCaptureUIPhotoCaptureSettings; CameraCaptureUIVideoCaptureSettings = (function () { var cls = function CameraCaptureUIVideoCaptureSettings() { this.maxResolution = new CameraCaptureUIMaxVideoResolution(); this.maxDurationInSeconds = new Number(); this.format = new CameraCaptureUIVideoFormat(); this.allowTrimming = new Boolean(); }; return cls; }) (); exports.CameraCaptureUIVideoCaptureSettings = CameraCaptureUIVideoCaptureSettings; CameraCaptureUI = (function () { var cls = function CameraCaptureUI() { this.photoSettings = new CameraCaptureUIPhotoCaptureSettings(); this.videoSettings = new CameraCaptureUIVideoCaptureSettings(); }; cls.prototype.captureFileAsync = function captureFileAsync(mode, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mode" type="CameraCaptureUIMode">A param.</param> /// </signature> } return cls; }) (); exports.CameraCaptureUI = CameraCaptureUI; MediaCaptureFailedEventArgs = (function () { var cls = function MediaCaptureFailedEventArgs() { this.code = new Number(); this.message = new String(); }; return cls; }) (); exports.MediaCaptureFailedEventArgs = MediaCaptureFailedEventArgs; MediaCapture = (function () { var cls = function MediaCapture() { this.audioDeviceController = new Object(); this.mediaCaptureSettings = new MediaCaptureSettings(); this.videoDeviceController = new Object(); this.cameraStreamState = new Number(); this.thermalStatus = new MediaCaptureThermalStatus(); this.frameSources = new Object(); }; cls.prototype.getPreviewFrameAsync = function getPreviewFrameAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.getPreviewFrameAsync = function getPreviewFrameAsync(destination, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="destination" type="Object">A param.</param> /// </signature> } cls.prototype.prepareAdvancedPhotoCaptureAsync = function prepareAdvancedPhotoCaptureAsync(encodingProperties, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProperties" type="Object">A param.</param> /// </signature> } cls.prototype.removeEffectAsync = function removeEffectAsync(effect, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="effect" type="Object">A param.</param> /// </signature> } cls.prototype.pauseRecordWithResultAsync = function pauseRecordWithResultAsync(behavior, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="behavior" type="Number">A param.</param> /// </signature> } cls.prototype.stopRecordWithResultAsync = function stopRecordWithResultAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.createFrameReaderAsync = function createFrameReaderAsync(inputSource, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="inputSource" type="Object">A param.</param> /// </signature> } cls.prototype.createFrameReaderAsync = function createFrameReaderAsync(inputSource, outputSubtype, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="inputSource" type="Object">A param.</param> /// <param name="outputSubtype" type="String">A param.</param> /// </signature> } cls.prototype.createFrameReaderAsync = function createFrameReaderAsync(inputSource, outputSubtype, outputSize, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="inputSource" type="Object">A param.</param> /// <param name="outputSubtype" type="String">A param.</param> /// <param name="outputSize" type="BitmapSize">A param.</param> /// </signature> } cls.prototype.createMultiSourceFrameReaderAsync = function createMultiSourceFrameReaderAsync(inputSources, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="inputSources" type="Object">A param.</param> /// </signature> } cls.prototype.initializeAsync = function initializeAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.initializeAsync = function initializeAsync(mediaCaptureInitializationSettings, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mediaCaptureInitializationSettings" type="MediaCaptureInitializationSettings">A param.</param> /// </signature> } cls.prototype.startRecordToStorageFileAsync = function startRecordToStorageFileAsync(encodingProfile, file, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="file" type="Object">A param.</param> /// </signature> } cls.prototype.startRecordToStreamAsync = function startRecordToStreamAsync(encodingProfile, stream, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="stream" type="Object">A param.</param> /// </signature> } cls.prototype.startRecordToCustomSinkAsync = function startRecordToCustomSinkAsync(encodingProfile, customMediaSink, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="customMediaSink" type="Object">A param.</param> /// </signature> } cls.prototype.startRecordToCustomSinkAsync = function startRecordToCustomSinkAsync(encodingProfile, customSinkActivationId, customSinkSettings, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="customSinkActivationId" type="String">A param.</param> /// <param name="customSinkSettings" type="Object">A param.</param> /// </signature> } cls.prototype.stopRecordAsync = function stopRecordAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.capturePhotoToStorageFileAsync = function capturePhotoToStorageFileAsync(type, file, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="type" type="Object">A param.</param> /// <param name="file" type="Object">A param.</param> /// </signature> } cls.prototype.capturePhotoToStreamAsync = function capturePhotoToStreamAsync(type, stream, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="type" type="Object">A param.</param> /// <param name="stream" type="Object">A param.</param> /// </signature> } cls.prototype.addEffectAsync = function addEffectAsync(mediaStreamType, effectActivationID, effectSettings, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mediaStreamType" type="MediaStreamType">A param.</param> /// <param name="effectActivationID" type="String">A param.</param> /// <param name="effectSettings" type="Object">A param.</param> /// </signature> } cls.prototype.clearEffectsAsync = function clearEffectsAsync(mediaStreamType, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mediaStreamType" type="MediaStreamType">A param.</param> /// </signature> } cls.prototype.startPreviewAsync = function startPreviewAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.startPreviewToCustomSinkAsync = function startPreviewToCustomSinkAsync(encodingProfile, customMediaSink, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="customMediaSink" type="Object">A param.</param> /// </signature> } cls.prototype.startPreviewToCustomSinkAsync = function startPreviewToCustomSinkAsync(encodingProfile, customSinkActivationId, customSinkSettings, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="customSinkActivationId" type="String">A param.</param> /// <param name="customSinkSettings" type="Object">A param.</param> /// </signature> } cls.prototype.stopPreviewAsync = function stopPreviewAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.prepareLowLagRecordToStorageFileAsync = function prepareLowLagRecordToStorageFileAsync(encodingProfile, file, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="file" type="Object">A param.</param> /// </signature> } cls.prototype.prepareLowLagRecordToStreamAsync = function prepareLowLagRecordToStreamAsync(encodingProfile, stream, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="stream" type="Object">A param.</param> /// </signature> } cls.prototype.prepareLowLagRecordToCustomSinkAsync = function prepareLowLagRecordToCustomSinkAsync(encodingProfile, customMediaSink, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="customMediaSink" type="Object">A param.</param> /// </signature> } cls.prototype.prepareLowLagRecordToCustomSinkAsync = function prepareLowLagRecordToCustomSinkAsync(encodingProfile, customSinkActivationId, customSinkSettings, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="encodingProfile" type="Object">A param.</param> /// <param name="customSinkActivationId" type="String">A param.</param> /// <param name="customSinkSettings" type="Object">A param.</param> /// </signature> } cls.prototype.prepareLowLagPhotoCaptureAsync = function prepareLowLagPhotoCaptureAsync(type, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="type" type="Object">A param.</param> /// </signature> } cls.prototype.prepareLowLagPhotoSequenceCaptureAsync = function prepareLowLagPhotoSequenceCaptureAsync(type, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="type" type="Object">A param.</param> /// </signature> } cls.prototype.setEncodingPropertiesAsync = function setEncodingPropertiesAsync(mediaStreamType, mediaEncodingProperties, encoderProperties, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mediaStreamType" type="MediaStreamType">A param.</param> /// <param name="mediaEncodingProperties" type="Object">A param.</param> /// <param name="encoderProperties" type="Object">A param.</param> /// </signature> } cls.prototype.prepareVariablePhotoSequenceCaptureAsync = function prepareVariablePhotoSequenceCaptureAsync(type, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="type" type="Object">A param.</param> /// </signature> } cls.prototype.addAudioEffectAsync = function addAudioEffectAsync(definition, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="definition" type="Object">A param.</param> /// </signature> } cls.prototype.addVideoEffectAsync = function addVideoEffectAsync(definition, mediaStreamType, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="definition" type="Object">A param.</param> /// <param name="mediaStreamType" type="MediaStreamType">A param.</param> /// </signature> } cls.prototype.pauseRecordAsync = function pauseRecordAsync(behavior, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="behavior" type="Number">A param.</param> /// </signature> } cls.prototype.resumeRecordAsync = function resumeRecordAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.setEncoderProperty = function setEncoderProperty(mediaStreamType, propertyId, propertyValue) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mediaStreamType" type="MediaStreamType">A param.</param> /// <param name="propertyId" type="String">A param.</param> /// <param name="propertyValue" type="Object">A param.</param> /// </signature> } cls.prototype.getEncoderProperty = function getEncoderProperty(mediaStreamType, propertyId) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mediaStreamType" type="MediaStreamType">A param.</param> /// <param name="propertyId" type="String">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.setPreviewMirroring = function setPreviewMirroring(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="Boolean">A param.</param> /// </signature> } cls.prototype.getPreviewMirroring = function getPreviewMirroring() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.setPreviewRotation = function setPreviewRotation(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="VideoRotation">A param.</param> /// </signature> } cls.prototype.getPreviewRotation = function getPreviewRotation() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="VideoRotation" /> /// </signature> return new VideoRotation(); } cls.prototype.setRecordRotation = function setRecordRotation(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="VideoRotation">A param.</param> /// </signature> } cls.prototype.getRecordRotation = function getRecordRotation() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="VideoRotation" /> /// </signature> return new VideoRotation(); } cls.prototype.close = function close() { } cls.isVideoProfileSupported = function isVideoProfileSupported(videoDeviceId) { /// <signature> /// <summary>Function summary.</summary> /// <param name="videoDeviceId" type="String">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.findAllVideoProfiles = function findAllVideoProfiles(videoDeviceId) { /// <signature> /// <summary>Function summary.</summary> /// <param name="videoDeviceId" type="String">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.findConcurrentProfiles = function findConcurrentProfiles(videoDeviceId) { /// <signature> /// <summary>Function summary.</summary> /// <param name="videoDeviceId" type="String">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.findKnownVideoProfiles = function findKnownVideoProfiles(videoDeviceId, name) { /// <signature> /// <summary>Function summary.</summary> /// <param name="videoDeviceId" type="String">A param.</param> /// <param name="name" type="KnownVideoProfile">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.MediaCapture = MediaCapture; MediaCaptureVideoProfileMediaDescription = (function () { var cls = function MediaCaptureVideoProfileMediaDescription() { this.frameRate = new Number(); this.height = new Number(); this.isHdrVideoSupported = new Boolean(); this.isVariablePhotoSequenceSupported = new Boolean(); this.width = new Number(); }; return cls; }) (); exports.MediaCaptureVideoProfileMediaDescription = MediaCaptureVideoProfileMediaDescription; MediaCaptureVideoProfile = (function () { var cls = function MediaCaptureVideoProfile() { this.id = new String(); this.supportedPhotoMediaDescription = new Object(); this.supportedPreviewMediaDescription = new Object(); this.supportedRecordMediaDescription = new Object(); this.videoDeviceId = new String(); }; cls.prototype.getConcurrency = function getConcurrency() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Object" /> /// </signature> return new Object(); } return cls; }) (); exports.MediaCaptureVideoProfile = MediaCaptureVideoProfile; MediaCaptureInitializationSettings = (function () { var cls = function MediaCaptureInitializationSettings() { this.videoDeviceId = new String(); this.audioDeviceId = new String(); this.photoCaptureSource = new PhotoCaptureSource(); this.streamingCaptureMode = new StreamingCaptureMode(); this.mediaCategory = new MediaCategory(); this.audioProcessing = new Number(); this.videoSource = new Object(); this.audioSource = new Object(); this.recordMediaDescription = new MediaCaptureVideoProfileMediaDescription(); this.videoProfile = new MediaCaptureVideoProfile(); this.photoMediaDescription = new MediaCaptureVideoProfileMediaDescription(); this.previewMediaDescription = new MediaCaptureVideoProfileMediaDescription(); this.sourceGroup = new Object(); this.sharingMode = new MediaCaptureSharingMode(); this.memoryPreference = new MediaCaptureMemoryPreference(); this.alwaysPlaySystemShutterSound = new Boolean(); }; return cls; }) (); exports.MediaCaptureInitializationSettings = MediaCaptureInitializationSettings; MediaCaptureSettings = (function () { var cls = function MediaCaptureSettings() { this.audioDeviceId = new String(); this.photoCaptureSource = new PhotoCaptureSource(); this.streamingCaptureMode = new StreamingCaptureMode(); this.videoDeviceCharacteristic = new VideoDeviceCharacteristic(); this.videoDeviceId = new String(); this.audioProcessing = new Number(); this.cameraSoundRequiredForRegion = new Boolean(); this.concurrentRecordAndPhotoSequenceSupported = new Boolean(); this.concurrentRecordAndPhotoSupported = new Boolean(); this.horizontal35mmEquivalentFocalLength = new Number(); this.mediaCategory = new MediaCategory(); this.pitchOffsetDegrees = new Number(); this.vertical35mmEquivalentFocalLength = new Number(); }; return cls; }) (); exports.MediaCaptureSettings = MediaCaptureSettings; LowLagMediaRecording = (function () { var cls = function LowLagMediaRecording() { }; cls.prototype.startAsync = function startAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.stopAsync = function stopAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.finishAsync = function finishAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.pauseAsync = function pauseAsync(behavior, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="behavior" type="Number">A param.</param> /// </signature> } cls.prototype.resumeAsync = function resumeAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.pauseWithResultAsync = function pauseWithResultAsync(behavior, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="behavior" type="Number">A param.</param> /// </signature> } cls.prototype.stopWithResultAsync = function stopWithResultAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } return cls; }) (); exports.LowLagMediaRecording = LowLagMediaRecording; LowLagPhotoCapture = (function () { var cls = function LowLagPhotoCapture() { }; cls.prototype.captureAsync = function captureAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.finishAsync = function finishAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } return cls; }) (); exports.LowLagPhotoCapture = LowLagPhotoCapture; LowLagPhotoSequenceCapture = (function () { var cls = function LowLagPhotoSequenceCapture() { }; cls.prototype.startAsync = function startAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.stopAsync = function stopAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.finishAsync = function finishAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.LowLagPhotoSequenceCapture = LowLagPhotoSequenceCapture; MediaCaptureFocusChangedEventArgs = (function () { var cls = function MediaCaptureFocusChangedEventArgs() { this.focusState = new Number(); }; return cls; }) (); exports.MediaCaptureFocusChangedEventArgs = MediaCaptureFocusChangedEventArgs; PhotoConfirmationCapturedEventArgs = (function () { var cls = function PhotoConfirmationCapturedEventArgs() { this.captureTimeOffset = new Number(); this.frame = new CapturedFrame(); }; return cls; }) (); exports.PhotoConfirmationCapturedEventArgs = PhotoConfirmationCapturedEventArgs; AdvancedPhotoCapture = (function () { var cls = function AdvancedPhotoCapture() { }; cls.prototype.captureAsync = function captureAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.captureAsync = function captureAsync(context, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="context" type="Object">A param.</param> /// </signature> } cls.prototype.finishAsync = function finishAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AdvancedPhotoCapture = AdvancedPhotoCapture; MediaCapturePauseResult = (function () { var cls = function MediaCapturePauseResult() { this.lastFrame = new Object(); this.recordDuration = new Number(); }; cls.prototype.close = function close() { } return cls; }) (); exports.MediaCapturePauseResult = MediaCapturePauseResult; MediaCaptureStopResult = (function () { var cls = function MediaCaptureStopResult() { this.lastFrame = new Object(); this.recordDuration = new Number(); }; cls.prototype.close = function close() { } return cls; }) (); exports.MediaCaptureStopResult = MediaCaptureStopResult; MediaCaptureDeviceExclusiveControlStatusChangedEventArgs = (function () { var cls = function MediaCaptureDeviceExclusiveControlStatusChangedEventArgs() { this.deviceId = new String(); this.status = new MediaCaptureDeviceExclusiveControlStatus(); }; return cls; }) (); exports.MediaCaptureDeviceExclusiveControlStatusChangedEventArgs = MediaCaptureDeviceExclusiveControlStatusChangedEventArgs; CapturedPhoto = (function () { var cls = function CapturedPhoto() { this.frame = new CapturedFrame(); this.thumbnail = new CapturedFrame(); }; return cls; }) (); exports.CapturedPhoto = CapturedPhoto; AdvancedCapturedPhoto = (function () { var cls = function AdvancedCapturedPhoto() { this.context = new Object(); this.frame = new CapturedFrame(); this.mode = new Number(); this.frameBoundsRelativeToReferencePhoto = new Object(); }; return cls; }) (); exports.AdvancedCapturedPhoto = AdvancedCapturedPhoto; OptionalReferencePhotoCapturedEventArgs = (function () { var cls = function OptionalReferencePhotoCapturedEventArgs() { this.context = new Object(); this.frame = new CapturedFrame(); }; return cls; }) (); exports.OptionalReferencePhotoCapturedEventArgs = OptionalReferencePhotoCapturedEventArgs; CapturedFrame = (function () { var cls = function CapturedFrame() { this.height = new Number(); this.width = new Number(); this.softwareBitmap = new Object(); this.contentType = new String(); this.size = new Number(); this.canRead = new Boolean(); this.canWrite = new Boolean(); this.position = new Number(); }; cls.prototype.readAsync = function readAsync(buffer, count, options, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="buffer" type="Object">A param.</param> /// <param name="count" type="Number">A param.</param> /// <param name="options" type="Number">A param.</param> /// </signature> } cls.prototype.writeAsync = function writeAsync(buffer, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="buffer" type="Object">A param.</param> /// </signature> } cls.prototype.flushAsync = function flushAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.getInputStreamAt = function getInputStreamAt(position) { /// <signature> /// <summary>Function summary.</summary> /// <param name="position" type="Number">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.getOutputStreamAt = function getOutputStreamAt(position) { /// <signature> /// <summary>Function summary.</summary> /// <param name="position" type="Number">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.seek = function seek(position) { /// <signature> /// <summary>Function summary.</summary> /// <param name="position" type="Number">A param.</param> /// </signature> } cls.prototype.cloneStream = function cloneStream() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.close = function close() { } return cls; }) (); exports.CapturedFrame = CapturedFrame; PhotoCapturedEventArgs = (function () { var cls = function PhotoCapturedEventArgs() { this.captureTimeOffset = new Number(); this.frame = new CapturedFrame(); this.thumbnail = new CapturedFrame(); }; return cls; }) (); exports.PhotoCapturedEventArgs = PhotoCapturedEventArgs; CapturedFrameControlValues = (function () { var cls = function CapturedFrameControlValues() { this.exposure = new Number(); this.exposureCompensation = new Number(); this.flashPowerPercent = new Number(); this.flashed = new Boolean(); this.focus = new Number(); this.isoSpeed = new Number(); this.sceneMode = new Number(); this.whiteBalance = new Number(); this.zoomFactor = new Number(); this.focusState = new Number(); this.isoAnalogGain = new Number(); this.isoDigitalGain = new Number(); this.sensorFrameRate = new Object(); this.whiteBalanceGain = new WhiteBalanceGain(); }; return cls; }) (); exports.CapturedFrameControlValues = CapturedFrameControlValues; VideoStreamConfiguration = (function () { var cls = function VideoStreamConfiguration() { this.inputProperties = new Object(); this.outputProperties = new Object(); }; return cls; }) (); exports.VideoStreamConfiguration = VideoStreamConfiguration; AppBroadcastGlobalSettings = (function () { var cls = function AppBroadcastGlobalSettings() { this.systemAudioGain = new Number(); this.selectedCameraId = new String(); this.microphoneGain = new Number(); this.isMicrophoneCaptureEnabledByDefault = new Boolean(); this.isEchoCancellationEnabled = new Boolean(); this.isCursorImageCaptureEnabled = new Boolean(); this.isCameraCaptureEnabledByDefault = new Boolean(); this.isAudioCaptureEnabled = new Boolean(); this.cameraOverlaySize = new AppBroadcastCameraOverlaySize(); this.cameraOverlayLocation = new AppBroadcastCameraOverlayLocation(); this.hasHardwareEncoder = new Boolean(); this.isBroadcastEnabled = new Boolean(); this.isDisabledByPolicy = new Boolean(); this.isGpuConstrained = new Boolean(); }; return cls; }) (); exports.AppBroadcastGlobalSettings = AppBroadcastGlobalSettings; AppBroadcastProviderSettings = (function () { var cls = function AppBroadcastProviderSettings() { this.videoEncodingResolutionMode = new AppBroadcastVideoEncodingResolutionMode(); this.videoEncodingBitrateMode = new AppBroadcastVideoEncodingBitrateMode(); this.defaultBroadcastTitle = new String(); this.customVideoEncodingWidth = new Number(); this.customVideoEncodingHeight = new Number(); this.customVideoEncodingBitrate = new Number(); this.audioEncodingBitrate = new Number(); }; return cls; }) (); exports.AppBroadcastProviderSettings = AppBroadcastProviderSettings; AppBroadcastManager = (function () { var cls = function AppBroadcastManager() { }; cls.getGlobalSettings = function getGlobalSettings() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="AppBroadcastGlobalSettings" /> /// </signature> return new AppBroadcastGlobalSettings(); } cls.applyGlobalSettings = function applyGlobalSettings(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="AppBroadcastGlobalSettings">A param.</param> /// </signature> } cls.getProviderSettings = function getProviderSettings() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="AppBroadcastProviderSettings" /> /// </signature> return new AppBroadcastProviderSettings(); } cls.applyProviderSettings = function applyProviderSettings(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="AppBroadcastProviderSettings">A param.</param> /// </signature> } return cls; }) (); exports.AppBroadcastManager = AppBroadcastManager; AppBroadcastBackgroundServiceSignInInfo = (function () { var cls = function AppBroadcastBackgroundServiceSignInInfo() { this.userName = new String(); this.oAuthRequestUri = new Object(); this.oAuthCallbackUri = new Object(); this.authenticationResult = new Object(); this.signInState = new AppBroadcastSignInState(); }; cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AppBroadcastBackgroundServiceSignInInfo = AppBroadcastBackgroundServiceSignInInfo; AppBroadcastSignInStateChangedEventArgs = (function () { var cls = function AppBroadcastSignInStateChangedEventArgs() { this.result = new AppBroadcastSignInResult(); this.signInState = new AppBroadcastSignInState(); }; return cls; }) (); exports.AppBroadcastSignInStateChangedEventArgs = AppBroadcastSignInStateChangedEventArgs; AppBroadcastStreamReader = (function () { var cls = function AppBroadcastStreamReader() { this.audioAacSequence = new Object(); this.audioBitrate = new Number(); this.audioChannels = new Number(); this.audioSampleRate = new Number(); this.videoBitrate = new Number(); this.videoHeight = new Number(); this.videoWidth = new Number(); }; cls.prototype.tryGetNextAudioFrame = function tryGetNextAudioFrame() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="AppBroadcastStreamAudioFrame" /> /// </signature> return new AppBroadcastStreamAudioFrame(); } cls.prototype.tryGetNextVideoFrame = function tryGetNextVideoFrame() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="AppBroadcastStreamVideoFrame" /> /// </signature> return new AppBroadcastStreamVideoFrame(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AppBroadcastStreamReader = AppBroadcastStreamReader; AppBroadcastBackgroundServiceStreamInfo = (function () { var cls = function AppBroadcastBackgroundServiceStreamInfo() { this.desiredVideoEncodingBitrate = new Number(); this.bandwidthTestBitrate = new Number(); this.audioCodec = new String(); this.broadcastStreamReader = new AppBroadcastStreamReader(); this.streamState = new AppBroadcastStreamState(); }; cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AppBroadcastBackgroundServiceStreamInfo = AppBroadcastBackgroundServiceStreamInfo; AppBroadcastStreamStateChangedEventArgs = (function () { var cls = function AppBroadcastStreamStateChangedEventArgs() { this.streamState = new AppBroadcastStreamState(); }; return cls; }) (); exports.AppBroadcastStreamStateChangedEventArgs = AppBroadcastStreamStateChangedEventArgs; AppBroadcastBackgroundService = (function () { var cls = function AppBroadcastBackgroundService() { this.viewerCount = new Number(); this.streamInfo = new AppBroadcastBackgroundServiceStreamInfo(); this.signInInfo = new AppBroadcastBackgroundServiceSignInInfo(); this.plugInState = new AppBroadcastPlugInState(); this.appId = new String(); this.broadcastTitle = new String(); this.titleId = new String(); }; cls.prototype.terminateBroadcast = function terminateBroadcast(reason, providerSpecificReason) { /// <signature> /// <summary>Function summary.</summary> /// <param name="reason" type="AppBroadcastTerminationReason">A param.</param> /// <param name="providerSpecificReason" type="Number">A param.</param> /// </signature> } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AppBroadcastBackgroundService = AppBroadcastBackgroundService; AppBroadcastHeartbeatRequestedEventArgs = (function () { var cls = function AppBroadcastHeartbeatRequestedEventArgs() { this.handled = new Boolean(); }; return cls; })