Pinsave/counterstrike
1
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABLITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference no-default-lib="true"/>18 19/////////////////////////////20/// Window APIs21/////////////////////////////22 23interface AddEventListenerOptions extends EventListenerOptions {24 once?: boolean;25 passive?: boolean;26 signal?: AbortSignal;27}28 29interface AddressErrors {30 addressLine?: string;31 city?: string;32 country?: string;33 dependentLocality?: string;34 organization?: string;35 phone?: string;36 postalCode?: string;37 recipient?: string;38 region?: string;39 sortingCode?: string;40}41 42interface AesCbcParams extends Algorithm {43 iv: BufferSource;44}45 46interface AesCtrParams extends Algorithm {47 counter: BufferSource;48 length: number;49}50 51interface AesDerivedKeyParams extends Algorithm {52 length: number;53}54 55interface AesGcmParams extends Algorithm {56 additionalData?: BufferSource;57 iv: BufferSource;58 tagLength?: number;59}60 61interface AesKeyAlgorithm extends KeyAlgorithm {62 length: number;63}64 65interface AesKeyGenParams extends Algorithm {66 length: number;67}68 69interface Algorithm {70 name: string;71}72 73interface AnalyserOptions extends AudioNodeOptions {74 fftSize?: number;75 maxDecibels?: number;76 minDecibels?: number;77 smoothingTimeConstant?: number;78}79 80interface AnimationEventInit extends EventInit {81 animationName?: string;82 elapsedTime?: number;83 pseudoElement?: string;84}85 86interface AnimationPlaybackEventInit extends EventInit {87 currentTime?: CSSNumberish | null;88 timelineTime?: CSSNumberish | null;89}90 91interface AssignedNodesOptions {92 flatten?: boolean;93}94 95interface AudioBufferOptions {96 length: number;97 numberOfChannels?: number;98 sampleRate: number;99}100 101interface AudioBufferSourceOptions {102 buffer?: AudioBuffer | null;103 detune?: number;104 loop?: boolean;105 loopEnd?: number;106 loopStart?: number;107 playbackRate?: number;108}109 110interface AudioConfiguration {111 bitrate?: number;112 channels?: string;113 contentType: string;114 samplerate?: number;115 spatialRendering?: boolean;116}117 118interface AudioContextOptions {119 latencyHint?: AudioContextLatencyCategory | number;120 sampleRate?: number;121}122 123interface AudioDataCopyToOptions {124 format?: AudioSampleFormat;125 frameCount?: number;126 frameOffset?: number;127 planeIndex: number;128}129 130interface AudioDataInit {131 data: BufferSource;132 format: AudioSampleFormat;133 numberOfChannels: number;134 numberOfFrames: number;135 sampleRate: number;136 timestamp: number;137 transfer?: ArrayBuffer[];138}139 140interface AudioDecoderConfig {141 codec: string;142 description?: AllowSharedBufferSource;143 numberOfChannels: number;144 sampleRate: number;145}146 147interface AudioDecoderInit {148 error: WebCodecsErrorCallback;149 output: AudioDataOutputCallback;150}151 152interface AudioDecoderSupport {153 config?: AudioDecoderConfig;154 supported?: boolean;155}156 157interface AudioEncoderConfig {158 bitrate?: number;159 bitrateMode?: BitrateMode;160 codec: string;161 numberOfChannels: number;162 opus?: OpusEncoderConfig;163 sampleRate: number;164}165 166interface AudioEncoderInit {167 error: WebCodecsErrorCallback;168 output: EncodedAudioChunkOutputCallback;169}170 171interface AudioEncoderSupport {172 config?: AudioEncoderConfig;173 supported?: boolean;174}175 176interface AudioNodeOptions {177 channelCount?: number;178 channelCountMode?: ChannelCountMode;179 channelInterpretation?: ChannelInterpretation;180}181 182interface AudioProcessingEventInit extends EventInit {183 inputBuffer: AudioBuffer;184 outputBuffer: AudioBuffer;185 playbackTime: number;186}187 188interface AudioTimestamp {189 contextTime?: number;190 performanceTime?: DOMHighResTimeStamp;191}192 193interface AudioWorkletNodeOptions extends AudioNodeOptions {194 numberOfInputs?: number;195 numberOfOutputs?: number;196 outputChannelCount?: number[];197 parameterData?: Record<string, number>;198 processorOptions?: any;199}200 201interface AuthenticationExtensionsClientInputs {202 appid?: string;203 credProps?: boolean;204 credentialProtectionPolicy?: string;205 enforceCredentialProtectionPolicy?: boolean;206 hmacCreateSecret?: boolean;207 largeBlob?: AuthenticationExtensionsLargeBlobInputs;208 minPinLength?: boolean;209 prf?: AuthenticationExtensionsPRFInputs;210}211 212interface AuthenticationExtensionsClientInputsJSON {213 appid?: string;214 credProps?: boolean;215 largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;216 prf?: AuthenticationExtensionsPRFInputsJSON;217}218 219interface AuthenticationExtensionsClientOutputs {220 appid?: boolean;221 credProps?: CredentialPropertiesOutput;222 hmacCreateSecret?: boolean;223 largeBlob?: AuthenticationExtensionsLargeBlobOutputs;224 prf?: AuthenticationExtensionsPRFOutputs;225}226 227interface AuthenticationExtensionsLargeBlobInputs {228 read?: boolean;229 support?: string;230 write?: BufferSource;231}232 233interface AuthenticationExtensionsLargeBlobInputsJSON {234 read?: boolean;235 support?: string;236 write?: Base64URLString;237}238 239interface AuthenticationExtensionsLargeBlobOutputs {240 blob?: ArrayBuffer;241 supported?: boolean;242 written?: boolean;243}244 245interface AuthenticationExtensionsPRFInputs {246 eval?: AuthenticationExtensionsPRFValues;247 evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;248}249 250interface AuthenticationExtensionsPRFInputsJSON {251 eval?: AuthenticationExtensionsPRFValuesJSON;252 evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;253}254 255interface AuthenticationExtensionsPRFOutputs {256 enabled?: boolean;257 results?: AuthenticationExtensionsPRFValues;258}259 260interface AuthenticationExtensionsPRFValues {261 first: BufferSource;262 second?: BufferSource;263}264 265interface AuthenticationExtensionsPRFValuesJSON {266 first: Base64URLString;267 second?: Base64URLString;268}269 270interface AuthenticatorSelectionCriteria {271 authenticatorAttachment?: AuthenticatorAttachment;272 requireResidentKey?: boolean;273 residentKey?: ResidentKeyRequirement;274 userVerification?: UserVerificationRequirement;275}276 277interface AvcEncoderConfig {278 format?: AvcBitstreamFormat;279}280 281interface BiquadFilterOptions extends AudioNodeOptions {282 Q?: number;283 detune?: number;284 frequency?: number;285 gain?: number;286 type?: BiquadFilterType;287}288 289interface BlobEventInit extends EventInit {290 data: Blob;291 timecode?: DOMHighResTimeStamp;292}293 294interface BlobPropertyBag {295 endings?: EndingType;296 type?: string;297}298 299interface CSSMatrixComponentOptions {300 is2D?: boolean;301}302 303interface CSSNumericType {304 angle?: number;305 flex?: number;306 frequency?: number;307 length?: number;308 percent?: number;309 percentHint?: CSSNumericBaseType;310 resolution?: number;311 time?: number;312}313 314interface CSSStyleSheetInit {315 baseURL?: string;316 disabled?: boolean;317 media?: MediaList | string;318}319 320interface CacheQueryOptions {321 ignoreMethod?: boolean;322 ignoreSearch?: boolean;323 ignoreVary?: boolean;324}325 326interface CanvasRenderingContext2DSettings {327 alpha?: boolean;328 colorSpace?: PredefinedColorSpace;329 desynchronized?: boolean;330 willReadFrequently?: boolean;331}332 333interface CaretPositionFromPointOptions {334 shadowRoots?: ShadowRoot[];335}336 337interface ChannelMergerOptions extends AudioNodeOptions {338 numberOfInputs?: number;339}340 341interface ChannelSplitterOptions extends AudioNodeOptions {342 numberOfOutputs?: number;343}344 345interface CheckVisibilityOptions {346 checkOpacity?: boolean;347 checkVisibilityCSS?: boolean;348 contentVisibilityAuto?: boolean;349 opacityProperty?: boolean;350 visibilityProperty?: boolean;351}352 353interface ClientQueryOptions {354 includeUncontrolled?: boolean;355 type?: ClientTypes;356}357 358interface ClipboardEventInit extends EventInit {359 clipboardData?: DataTransfer | null;360}361 362interface ClipboardItemOptions {363 presentationStyle?: PresentationStyle;364}365 366interface CloseEventInit extends EventInit {367 code?: number;368 reason?: string;369 wasClean?: boolean;370}371 372interface CompositionEventInit extends UIEventInit {373 data?: string;374}375 376interface ComputedEffectTiming extends EffectTiming {377 activeDuration?: CSSNumberish;378 currentIteration?: number | null;379 endTime?: CSSNumberish;380 localTime?: CSSNumberish | null;381 progress?: number | null;382 startTime?: CSSNumberish;383}384 385interface ComputedKeyframe {386 composite: CompositeOperationOrAuto;387 computedOffset: number;388 easing: string;389 offset: number | null;390 [property: string]: string | number | null | undefined;391}392 393interface ConstantSourceOptions {394 offset?: number;395}396 397interface ConstrainBooleanParameters {398 exact?: boolean;399 ideal?: boolean;400}401 402interface ConstrainDOMStringParameters {403 exact?: string | string[];404 ideal?: string | string[];405}406 407interface ConstrainDoubleRange extends DoubleRange {408 exact?: number;409 ideal?: number;410}411 412interface ConstrainULongRange extends ULongRange {413 exact?: number;414 ideal?: number;415}416 417interface ContentVisibilityAutoStateChangeEventInit extends EventInit {418 skipped?: boolean;419}420 421interface ConvolverOptions extends AudioNodeOptions {422 buffer?: AudioBuffer | null;423 disableNormalization?: boolean;424}425 426interface CookieChangeEventInit extends EventInit {427 changed?: CookieList;428 deleted?: CookieList;429}430 431interface CookieInit {432 domain?: string | null;433 expires?: DOMHighResTimeStamp | null;434 name: string;435 partitioned?: boolean;436 path?: string;437 sameSite?: CookieSameSite;438 value: string;439}440 441interface CookieListItem {442 name?: string;443 value?: string;444}445 446interface CookieStoreDeleteOptions {447 domain?: string | null;448 name: string;449 partitioned?: boolean;450 path?: string;451}452 453interface CookieStoreGetOptions {454 name?: string;455 url?: string;456}457 458interface CredentialCreationOptions {459 publicKey?: PublicKeyCredentialCreationOptions;460 signal?: AbortSignal;461}462 463interface CredentialPropertiesOutput {464 rk?: boolean;465}466 467interface CredentialRequestOptions {468 mediation?: CredentialMediationRequirement;469 publicKey?: PublicKeyCredentialRequestOptions;470 signal?: AbortSignal;471}472 473interface CryptoKeyPair {474 privateKey: CryptoKey;475 publicKey: CryptoKey;476}477 478interface CustomEventInit<T = any> extends EventInit {479 detail?: T;480}481 482interface DOMMatrix2DInit {483 a?: number;484 b?: number;485 c?: number;486 d?: number;487 e?: number;488 f?: number;489 m11?: number;490 m12?: number;491 m21?: number;492 m22?: number;493 m41?: number;494 m42?: number;495}496 497interface DOMMatrixInit extends DOMMatrix2DInit {498 is2D?: boolean;499 m13?: number;500 m14?: number;501 m23?: number;502 m24?: number;503 m31?: number;504 m32?: number;505 m33?: number;506 m34?: number;507 m43?: number;508 m44?: number;509}510 511interface DOMPointInit {512 w?: number;513 x?: number;514 y?: number;515 z?: number;516}517 518interface DOMQuadInit {519 p1?: DOMPointInit;520 p2?: DOMPointInit;521 p3?: DOMPointInit;522 p4?: DOMPointInit;523}524 525interface DOMRectInit {526 height?: number;527 width?: number;528 x?: number;529 y?: number;530}531 532interface DelayOptions extends AudioNodeOptions {533 delayTime?: number;534 maxDelayTime?: number;535}536 537interface DeviceMotionEventAccelerationInit {538 x?: number | null;539 y?: number | null;540 z?: number | null;541}542 543interface DeviceMotionEventInit extends EventInit {544 acceleration?: DeviceMotionEventAccelerationInit;545 accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;546 interval?: number;547 rotationRate?: DeviceMotionEventRotationRateInit;548}549 550interface DeviceMotionEventRotationRateInit {551 alpha?: number | null;552 beta?: number | null;553 gamma?: number | null;554}555 556interface DeviceOrientationEventInit extends EventInit {557 absolute?: boolean;558 alpha?: number | null;559 beta?: number | null;560 gamma?: number | null;561}562 563interface DisplayMediaStreamOptions {564 audio?: boolean | MediaTrackConstraints;565 video?: boolean | MediaTrackConstraints;566}567 568interface DocumentTimelineOptions {569 originTime?: DOMHighResTimeStamp;570}571 572interface DoubleRange {573 max?: number;574 min?: number;575}576 577interface DragEventInit extends MouseEventInit {578 dataTransfer?: DataTransfer | null;579}580 581interface DynamicsCompressorOptions extends AudioNodeOptions {582 attack?: number;583 knee?: number;584 ratio?: number;585 release?: number;586 threshold?: number;587}588 589interface EcKeyAlgorithm extends KeyAlgorithm {590 namedCurve: NamedCurve;591}592 593interface EcKeyGenParams extends Algorithm {594 namedCurve: NamedCurve;595}596 597interface EcKeyImportParams extends Algorithm {598 namedCurve: NamedCurve;599}600 601interface EcdhKeyDeriveParams extends Algorithm {602 public: CryptoKey;603}604 605interface EcdsaParams extends Algorithm {606 hash: HashAlgorithmIdentifier;607}608 609interface EffectTiming {610 delay?: number;611 direction?: PlaybackDirection;612 duration?: number | CSSNumericValue | string;613 easing?: string;614 endDelay?: number;615 fill?: FillMode;616 iterationStart?: number;617 iterations?: number;618 playbackRate?: number;619}620 621interface ElementCreationOptions {622 customElementRegistry?: CustomElementRegistry;623 is?: string;624}625 626interface ElementDefinitionOptions {627 extends?: string;628}629 630interface EncodedAudioChunkInit {631 data: AllowSharedBufferSource;632 duration?: number;633 timestamp: number;634 transfer?: ArrayBuffer[];635 type: EncodedAudioChunkType;636}637 638interface EncodedAudioChunkMetadata {639 decoderConfig?: AudioDecoderConfig;640}641 642interface EncodedVideoChunkInit {643 data: AllowSharedBufferSource;644 duration?: number;645 timestamp: number;646 type: EncodedVideoChunkType;647}648 649interface EncodedVideoChunkMetadata {650 decoderConfig?: VideoDecoderConfig;651}652 653interface ErrorEventInit extends EventInit {654 colno?: number;655 error?: any;656 filename?: string;657 lineno?: number;658 message?: string;659}660 661interface EventInit {662 bubbles?: boolean;663 cancelable?: boolean;664 composed?: boolean;665}666 667interface EventListenerOptions {668 capture?: boolean;669}670 671interface EventModifierInit extends UIEventInit {672 altKey?: boolean;673 ctrlKey?: boolean;674 metaKey?: boolean;675 modifierAltGraph?: boolean;676 modifierCapsLock?: boolean;677 modifierFn?: boolean;678 modifierFnLock?: boolean;679 modifierHyper?: boolean;680 modifierNumLock?: boolean;681 modifierScrollLock?: boolean;682 modifierSuper?: boolean;683 modifierSymbol?: boolean;684 modifierSymbolLock?: boolean;685 shiftKey?: boolean;686}687 688interface EventSourceInit {689 withCredentials?: boolean;690}691 692interface FilePropertyBag extends BlobPropertyBag {693 lastModified?: number;694}695 696interface FileSystemCreateWritableOptions {697 keepExistingData?: boolean;698}699 700interface FileSystemFlags {701 create?: boolean;702 exclusive?: boolean;703}704 705interface FileSystemGetDirectoryOptions {706 create?: boolean;707}708 709interface FileSystemGetFileOptions {710 create?: boolean;711}712 713interface FileSystemRemoveOptions {714 recursive?: boolean;715}716 717interface FocusEventInit extends UIEventInit {718 relatedTarget?: EventTarget | null;719}720 721interface FocusOptions {722 preventScroll?: boolean;723}724 725interface FontFaceDescriptors {726 ascentOverride?: string;727 descentOverride?: string;728 display?: FontDisplay;729 featureSettings?: string;730 lineGapOverride?: string;731 stretch?: string;732 style?: string;733 unicodeRange?: string;734 weight?: string;735}736 737interface FontFaceSetLoadEventInit extends EventInit {738 fontfaces?: FontFace[];739}740 741interface FormDataEventInit extends EventInit {742 formData: FormData;743}744 745interface FullscreenOptions {746 navigationUI?: FullscreenNavigationUI;747}748 749interface GainOptions extends AudioNodeOptions {750 gain?: number;751}752 753interface GamepadEffectParameters {754 duration?: number;755 leftTrigger?: number;756 rightTrigger?: number;757 startDelay?: number;758 strongMagnitude?: number;759 weakMagnitude?: number;760}761 762interface GamepadEventInit extends EventInit {763 gamepad: Gamepad;764}765 766interface GetAnimationsOptions {767 subtree?: boolean;768}769 770interface GetComposedRangesOptions {771 shadowRoots?: ShadowRoot[];772}773 774interface GetHTMLOptions {775 serializableShadowRoots?: boolean;776 shadowRoots?: ShadowRoot[];777}778 779interface GetNotificationOptions {780 tag?: string;781}782 783interface GetRootNodeOptions {784 composed?: boolean;785}786 787interface HashChangeEventInit extends EventInit {788 newURL?: string;789 oldURL?: string;790}791 792interface HkdfParams extends Algorithm {793 hash: HashAlgorithmIdentifier;794 info: BufferSource;795 salt: BufferSource;796}797 798interface HmacImportParams extends Algorithm {799 hash: HashAlgorithmIdentifier;800 length?: number;801}802 803interface HmacKeyAlgorithm extends KeyAlgorithm {804 hash: KeyAlgorithm;805 length: number;806}807 808interface HmacKeyGenParams extends Algorithm {809 hash: HashAlgorithmIdentifier;810 length?: number;811}812 813interface IDBDatabaseInfo {814 name?: string;815 version?: number;816}817 818interface IDBIndexParameters {819 multiEntry?: boolean;820 unique?: boolean;821}822 823interface IDBObjectStoreParameters {824 autoIncrement?: boolean;825 keyPath?: string | string[] | null;826}827 828interface IDBTransactionOptions {829 durability?: IDBTransactionDurability;830}831 832interface IDBVersionChangeEventInit extends EventInit {833 newVersion?: number | null;834 oldVersion?: number;835}836 837interface IIRFilterOptions extends AudioNodeOptions {838 feedback: number[];839 feedforward: number[];840}841 842interface IdleRequestOptions {843 timeout?: number;844}845 846interface ImageBitmapOptions {847 colorSpaceConversion?: ColorSpaceConversion;848 imageOrientation?: ImageOrientation;849 premultiplyAlpha?: PremultiplyAlpha;850 resizeHeight?: number;851 resizeQuality?: ResizeQuality;852 resizeWidth?: number;853}854 855interface ImageBitmapRenderingContextSettings {856 alpha?: boolean;857}858 859interface ImageDataSettings {860 colorSpace?: PredefinedColorSpace;861}862 863interface ImageDecodeOptions {864 completeFramesOnly?: boolean;865 frameIndex?: number;866}867 868interface ImageDecodeResult {869 complete: boolean;870 image: VideoFrame;871}872 873interface ImageDecoderInit {874 colorSpaceConversion?: ColorSpaceConversion;875 data: ImageBufferSource;876 desiredHeight?: number;877 desiredWidth?: number;878 preferAnimation?: boolean;879 transfer?: ArrayBuffer[];880 type: string;881}882 883interface ImageEncodeOptions {884 quality?: number;885 type?: string;886}887 888interface ImportNodeOptions {889 customElementRegistry?: CustomElementRegistry;890 selfOnly?: boolean;891}892 893interface InputEventInit extends UIEventInit {894 data?: string | null;895 dataTransfer?: DataTransfer | null;896 inputType?: string;897 isComposing?: boolean;898 targetRanges?: StaticRange[];899}900 901interface IntersectionObserverInit {902 root?: Element | Document | null;903 rootMargin?: string;904 threshold?: number | number[];905}906 907interface JsonWebKey {908 alg?: string;909 crv?: string;910 d?: string;911 dp?: string;912 dq?: string;913 e?: string;914 ext?: boolean;915 k?: string;916 key_ops?: string[];917 kty?: string;918 n?: string;919 oth?: RsaOtherPrimesInfo[];920 p?: string;921 q?: string;922 qi?: string;923 use?: string;924 x?: string;925 y?: string;926}927 928interface KeyAlgorithm {929 name: string;930}931 932interface KeySystemTrackConfiguration {933 robustness?: string;934}935 936interface KeyboardEventInit extends EventModifierInit {937 /** @deprecated */938 charCode?: number;939 code?: string;940 isComposing?: boolean;941 key?: string;942 /** @deprecated */943 keyCode?: number;944 location?: number;945 repeat?: boolean;946}947 948interface Keyframe {949 composite?: CompositeOperationOrAuto;950 easing?: string;951 offset?: number | null;952 [property: string]: string | number | null | undefined;953}954 955interface KeyframeAnimationOptions extends KeyframeEffectOptions {956 id?: string;957 timeline?: AnimationTimeline | null;958}959 960interface KeyframeEffectOptions extends EffectTiming {961 composite?: CompositeOperation;962 iterationComposite?: IterationCompositeOperation;963 pseudoElement?: string | null;964}965 966interface LockInfo {967 clientId?: string;968 mode?: LockMode;969 name?: string;970}971 972interface LockManagerSnapshot {973 held?: LockInfo[];974 pending?: LockInfo[];975}976 977interface LockOptions {978 ifAvailable?: boolean;979 mode?: LockMode;980 signal?: AbortSignal;981 steal?: boolean;982}983 984interface MIDIConnectionEventInit extends EventInit {985 port?: MIDIPort;986}987 988interface MIDIMessageEventInit extends EventInit {989 data?: Uint8Array<ArrayBuffer>;990}991 992interface MIDIOptions {993 software?: boolean;994 sysex?: boolean;995}996 997interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {998 keySystemAccess: MediaKeySystemAccess | null;999}1000 1001interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {1002}1003 1004interface MediaCapabilitiesInfo {1005 powerEfficient: boolean;1006 smooth: boolean;1007 supported: boolean;1008}1009 1010interface MediaCapabilitiesKeySystemConfiguration {1011 audio?: KeySystemTrackConfiguration;1012 distinctiveIdentifier?: MediaKeysRequirement;1013 initDataType?: string;1014 keySystem: string;1015 persistentState?: MediaKeysRequirement;1016 sessionTypes?: string[];1017 video?: KeySystemTrackConfiguration;1018}1019 1020interface MediaConfiguration {1021 audio?: AudioConfiguration;1022 video?: VideoConfiguration;1023}1024 1025interface MediaDecodingConfiguration extends MediaConfiguration {1026 keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;1027 type: MediaDecodingType;1028}1029 1030interface MediaElementAudioSourceOptions {1031 mediaElement: HTMLMediaElement;1032}1033 1034interface MediaEncodingConfiguration extends MediaConfiguration {1035 type: MediaEncodingType;1036}1037 1038interface MediaEncryptedEventInit extends EventInit {1039 initData?: ArrayBuffer | null;1040 initDataType?: string;1041}1042 1043interface MediaImage {1044 sizes?: string;1045 src: string;1046 type?: string;1047}1048 1049interface MediaKeyMessageEventInit extends EventInit {1050 message: ArrayBuffer;1051 messageType: MediaKeyMessageType;1052}1053 1054interface MediaKeySystemConfiguration {1055 audioCapabilities?: MediaKeySystemMediaCapability[];1056 distinctiveIdentifier?: MediaKeysRequirement;1057 initDataTypes?: string[];1058 label?: string;1059 persistentState?: MediaKeysRequirement;1060 sessionTypes?: string[];1061 videoCapabilities?: MediaKeySystemMediaCapability[];1062}1063 1064interface MediaKeySystemMediaCapability {1065 contentType?: string;1066 encryptionScheme?: string | null;1067 robustness?: string;1068}1069 1070interface MediaKeysPolicy {1071 minHdcpVersion?: string;1072}1073 1074interface MediaMetadataInit {1075 album?: string;1076 artist?: string;1077 artwork?: MediaImage[];1078 title?: string;1079}1080 1081interface MediaPositionState {1082 duration?: number;1083 playbackRate?: number;1084 position?: number;1085}1086 1087interface MediaQueryListEventInit extends EventInit {1088 matches?: boolean;1089 media?: string;1090}1091 1092interface MediaRecorderOptions {1093 audioBitsPerSecond?: number;1094 bitsPerSecond?: number;1095 mimeType?: string;1096 videoBitsPerSecond?: number;1097}1098 1099interface MediaSessionActionDetails {1100 action: MediaSessionAction;1101 fastSeek?: boolean;1102 seekOffset?: number;1103 seekTime?: number;1104}1105 1106interface MediaSettingsRange {1107 max?: number;1108 min?: number;1109 step?: number;1110}1111 1112interface MediaStreamAudioSourceOptions {1113 mediaStream: MediaStream;1114}1115 1116interface MediaStreamConstraints {1117 audio?: boolean | MediaTrackConstraints;1118 peerIdentity?: string;1119 preferCurrentTab?: boolean;1120 video?: boolean | MediaTrackConstraints;1121}1122 1123interface MediaStreamTrackEventInit extends EventInit {1124 track: MediaStreamTrack;1125}1126 1127interface MediaTrackCapabilities {1128 aspectRatio?: DoubleRange;1129 autoGainControl?: boolean[];1130 backgroundBlur?: boolean[];1131 channelCount?: ULongRange;1132 deviceId?: string;1133 displaySurface?: string;1134 echoCancellation?: boolean[];1135 facingMode?: string[];1136 frameRate?: DoubleRange;1137 groupId?: string;1138 height?: ULongRange;1139 noiseSuppression?: boolean[];1140 sampleRate?: ULongRange;1141 sampleSize?: ULongRange;1142 width?: ULongRange;1143}1144 1145interface MediaTrackConstraintSet {1146 aspectRatio?: ConstrainDouble;1147 autoGainControl?: ConstrainBoolean;1148 backgroundBlur?: ConstrainBoolean;1149 channelCount?: ConstrainULong;1150 deviceId?: ConstrainDOMString;1151 displaySurface?: ConstrainDOMString;1152 echoCancellation?: ConstrainBoolean;1153 facingMode?: ConstrainDOMString;1154 frameRate?: ConstrainDouble;1155 groupId?: ConstrainDOMString;1156 height?: ConstrainULong;1157 noiseSuppression?: ConstrainBoolean;1158 sampleRate?: ConstrainULong;1159 sampleSize?: ConstrainULong;1160 width?: ConstrainULong;1161}1162 1163interface MediaTrackConstraints extends MediaTrackConstraintSet {1164 advanced?: MediaTrackConstraintSet[];1165}1166 1167interface MediaTrackSettings {1168 aspectRatio?: number;1169 autoGainControl?: boolean;1170 backgroundBlur?: boolean;1171 channelCount?: number;1172 deviceId?: string;1173 displaySurface?: string;1174 echoCancellation?: boolean;1175 facingMode?: string;1176 frameRate?: number;1177 groupId?: string;1178 height?: number;1179 noiseSuppression?: boolean;1180 sampleRate?: number;1181 sampleSize?: number;1182 torch?: boolean;1183 whiteBalanceMode?: string;1184 width?: number;1185 zoom?: number;1186}1187 1188interface MediaTrackSupportedConstraints {1189 aspectRatio?: boolean;1190 autoGainControl?: boolean;1191 backgroundBlur?: boolean;1192 channelCount?: boolean;1193 deviceId?: boolean;1194 displaySurface?: boolean;1195 echoCancellation?: boolean;1196 facingMode?: boolean;1197 frameRate?: boolean;1198 groupId?: boolean;1199 height?: boolean;1200 noiseSuppression?: boolean;