@nodert-win10/windows.media.capture
Version:
Use the Windows.Media.Capture UWP API directly from Node.js
1,166 lines (913 loc) • 36.3 kB
JavaScript
Size = (function () {
var cls = function Size() {
};
return cls;
}) ();
exports.Size = Size;
WhiteBalanceGain = (function () {
var cls = function WhiteBalanceGain() {
this.r = new Number();
this.g = new Number();
this.b = new Number();
};
return cls;
}) ();
exports.WhiteBalanceGain = WhiteBalanceGain;
AppCaptureContract = (function () {
var cls = function AppCaptureContract() {
};
return cls;
}) ();
exports.AppCaptureContract = AppCaptureContract;
CameraCaptureUIContract = (function () {
var cls = function CameraCaptureUIContract() {
};
return cls;
}) ();
exports.CameraCaptureUIContract = CameraCaptureUIContract;
_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;
}
exports.PowerlineFrequency = new _PowerlineFrequency();
_MediaCaptureThermalStatus = function () {
this.normal = 0;
this.overheated = 1;
}
exports.MediaCaptureThermalStatus = new _MediaCaptureThermalStatus();
_KnownVideoProfile = function () {
this.videoRecording = 0;
this.highQualityPhoto = 1;
this.balancedVideoAndPhoto = 2;
this.videoConferencing = 3;
this.photoSequence = 4;
}
exports.KnownVideoProfile = new _KnownVideoProfile();
_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();
_AppCaptureHistoricalBufferLengthUnit = function () {
this.megabytes = 0;
this.seconds = 1;
}
exports.AppCaptureHistoricalBufferLengthUnit = new _AppCaptureHistoricalBufferLengthUnit();
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;
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;
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();
};
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.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.streamingCaptureMode = new StreamingCaptureMode();
this.photoCaptureSource = new PhotoCaptureSource();
this.audioDeviceId = new String();
this.mediaCategory = new MediaCategory();
this.audioProcessing = new Number();
this.audioSource = new Object();
this.videoSource = new Object();
this.videoProfile = new MediaCaptureVideoProfile();
this.recordMediaDescription = new MediaCaptureVideoProfileMediaDescription();
this.previewMediaDescription = new MediaCaptureVideoProfileMediaDescription();
this.photoMediaDescription = new MediaCaptureVideoProfileMediaDescription();
};
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>
}
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;
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();
};
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;
AppCaptureSettings = (function () {
var cls = function AppCaptureSettings() {
this.isAppCaptureEnabled = new Boolean();
this.historicalBufferLengthUnit = new AppCaptureHistoricalBufferLengthUnit();
this.historicalBufferLength = new Number();
this.isHistoricalCaptureOnWirelessDisplayAllowed = new Boolean();
this.customVideoEncodingWidth = new Number();
this.customVideoEncodingHeight = new Number();
this.customVideoEncodingBitrate = new Number();
this.audioEncodingBitrate = new Number();
this.appCaptureDestinationFolder = new Object();
this.isAudioCaptureEnabled = new Boolean();
this.videoEncodingResolutionMode = new AppCaptureVideoEncodingResolutionMode();
this.videoEncodingBitrateMode = new AppCaptureVideoEncodingBitrateMode();
this.screenshotDestinationFolder = new Object();
this.maximumRecordLength = new Number();
this.isHistoricalCaptureOnBatteryAllowed = new Boolean();
this.isHistoricalCaptureEnabled = new Boolean();
this.hasHardwareEncoder = new Boolean();
this.isCpuConstrained = new Boolean();
this.isDisabledByPolicy = new Boolean();
this.isMemoryConstrained = new Boolean();
this.alternateShortcutKeys = new AppCaptureAlternateShortcutKeys();
this.isGpuConstrained = new Boolean();
this.isMicrophoneCaptureEnabled = new Boolean();
};
return cls;
}) ();
exports.AppCaptureSettings = AppCaptureSettings;
AppCaptureAlternateShortcutKeys = (function () {
var cls = function AppCaptureAlternateShortcutKeys() {
this.toggleRecordingKeyModifiers = new Number();
this.toggleRecordingKey = new Number();
this.toggleRecordingIndicatorKeyModifiers = new Number();
this.toggleRecordingIndicatorKey = new Number();
this.toggleGameBarKeyModifiers = new Number();
this.toggleGameBarKey = new Number();
this.takeScreenshotKeyModifiers = new Number();
this.takeScreenshotKey = new Number();
this.saveHistoricalVideoKeyModifiers = new Number();
this.saveHistoricalVideoKey = new Number();
this.toggleMicrophoneCaptureKeyModifiers = new Number();
this.toggleMicrophoneCaptureKey = new Number();
};
return cls;
}) ();
exports.AppCaptureAlternateShortcutKeys = AppCaptureAlternateShortcutKeys;
AppCaptureManager = (function () {
var cls = function AppCaptureManager() {
};
cls.getCurrentSettings = function getCurrentSettings() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AppCaptureSettings" />
/// </signature>
return new AppCaptureSettings();
}
cls.applySettings = function applySettings(appCaptureSettings) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="appCaptureSettings" type="AppCaptureSettings">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.AppCaptureManager = AppCaptureManager;
CameraOptionsUI = (function () {
var cls = function CameraOptionsUI() {
};
cls.show = function show(mediaCapture) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="mediaCapture" type="MediaCapture">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.CameraOptionsUI = CameraOptionsUI;
ScreenCapture = (function () {
var cls = function ScreenCapture() {
this.audioSource = new Object();
this.isAudioSuspended = new Boolean();
this.isVideoSuspended = new Boolean();
this.videoSource = new Object();
};
cls.getForCurrentView = function getForCurrentView() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="ScreenCapture" />
/// </signature>
return new ScreenCapture();
}
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.ScreenCapture = ScreenCapture;
SourceSuspensionChangedEventArgs = (function () {
var cls = function SourceSuspensionChangedEventArgs() {
this.isAudioSuspended = new Boolean();
this.isVideoSuspended = new Boolean();
};
return cls;
}) ();
exports.SourceSuspensionChangedEventArgs = SourceSuspensionChangedEventArgs;