@nodert-win11-22h2/windows.media.capture
Version:
Use the Windows.Media.Capture UWP API directly from Node.js
1,615 lines (1,287 loc) • 78.8 kB
JavaScript
Rect = (function () {
var cls = function Rect() {
};
return cls;
}) ();
exports.Rect = Rect;
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;
AppBroadcastContract = (function () {
var cls = function AppBroadcastContract() {
};
return cls;
}) ();
exports.AppBroadcastContract = AppBroadcastContract;
AppCaptureContract = (function () {
var cls = function AppCaptureContract() {
};
return cls;
}) ();
exports.AppCaptureContract = AppCaptureContract;
AppCaptureMetadataContract = (function () {
var cls = function AppCaptureMetadataContract() {
};
return cls;
}) ();
exports.AppCaptureMetadataContract = AppCaptureMetadataContract;
CameraCaptureUIContract = (function () {
var cls = function CameraCaptureUIContract() {
};
return cls;
}) ();
exports.CameraCaptureUIContract = CameraCaptureUIContract;
GameBarContract = (function () {
var cls = function GameBarContract() {
};
return cls;
}) ();
exports.GameBarContract = GameBarContract;
WhiteBalanceGain = (function () {
var cls = function WhiteBalanceGain() {
this.r = new Number();
this.g = new Number();
this.b = new Number();
};
return cls;
}) ();
exports.WhiteBalanceGain = WhiteBalanceGain;
_AppBroadcastCameraCaptureState = function () {
this.stopped = 0;
this.started = 1;
this.failed = 2;
}
exports.AppBroadcastCameraCaptureState = new _AppBroadcastCameraCaptureState();
_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();
_AppBroadcastCaptureTargetType = function () {
this.appView = 0;
this.entireDisplay = 1;
}
exports.AppBroadcastCaptureTargetType = new _AppBroadcastCaptureTargetType();
_AppBroadcastExitBroadcastModeReason = function () {
this.normalExit = 0;
this.userCanceled = 1;
this.authorizationFail = 2;
this.foregroundAppActivated = 3;
}
exports.AppBroadcastExitBroadcastModeReason = new _AppBroadcastExitBroadcastModeReason();
_AppBroadcastMicrophoneCaptureState = function () {
this.stopped = 0;
this.started = 1;
this.failed = 2;
}
exports.AppBroadcastMicrophoneCaptureState = new _AppBroadcastMicrophoneCaptureState();
_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();
_AppBroadcastPreviewState = function () {
this.started = 0;
this.stopped = 1;
this.failed = 2;
}
exports.AppBroadcastPreviewState = new _AppBroadcastPreviewState();
_AppBroadcastSignInResult = function () {
this.success = 0;
this.authenticationFailed = 1;
this.unauthorized = 2;
this.serviceUnavailable = 3;
this.unknown = 4;
}
exports.AppBroadcastSignInResult = new _AppBroadcastSignInResult();
_AppBroadcastSignInState = function () {
this.notSignedIn = 0;
this.microsoftSignInInProgress = 1;
this.microsoftSignInComplete = 2;
this.oAuthSignInInProgress = 3;
this.oAuthSignInComplete = 4;
}
exports.AppBroadcastSignInState = new _AppBroadcastSignInState();
_AppBroadcastStreamState = function () {
this.initializing = 0;
this.streamReady = 1;
this.started = 2;
this.paused = 3;
this.terminated = 4;
}
exports.AppBroadcastStreamState = new _AppBroadcastStreamState();
_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();
_AppBroadcastVideoEncodingBitrateMode = function () {
this.custom = 0;
this.auto = 1;
}
exports.AppBroadcastVideoEncodingBitrateMode = new _AppBroadcastVideoEncodingBitrateMode();
_AppBroadcastVideoEncodingResolutionMode = function () {
this.custom = 0;
this.auto = 1;
}
exports.AppBroadcastVideoEncodingResolutionMode = new _AppBroadcastVideoEncodingResolutionMode();
_AppCaptureHistoricalBufferLengthUnit = function () {
this.megabytes = 0;
this.seconds = 1;
}
exports.AppCaptureHistoricalBufferLengthUnit = new _AppCaptureHistoricalBufferLengthUnit();
_AppCaptureMetadataPriority = function () {
this.informational = 0;
this.important = 1;
}
exports.AppCaptureMetadataPriority = new _AppCaptureMetadataPriority();
_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();
_AppCaptureVideoEncodingBitrateMode = function () {
this.custom = 0;
this.high = 1;
this.standard = 2;
}
exports.AppCaptureVideoEncodingBitrateMode = new _AppCaptureVideoEncodingBitrateMode();
_AppCaptureVideoEncodingFrameRateMode = function () {
this.standard = 0;
this.high = 1;
}
exports.AppCaptureVideoEncodingFrameRateMode = new _AppCaptureVideoEncodingFrameRateMode();
_AppCaptureVideoEncodingResolutionMode = function () {
this.custom = 0;
this.high = 1;
this.standard = 2;
}
exports.AppCaptureVideoEncodingResolutionMode = new _AppCaptureVideoEncodingResolutionMode();
_CameraCaptureUIMaxPhotoResolution = function () {
this.highestAvailable = 0;
this.verySmallQvga = 1;
this.smallVga = 2;
this.mediumXga = 3;
this.large3M = 4;
this.veryLarge5M = 5;
}
exports.CameraCaptureUIMaxPhotoResolution = new _CameraCaptureUIMaxPhotoResolution();
_CameraCaptureUIMaxVideoResolution = function () {
this.highestAvailable = 0;
this.lowDefinition = 1;
this.standardDefinition = 2;
this.highDefinition = 3;
}
exports.CameraCaptureUIMaxVideoResolution = new _CameraCaptureUIMaxVideoResolution();
_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();
_ForegroundActivationArgument = function () {
this.signInRequired = 0;
this.moreSettings = 1;
}
exports.ForegroundActivationArgument = new _ForegroundActivationArgument();
_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();
_GameBarServicesDisplayMode = function () {
this.windowed = 0;
this.fullScreenExclusive = 1;
}
exports.GameBarServicesDisplayMode = new _GameBarServicesDisplayMode();
_GameBarTargetCapturePolicy = function () {
this.enabledBySystem = 0;
this.enabledByUser = 1;
this.notEnabled = 2;
this.prohibitedBySystem = 3;
this.prohibitedByPublisher = 4;
}
exports.GameBarTargetCapturePolicy = new _GameBarTargetCapturePolicy();
_KnownVideoProfile = function () {
this.videoRecording = 0;
this.highQualityPhoto = 1;
this.balancedVideoAndPhoto = 2;
this.videoConferencing = 3;
this.photoSequence = 4;
this.highFrameRate = 5;
this.variablePhotoSequence = 6;
this.hdrWithWcgVideo = 7;
this.hdrWithWcgPhoto = 8;
this.videoHdr8 = 9;
this.compressedCamera = 10;
}
exports.KnownVideoProfile = new _KnownVideoProfile();
_MediaCaptureDeviceExclusiveControlReleaseMode = function () {
this.onDispose = 0;
this.onAllStreamsStopped = 1;
}
exports.MediaCaptureDeviceExclusiveControlReleaseMode = new _MediaCaptureDeviceExclusiveControlReleaseMode();
_MediaCaptureDeviceExclusiveControlStatus = function () {
this.exclusiveControlAvailable = 0;
this.sharedReadOnlyAvailable = 1;
}
exports.MediaCaptureDeviceExclusiveControlStatus = new _MediaCaptureDeviceExclusiveControlStatus();
_MediaCaptureMemoryPreference = function () {
this.auto = 0;
this.cpu = 1;
}
exports.MediaCaptureMemoryPreference = new _MediaCaptureMemoryPreference();
_MediaCaptureSharingMode = function () {
this.exclusiveControl = 0;
this.sharedReadOnly = 1;
}
exports.MediaCaptureSharingMode = new _MediaCaptureSharingMode();
_MediaCaptureThermalStatus = function () {
this.normal = 0;
this.overheated = 1;
}
exports.MediaCaptureThermalStatus = new _MediaCaptureThermalStatus();
_MediaCategory = function () {
this.other = 0;
this.communications = 1;
this.media = 2;
this.gameChat = 3;
this.speech = 4;
this.farFieldSpeech = 5;
this.uniformSpeech = 6;
this.voiceTyping = 7;
}
exports.MediaCategory = new _MediaCategory();
_MediaStreamType = function () {
this.videoPreview = 0;
this.videoRecord = 1;
this.audio = 2;
this.photo = 3;
this.metadata = 4;
}
exports.MediaStreamType = new _MediaStreamType();
_PhotoCaptureSource = function () {
this.auto = 0;
this.videoPreview = 1;
this.photo = 2;
}
exports.PhotoCaptureSource = new _PhotoCaptureSource();
_PowerlineFrequency = function () {
this.disabled = 0;
this.fiftyHertz = 1;
this.sixtyHertz = 2;
this.auto = 3;
}
exports.PowerlineFrequency = new _PowerlineFrequency();
_StreamingCaptureMode = function () {
this.audioAndVideo = 0;
this.audio = 1;
this.video = 2;
}
exports.StreamingCaptureMode = new _StreamingCaptureMode();
_VideoDeviceCharacteristic = function () {
this.allStreamsIndependent = 0;
this.previewRecordStreamsIdentical = 1;
this.previewPhotoStreamsIdentical = 2;
this.recordPhotoStreamsIdentical = 3;
this.allStreamsIdentical = 4;
}
exports.VideoDeviceCharacteristic = new _VideoDeviceCharacteristic();
_VideoRotation = function () {
this.none = 0;
this.clockwise90Degrees = 1;
this.clockwise180Degrees = 2;
this.clockwise270Degrees = 3;
}
exports.VideoRotation = new _VideoRotation();
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;
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;
AppBroadcastBackgroundService = (function () {
var cls = function AppBroadcastBackgroundService() {
this.viewerCount = new Number();
this.streamInfo = new AppBroadcastBackgroundServiceStreamInfo();
this.signInInfo = new AppBroadcastBackgroundServiceSignInInfo();
this.plugInState = new AppBroadcastPlugInState();
this.broadcastTitle = new String();
this.appId = new String();
this.titleId = new String();
this.broadcastLanguage = new String();
this.broadcastChannel = 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;
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;
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.reportProblemWithStream = function reportProblemWithStream() {
/// <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.AppBroadcastBackgroundServiceStreamInfo = AppBroadcastBackgroundServiceStreamInfo;
AppBroadcastCameraCaptureStateChangedEventArgs = (function () {
var cls = function AppBroadcastCameraCaptureStateChangedEventArgs() {
this.errorCode = new Number();
this.state = new AppBroadcastCameraCaptureState();
};
return cls;
}) ();
exports.AppBroadcastCameraCaptureStateChangedEventArgs = AppBroadcastCameraCaptureStateChangedEventArgs;
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;
AppBroadcastHeartbeatRequestedEventArgs = (function () {
var cls = function AppBroadcastHeartbeatRequestedEventArgs() {
this.handled = new Boolean();
};
return cls;
}) ();
exports.AppBroadcastHeartbeatRequestedEventArgs = AppBroadcastHeartbeatRequestedEventArgs;
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;
AppBroadcastMicrophoneCaptureStateChangedEventArgs = (function () {
var cls = function AppBroadcastMicrophoneCaptureStateChangedEventArgs() {
this.errorCode = new Number();
this.state = new AppBroadcastMicrophoneCaptureState();
};
return cls;
}) ();
exports.AppBroadcastMicrophoneCaptureStateChangedEventArgs = AppBroadcastMicrophoneCaptureStateChangedEventArgs;
AppBroadcastPlugIn = (function () {
var cls = function AppBroadcastPlugIn() {
this.appId = new String();
this.displayName = new String();
this.logo = new Object();
this.providerSettings = new AppBroadcastProviderSettings();
};
return cls;
}) ();
exports.AppBroadcastPlugIn = AppBroadcastPlugIn;
AppBroadcastPlugInManager = (function () {
var cls = function AppBroadcastPlugInManager() {
this.defaultPlugIn = new AppBroadcastPlugIn();
this.isBroadcastProviderAvailable = new Boolean();
this.plugInList = new Object();
};
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AppBroadcastPlugInManager" />
/// </signature>
return new AppBroadcastPlugInManager();
}
cls.getForUser = function getForUser(user) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="user" type="Object">A param.</param>
/// <returns type="AppBroadcastPlugInManager" />
/// </signature>
return new AppBroadcastPlugInManager();
}
return cls;
}) ();
exports.AppBroadcastPlugInManager = AppBroadcastPlugInManager;
AppBroadcastPlugInStateChangedEventArgs = (function () {
var cls = function AppBroadcastPlugInStateChangedEventArgs() {
this.plugInState = new AppBroadcastPlugInState();
};
return cls;
}) ();
exports.AppBroadcastPlugInStateChangedEventArgs = AppBroadcastPlugInStateChangedEventArgs;
AppBroadcastPreview = (function () {
var cls = function AppBroadcastPreview() {
this.errorCode = new Number();
this.previewState = new AppBroadcastPreviewState();
this.previewStreamReader = new AppBroadcastPreviewStreamReader();
};
cls.prototype.stopPreview = function stopPreview() {
/// <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.AppBroadcastPreview = AppBroadcastPreview;
AppBroadcastPreviewStateChangedEventArgs = (function () {
var cls = function AppBroadcastPreviewStateChangedEventArgs() {
this.errorCode = new Number();
this.previewState = new AppBroadcastPreviewState();
};
return cls;
}) ();
exports.AppBroadcastPreviewStateChangedEventArgs = AppBroadcastPreviewStateChangedEventArgs;
AppBroadcastPreviewStreamReader = (function () {
var cls = function AppBroadcastPreviewStreamReader() {
this.videoBitmapAlphaMode = new Number();
this.videoBitmapPixelFormat = new Number();
this.videoHeight = new Number();
this.videoStride = new Number();
this.videoWidth = new Number();
};
cls.prototype.tryGetNextVideoFrame = function tryGetNextVideoFrame() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AppBroadcastPreviewStreamVideoFrame" />
/// </signature>
return new AppBroadcastPreviewStreamVideoFrame();
}
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.AppBroadcastPreviewStreamReader = AppBroadcastPreviewStreamReader;
AppBroadcastPreviewStreamVideoFrame = (function () {
var cls = function AppBroadcastPreviewStreamVideoFrame() {
this.videoBuffer = new Object();
this.videoHeader = new AppBroadcastPreviewStreamVideoHeader();
};
return cls;
}) ();
exports.AppBroadcastPreviewStreamVideoFrame = AppBroadcastPreviewStreamVideoFrame;
AppBroadcastPreviewStreamVideoHeader = (function () {
var cls = function AppBroadcastPreviewStreamVideoHeader() {
this.absoluteTimestamp = new Date();
this.duration = new Number();
this.frameId = new Number();
this.relativeTimestamp = new Number();
};
return cls;
}) ();
exports.AppBroadcastPreviewStreamVideoHeader = AppBroadcastPreviewStreamVideoHeader;
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;
AppBroadcastServices = (function () {
var cls = function AppBroadcastServices() {
this.captureTargetType = new AppBroadcastCaptureTargetType();
this.broadcastTitle = new String();
this.broadcastLanguage = new String();
this.canCapture = new Boolean();
this.state = new AppBroadcastState();
this.userName = new String();
};
cls.prototype.enterBroadcastModeAsync = function enterBroadcastModeAsync(plugIn, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="plugIn" type="AppBroadcastPlugIn">A param.</param>
/// </signature>
}
cls.prototype.exitBroadcastMode = function exitBroadcastMode(reason) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="reason" type="AppBroadcastExitBroadcastModeReason">A param.</param>
/// </signature>
}
cls.prototype.startBroadcast = function startBroadcast() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.pauseBroadcast = function pauseBroadcast() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.resumeBroadcast = function resumeBroadcast() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.startPreview = function startPreview(desiredSize) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredSize" type="Object">A param.</param>
/// <returns type="AppBroadcastPreview" />
/// </signature>
return new AppBroadcastPreview();
}
return cls;
}) ();
exports.AppBroadcastServices = AppBroadcastServices;
AppBroadcastSignInStateChangedEventArgs = (function () {
var cls = function AppBroadcastSignInStateChangedEventArgs() {
this.result = new AppBroadcastSignInResult();
this.signInState = new AppBroadcastSignInState();
};
return cls;
}) ();
exports.AppBroadcastSignInStateChangedEventArgs = AppBroadcastSignInStateChangedEventArgs;
AppBroadcastState = (function () {
var cls = function AppBroadcastState() {
this.signInState = new AppBroadcastSignInState();
this.shouldCaptureMicrophone = new Boolean();
this.shouldCaptureCamera = new Boolean();
this.authenticationResult = new Object();
this.isCaptureTargetRunning = new Boolean();
this.microphoneCaptureError = new Number();
this.microphoneCaptureState = new AppBroadcastMicrophoneCaptureState();
this.oAuthCallbackUri = new Object();
this.oAuthRequestUri = new Object();
this.plugInState = new AppBroadcastPlugInState();
this.cameraCaptureError = new Number();
this.cameraCaptureState = new AppBroadcastCameraCaptureState();
this.encodedVideoSize = new Object();
this.streamState = new AppBroadcastStreamState();
this.terminationReason = new AppBroadcastTerminationReason();
this.terminationReasonPlugInSpecific = new Number();
this.viewerCount = new Number();
};
cls.prototype.restartMicrophoneCapture = function restartMicrophoneCapture() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.restartCameraCapture = function restartCameraCapture() {
/// <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.AppBroadcastState = AppBroadcastState;
AppBroadcastStreamAudioFrame = (function () {
var cls = function AppBroadcastStreamAudioFrame() {
this.audioBuffer = new Object();
this.audioHeader = new AppBroadcastStreamAudioHeader();
};
return cls;
}) ();
exports.AppBroadcastStreamAudioFrame = AppBroadcastStreamAudioFrame;
AppBroadcastStreamAudioHeader = (function () {
var cls = function AppBroadcastStreamAudioHeader() {
this.absoluteTimestamp = new Date();
this.duration = new Number();
this.frameId = new Number();
this.hasDiscontinuity = new Boolean();
this.relativeTimestamp = new Number();
};
return cls;
}) ();
exports.AppBroadcastStreamAudioHeader = AppBroadcastStreamAudioHeader;
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;
AppBroadcastStreamStateChangedEventArgs = (function () {
var cls = function AppBroadcastStreamStateChangedEventArgs() {
this.streamState = new AppBroadcastStreamState();
};
return cls;
}) ();
exports.AppBroadcastStreamStateChangedEventArgs = AppBroadcastStreamStateChangedEventArgs;
AppBroadcastStreamVideoFrame = (function () {
var cls = function AppBroadcastStreamVideoFrame() {
this.videoBuffer = new Object();
this.videoHeader = new AppBroadcastStreamVideoHeader();
};
return cls;
}) ();
exports.AppBroadcastStreamVideoFrame = AppBroadcastStreamVideoFrame;
AppBroadcastStreamVideoHeader = (function () {
var cls = function AppBroadcastStreamVideoHeader() {
this.absoluteTimestamp = new Date();
this.duration = new Number();
this.frameId = new Number();
this.hasDiscontinuity = new Boolean();
this.isKeyFrame = new Boolean();
this.relativeTimestamp = new Number();
};
return cls;
}) ();
exports.AppBroadcastStreamVideoHeader = AppBroadcastStreamVideoHeader;
AppBroadcastTriggerDetails = (function () {
var cls = function AppBroadcastTriggerDetails() {
this.backgroundService = new AppBroadcastBackgroundService();
};
return cls;
}) ();
exports.AppBroadcastTriggerDetails = AppBroadcastTriggerDetails;
AppBroadcastViewerCountChangedEventArgs = (function () {
var cls = function AppBroadcastViewerCountChangedEventArgs() {
this.viewerCount = new Number();
};
return cls;
}) ();
exports.AppBroadcastViewerCountChangedEventArgs = AppBroadcastViewerCountChangedEventArgs;
AppCapture = (function () {
var cls = function AppCapture() {
this.isCapturingAudio = new Boolean();
this.isCapturingVideo = new Boolean();
};
cls.setAllowedAsync = function setAllowedAsync(allowed, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="allowed" type="Boolean">A param.</param>
/// </signature>
}
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;
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();
this.toggleCameraCaptureKeyModifiers = new Number();
this.toggleCameraCaptureKey = new Number();
this.toggleBroadcastKeyModifiers = new Number();
this.toggleBroadcastKey = new Number();
};
return cls;
}) ();
exports.AppCaptureAlternateShortcutKeys = AppCaptureAlternateShortcutKeys;
AppCaptureDurationGeneratedEventArgs = (function () {
var cls = function AppCaptureDurationGeneratedEventArgs() {
this.duration = new Number();
};
return cls;
}) ();
exports.AppCaptureDurationGeneratedEventArgs = AppCaptureDurationGeneratedEventArgs;
AppCaptureFileGeneratedEventArgs = (function () {
var cls = function AppCaptureFileGeneratedEventArgs() {
this.file = new Object();
};
return cls;
}) ();
exports.AppCaptureFileGeneratedEventArgs = AppCaptureFileGeneratedEventArgs;
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;
AppCaptureMetadataWriter = (function () {
var cls = function AppCaptureMetadataWriter() {
this.remainingStorageBytesAvailable = new Number();
};
cls.prototype.addStringEvent = function addStringEvent(name, value, priority) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="String">A param.</param>
/// <param name="priority" type="AppCaptureMetadataPriority">A param.</param>
/// </signature>
}
cls.prototype.addInt32Event = function addInt32Event(name, value, priority) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="Number">A param.</param>
/// <param name="priority" type="AppCaptureMetadataPriority">A param.</param>
/// </signature>
}
cls.prototype.addDoubleEvent = function addDoubleEvent(name, value, priority) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="Number">A param.</param>
/// <param name="priority" type="AppCaptureMetadataPriority">A param.</param>
/// </signature>
}
cls.prototype.startStringState = function startStringState(name, value, priority) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="String">A param.</param>
/// <param name="priority" type="AppCaptureMetadataPriority">A param.</param>
/// </signature>
}
cls.prototype.startInt32State = function startInt32State(name, value, priority) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="Number">A param.</param>
/// <param name="priority" type="AppCaptureMetadataPriority">A param.</param>
/// </signature>
}
cls.prototype.startDoubleState = function startDoubleState(name, value, priority) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// <param name="value" type="Number">A param.</param>
/// <param name="priority" type="AppCaptureMetadataPriority">A param.</param>
/// </signature>
}
cls.prototype.stopState = function stopState(name) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="name" type="String">A param.</param>
/// </signature>
}
cls.prototype.stopAllStates = function stopAllStates() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.close = function close() {
}
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.AppCaptureMetadataWriter = AppCaptureMetadataWriter;
AppCaptureMicrophoneCaptureStateChangedEventArgs = (function () {
var cls = function AppCaptureMicrophoneCaptureStateChangedEventArgs() {
this.errorCode = new Number();
this.state = new AppCaptureMicrophoneCaptureState();
};
return cls;
}) ();
exports.AppCaptureMicrophoneCaptureStateChangedEventArgs = AppCaptureMicrophoneCaptureStateChangedEventArgs;
AppCaptureRecordOperation = (function () {
var cls = function AppCaptureRecordOperation() {
this.duration = new Number();
this.errorCode = new Number();
this.file = new Object();
this.isFileTruncated = new Boolean();
this.state = new AppCaptureRecordingState();
};
cls.prototype.stopRecording = function stopRecording() {
/// <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.AppCaptureRecordOperation = AppCaptureRecordOperation;
AppCaptureRecordingStateChangedEventArgs = (function () {
var cls = function AppCaptureRecordingStateChangedEventArgs() {
this.errorCode = new Number();
this.state = new AppCaptureRecordingState();
};
return cls;
}) ();
exports.AppCaptureRecordingStateChangedEventArgs = AppCaptureRecordingStateChangedEventArgs;
AppCaptureServices = (function () {
var cls = function AppCaptureServices() {
this.canCapture = new Boolean();
this.state = new AppCaptureState();
};
cls.prototype.record = function record() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AppCaptureRecordOperation" />
/// </signature>
return new AppCaptureRecordOperation();
}
cls.prototype.recordTimeSpan = function recordTimeSpan(startTime, duration) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="startTime" type="Date">A param.</param>
/// <param name="duration" type="Number">A param.</param>
/// <returns type="AppCaptureRecordOperation" />
/// </signature>
return new AppCaptureRecordOperation();
}
return cls;
}) ();
exports.AppCaptureServices = AppCaptureServices;
AppCaptureSettings = (function () {
var cls = function AppCaptureSettings() {
this.isHistoricalCaptureOnWirelessDisplayAllowed = new Boolean();
this.videoEncodingBitrateMode = new AppCaptureVideoEncodingBitrateMode();
this.isHistoricalCaptureOnBatteryAllowed = new Boolean();
this.isAudioCaptureEnabled = new Boolean();
this.isAppCaptureEnabled = new Boolean();
this.appCaptureDestinationFolder = new Object();
this.historicalBufferLength = new Number();
this.isHistoricalCaptureEnabled = new Boolean();
this.customVideoEncodingWidth = new Number();
this.customVideoEncodingHeight = new Number();
this.customVideoEncodingBitrate = new Number();
this.audioEncodingBitrate = new Number();
this.historicalBufferLengthUnit = new AppCaptureHistoricalBufferLengthUnit();
this.videoEncodingResolutionMode = new AppCaptureVideoEncodingResolutionMode();
this.screenshotDestinationFolder = new Object();
this.maximumRecordLength = new Number();
this.hasHardwareEncoder = new Boolean();
this.isCpuConstrained = new Boolean();
this.isMemoryConstrained = new Boolean();
this.isDisabledByPolicy = new Boolean();
this.alternateShortcutKeys = new AppCaptureAlternateShortcutKeys();
this.isGpuConstrained = new Boolean();
this.isMicrophoneCaptureEnabled = new Boolean();
this.videoEncodingFrameRateMode = new AppCaptureVideoEncodingFrameRateMode();
this.systemAudioGain = new Number();
this.microphoneGain = new Number();
this.isMicrophoneCaptureEnabledByDefault = new Boolean();
this.isEchoCancellationEnabled = new Boolean();
this.isCursorImageCaptureEnabled = new Boolean();
};
return cls;
}) ();
exports.AppCaptureSettings = AppCaptureSettings;
AppCaptureState = (function () {
var cls = function AppCaptureState() {
this.shouldCaptureMicrophone = new Boolean();
this.isHistoricalCaptureEnabled = new Boolean();
this.isTargetRunning = new Boolean();
this.microphoneCaptureError = new Number();
this.microphoneCaptureState = new AppCaptureMicrophoneCaptureState();
};
cls.prototype.restartMicrophoneCapture = function restartMicrophoneCapture() {
/// <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.AppCaptureState = AppCaptureState;
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;
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;
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;
CapturedFrame = (function () {
var cls = function CapturedFrame() {
this.height = new Number();
this.width = new Number();
this.bitmapProperties = new Object();
this.controlValues = new CapturedFrameControlValues();
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;
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;
CapturedPhoto = (function () {
var cls = function CapturedPhoto() {
this.frame = new CapturedFrame();
this.thumbnail = new CapturedFrame();
};
return cls;
}) ();
exports.CapturedPhoto = CapturedPhoto;
GameBarServices = (function () {
var cls = function GameBarServices() {
this.appBroadcastServices = new AppBroadcastServices();
this.appCaptureServices = new AppCaptureServices();
this.sessionId = new String();
this.targetCapturePolicy = new GameBarTargetCapturePolicy();
this.targetInfo = new GameBarServicesTargetInfo();
};
cls.prototype.enableCapture = function enableCapture() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.disableCapture = function disableCapture() {
/// <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.GameBarServices = GameBarServices;
GameBarServicesCommandEventArgs = (function () {
var cls = function GameBarServicesCommandEventArgs() {
this.command = new GameBarCommand();
this.origin = new GameBarCommandOrigin();
};
return cls;
}) ();
exports.GameBarServicesCommandEventArgs = GameBarServicesCommandEventArgs;
GameBarServicesManager = (function () {
var cls = func