1 module spasm.bindings.mediastream; 2 3 import spasm.types; 4 import spasm.bindings.dom; 5 import spasm.bindings.html; 6 7 @safe: 8 nothrow: 9 10 struct Capabilities { 11 nothrow: 12 JsHandle handle; 13 alias handle this; 14 this(Handle h) { 15 this.handle = JsHandle(h); 16 } 17 static auto create() { 18 return Capabilities(spasm_add__object()); 19 } 20 } 21 alias ConstrainBoolean = SumType!(bool, ConstrainBooleanParameters); 22 struct ConstrainBooleanParameters { 23 nothrow: 24 JsHandle handle; 25 alias handle this; 26 this(Handle h) { 27 this.handle = JsHandle(h); 28 } 29 static auto create() { 30 return ConstrainBooleanParameters(spasm_add__object()); 31 } 32 void exact()(bool exact) { 33 ConstrainBooleanParameters_exact_Set(this.handle, exact); 34 } 35 auto exact()() { 36 return ConstrainBooleanParameters_exact_Get(this.handle); 37 } 38 void ideal()(bool ideal) { 39 ConstrainBooleanParameters_ideal_Set(this.handle, ideal); 40 } 41 auto ideal()() { 42 return ConstrainBooleanParameters_ideal_Get(this.handle); 43 } 44 } 45 alias ConstrainDOMString = SumType!(string, Sequence!(string), ConstrainDOMStringParameters); 46 struct ConstrainDOMStringParameters { 47 nothrow: 48 JsHandle handle; 49 alias handle this; 50 this(Handle h) { 51 this.handle = JsHandle(h); 52 } 53 static auto create() { 54 return ConstrainDOMStringParameters(spasm_add__object()); 55 } 56 void exact()(scope ref SumType!(string, Sequence!(string)) exact) { 57 ConstrainDOMStringParameters_exact_Set(this.handle, exact); 58 } 59 auto exact()() { 60 return ConstrainDOMStringParameters_exact_Get(this.handle); 61 } 62 void ideal()(scope ref SumType!(string, Sequence!(string)) ideal) { 63 ConstrainDOMStringParameters_ideal_Set(this.handle, ideal); 64 } 65 auto ideal()() { 66 return ConstrainDOMStringParameters_ideal_Get(this.handle); 67 } 68 } 69 alias ConstrainDouble = SumType!(double, ConstrainDoubleRange); 70 struct ConstrainDoubleRange { 71 nothrow: 72 spasm.bindings.mediastream.DoubleRange _parent; 73 alias _parent this; 74 this(Handle h) { 75 _parent = .DoubleRange(h); 76 } 77 static auto create() { 78 return ConstrainDoubleRange(spasm_add__object()); 79 } 80 void exact()(double exact) { 81 ConstrainDoubleRange_exact_Set(this._parent, exact); 82 } 83 auto exact()() { 84 return ConstrainDoubleRange_exact_Get(this._parent); 85 } 86 void ideal()(double ideal) { 87 ConstrainDoubleRange_ideal_Set(this._parent, ideal); 88 } 89 auto ideal()() { 90 return ConstrainDoubleRange_ideal_Get(this._parent); 91 } 92 } 93 alias ConstrainULong = SumType!(uint, ConstrainULongRange); 94 struct ConstrainULongRange { 95 nothrow: 96 spasm.bindings.mediastream.ULongRange _parent; 97 alias _parent this; 98 this(Handle h) { 99 _parent = .ULongRange(h); 100 } 101 static auto create() { 102 return ConstrainULongRange(spasm_add__object()); 103 } 104 void exact()(uint exact) { 105 ConstrainULongRange_exact_Set(this._parent, exact); 106 } 107 auto exact()() { 108 return ConstrainULongRange_exact_Get(this._parent); 109 } 110 void ideal()(uint ideal) { 111 ConstrainULongRange_ideal_Set(this._parent, ideal); 112 } 113 auto ideal()() { 114 return ConstrainULongRange_ideal_Get(this._parent); 115 } 116 } 117 struct ConstrainablePattern { 118 nothrow: 119 JsHandle handle; 120 alias handle this; 121 this(Handle h) { 122 this.handle = JsHandle(h); 123 } 124 auto getCapabilities()() { 125 return Capabilities(ConstrainablePattern_getCapabilities(this.handle)); 126 } 127 auto getConstraints()() { 128 return Constraints(ConstrainablePattern_getConstraints(this.handle)); 129 } 130 auto getSettings()() { 131 return Settings(ConstrainablePattern_getSettings(this.handle)); 132 } 133 auto applyConstraints()(scope ref Constraints constraints) { 134 return Promise!(void)(ConstrainablePattern_applyConstraints(this.handle, constraints._parent)); 135 } 136 auto applyConstraints()() { 137 return Promise!(void)(ConstrainablePattern_applyConstraints_0(this.handle)); 138 } 139 void onoverconstrained()(EventHandler onoverconstrained) { 140 ConstrainablePattern_onoverconstrained_Set(this.handle, onoverconstrained); 141 } 142 auto onoverconstrained()() { 143 return ConstrainablePattern_onoverconstrained_Get(this.handle); 144 } 145 } 146 struct ConstraintSet { 147 nothrow: 148 JsHandle handle; 149 alias handle this; 150 this(Handle h) { 151 this.handle = JsHandle(h); 152 } 153 static auto create() { 154 return ConstraintSet(spasm_add__object()); 155 } 156 } 157 struct Constraints { 158 nothrow: 159 spasm.bindings.mediastream.ConstraintSet _parent; 160 alias _parent this; 161 this(Handle h) { 162 _parent = .ConstraintSet(h); 163 } 164 static auto create() { 165 return Constraints(spasm_add__object()); 166 } 167 void advanced()(scope ref Sequence!(ConstraintSet) advanced) { 168 Constraints_advanced_Set(this._parent, advanced.handle); 169 } 170 auto advanced()() { 171 return Sequence!(ConstraintSet)(Constraints_advanced_Get(this._parent)); 172 } 173 } 174 struct DoubleRange { 175 nothrow: 176 JsHandle handle; 177 alias handle this; 178 this(Handle h) { 179 this.handle = JsHandle(h); 180 } 181 static auto create() { 182 return DoubleRange(spasm_add__object()); 183 } 184 void max()(double max) { 185 DoubleRange_max_Set(this.handle, max); 186 } 187 auto max()() { 188 return DoubleRange_max_Get(this.handle); 189 } 190 void min()(double min) { 191 DoubleRange_min_Set(this.handle, min); 192 } 193 auto min()() { 194 return DoubleRange_min_Get(this.handle); 195 } 196 } 197 struct InputDeviceInfo { 198 nothrow: 199 spasm.bindings.mediastream.MediaDeviceInfo _parent; 200 alias _parent this; 201 this(Handle h) { 202 _parent = .MediaDeviceInfo(h); 203 } 204 auto getCapabilities()() { 205 return MediaTrackCapabilities(InputDeviceInfo_getCapabilities(this._parent)); 206 } 207 } 208 struct MediaDeviceInfo { 209 nothrow: 210 JsHandle handle; 211 alias handle this; 212 this(Handle h) { 213 this.handle = JsHandle(h); 214 } 215 auto deviceId()() { 216 return MediaDeviceInfo_deviceId_Get(this.handle); 217 } 218 auto kind()() { 219 return MediaDeviceInfo_kind_Get(this.handle); 220 } 221 auto label()() { 222 return MediaDeviceInfo_label_Get(this.handle); 223 } 224 auto groupId()() { 225 return MediaDeviceInfo_groupId_Get(this.handle); 226 } 227 auto toJSON()() { 228 return JsObject(MediaDeviceInfo_toJSON(this.handle)); 229 } 230 } 231 enum MediaDeviceKind { 232 audioinput, 233 audiooutput, 234 videoinput 235 } 236 struct MediaDevices { 237 nothrow: 238 spasm.bindings.dom.EventTarget _parent; 239 alias _parent this; 240 this(Handle h) { 241 _parent = .EventTarget(h); 242 } 243 void ondevicechange()(EventHandler ondevicechange) { 244 MediaDevices_ondevicechange_Set(this._parent, ondevicechange); 245 } 246 auto ondevicechange()() { 247 return MediaDevices_ondevicechange_Get(this._parent); 248 } 249 auto enumerateDevices()() { 250 return Promise!(Sequence!(MediaDeviceInfo))(MediaDevices_enumerateDevices(this._parent)); 251 } 252 auto getSupportedConstraints()() { 253 return MediaTrackSupportedConstraints(MediaDevices_getSupportedConstraints(this._parent)); 254 } 255 auto getUserMedia()(scope ref MediaStreamConstraints constraints) { 256 return Promise!(MediaStream)(MediaDevices_getUserMedia(this._parent, constraints.handle)); 257 } 258 auto getUserMedia()() { 259 return Promise!(MediaStream)(MediaDevices_getUserMedia_0(this._parent)); 260 } 261 } 262 struct MediaStream { 263 nothrow: 264 spasm.bindings.dom.EventTarget _parent; 265 alias _parent this; 266 this(Handle h) { 267 _parent = .EventTarget(h); 268 } 269 auto id()() { 270 return MediaStream_id_Get(this._parent); 271 } 272 auto getAudioTracks()() { 273 return Sequence!(MediaStreamTrack)(MediaStream_getAudioTracks(this._parent)); 274 } 275 auto getVideoTracks()() { 276 return Sequence!(MediaStreamTrack)(MediaStream_getVideoTracks(this._parent)); 277 } 278 auto getTracks()() { 279 return Sequence!(MediaStreamTrack)(MediaStream_getTracks(this._parent)); 280 } 281 auto getTrackById()(string trackId) { 282 return MediaStream_getTrackById(this._parent, trackId); 283 } 284 void addTrack()(scope ref MediaStreamTrack track) { 285 MediaStream_addTrack(this._parent, track._parent); 286 } 287 void removeTrack()(scope ref MediaStreamTrack track) { 288 MediaStream_removeTrack(this._parent, track._parent); 289 } 290 auto clone()() { 291 return MediaStream(MediaStream_clone(this._parent)); 292 } 293 auto active()() { 294 return MediaStream_active_Get(this._parent); 295 } 296 void onaddtrack()(EventHandler onaddtrack) { 297 MediaStream_onaddtrack_Set(this._parent, onaddtrack); 298 } 299 auto onaddtrack()() { 300 return MediaStream_onaddtrack_Get(this._parent); 301 } 302 void onremovetrack()(EventHandler onremovetrack) { 303 MediaStream_onremovetrack_Set(this._parent, onremovetrack); 304 } 305 auto onremovetrack()() { 306 return MediaStream_onremovetrack_Get(this._parent); 307 } 308 } 309 struct MediaStreamConstraints { 310 nothrow: 311 JsHandle handle; 312 alias handle this; 313 this(Handle h) { 314 this.handle = JsHandle(h); 315 } 316 static auto create() { 317 return MediaStreamConstraints(spasm_add__object()); 318 } 319 void video()(scope ref SumType!(bool, MediaTrackConstraints) video) { 320 MediaStreamConstraints_video_Set(this.handle, video); 321 } 322 auto video()() { 323 return MediaStreamConstraints_video_Get(this.handle); 324 } 325 void audio()(scope ref SumType!(bool, MediaTrackConstraints) audio) { 326 MediaStreamConstraints_audio_Set(this.handle, audio); 327 } 328 auto audio()() { 329 return MediaStreamConstraints_audio_Get(this.handle); 330 } 331 } 332 alias MediaStreamError = JsObject; 333 struct MediaStreamTrack { 334 nothrow: 335 spasm.bindings.dom.EventTarget _parent; 336 alias _parent this; 337 this(Handle h) { 338 _parent = .EventTarget(h); 339 } 340 auto kind()() { 341 return MediaStreamTrack_kind_Get(this._parent); 342 } 343 auto id()() { 344 return MediaStreamTrack_id_Get(this._parent); 345 } 346 auto label()() { 347 return MediaStreamTrack_label_Get(this._parent); 348 } 349 void enabled()(bool enabled) { 350 MediaStreamTrack_enabled_Set(this._parent, enabled); 351 } 352 auto enabled()() { 353 return MediaStreamTrack_enabled_Get(this._parent); 354 } 355 auto muted()() { 356 return MediaStreamTrack_muted_Get(this._parent); 357 } 358 void onmute()(EventHandler onmute) { 359 MediaStreamTrack_onmute_Set(this._parent, onmute); 360 } 361 auto onmute()() { 362 return MediaStreamTrack_onmute_Get(this._parent); 363 } 364 void onunmute()(EventHandler onunmute) { 365 MediaStreamTrack_onunmute_Set(this._parent, onunmute); 366 } 367 auto onunmute()() { 368 return MediaStreamTrack_onunmute_Get(this._parent); 369 } 370 auto readyState()() { 371 return MediaStreamTrack_readyState_Get(this._parent); 372 } 373 void onended()(EventHandler onended) { 374 MediaStreamTrack_onended_Set(this._parent, onended); 375 } 376 auto onended()() { 377 return MediaStreamTrack_onended_Get(this._parent); 378 } 379 auto clone()() { 380 return MediaStreamTrack(MediaStreamTrack_clone(this._parent)); 381 } 382 void stop()() { 383 MediaStreamTrack_stop(this._parent); 384 } 385 auto getCapabilities()() { 386 return MediaTrackCapabilities(MediaStreamTrack_getCapabilities(this._parent)); 387 } 388 auto getConstraints()() { 389 return MediaTrackConstraints(MediaStreamTrack_getConstraints(this._parent)); 390 } 391 auto getSettings()() { 392 return MediaTrackSettings(MediaStreamTrack_getSettings(this._parent)); 393 } 394 auto applyConstraints()(scope ref MediaTrackConstraints constraints) { 395 return Promise!(void)(MediaStreamTrack_applyConstraints(this._parent, constraints._parent)); 396 } 397 auto applyConstraints()() { 398 return Promise!(void)(MediaStreamTrack_applyConstraints_0(this._parent)); 399 } 400 void onoverconstrained()(EventHandler onoverconstrained) { 401 MediaStreamTrack_onoverconstrained_Set(this._parent, onoverconstrained); 402 } 403 auto onoverconstrained()() { 404 return MediaStreamTrack_onoverconstrained_Get(this._parent); 405 } 406 } 407 struct MediaStreamTrackEvent { 408 nothrow: 409 spasm.bindings.dom.Event _parent; 410 alias _parent this; 411 this(Handle h) { 412 _parent = .Event(h); 413 } 414 auto track()() { 415 return MediaStreamTrack(MediaStreamTrackEvent_track_Get(this._parent)); 416 } 417 } 418 struct MediaStreamTrackEventInit { 419 nothrow: 420 spasm.bindings.dom.EventInit _parent; 421 alias _parent this; 422 this(Handle h) { 423 _parent = .EventInit(h); 424 } 425 static auto create() { 426 return MediaStreamTrackEventInit(spasm_add__object()); 427 } 428 void track()(scope ref MediaStreamTrack track) { 429 MediaStreamTrackEventInit_track_Set(this._parent, track.handle); 430 } 431 auto track()() { 432 return MediaStreamTrack(MediaStreamTrackEventInit_track_Get(this._parent)); 433 } 434 } 435 enum MediaStreamTrackState { 436 live, 437 ended 438 } 439 struct MediaTrackCapabilities { 440 nothrow: 441 JsHandle handle; 442 alias handle this; 443 this(Handle h) { 444 this.handle = JsHandle(h); 445 } 446 static auto create() { 447 return MediaTrackCapabilities(spasm_add__object()); 448 } 449 void width()(scope ref ULongRange width) { 450 MediaTrackCapabilities_width_Set(this.handle, width.handle); 451 } 452 auto width()() { 453 return ULongRange(MediaTrackCapabilities_width_Get(this.handle)); 454 } 455 void height()(scope ref ULongRange height) { 456 MediaTrackCapabilities_height_Set(this.handle, height.handle); 457 } 458 auto height()() { 459 return ULongRange(MediaTrackCapabilities_height_Get(this.handle)); 460 } 461 void aspectRatio()(scope ref DoubleRange aspectRatio) { 462 MediaTrackCapabilities_aspectRatio_Set(this.handle, aspectRatio.handle); 463 } 464 auto aspectRatio()() { 465 return DoubleRange(MediaTrackCapabilities_aspectRatio_Get(this.handle)); 466 } 467 void frameRate()(scope ref DoubleRange frameRate) { 468 MediaTrackCapabilities_frameRate_Set(this.handle, frameRate.handle); 469 } 470 auto frameRate()() { 471 return DoubleRange(MediaTrackCapabilities_frameRate_Get(this.handle)); 472 } 473 void facingMode()(scope ref Sequence!(string) facingMode) { 474 MediaTrackCapabilities_facingMode_Set(this.handle, facingMode.handle); 475 } 476 auto facingMode()() { 477 return Sequence!(string)(MediaTrackCapabilities_facingMode_Get(this.handle)); 478 } 479 void resizeMode()(scope ref Sequence!(string) resizeMode) { 480 MediaTrackCapabilities_resizeMode_Set(this.handle, resizeMode.handle); 481 } 482 auto resizeMode()() { 483 return Sequence!(string)(MediaTrackCapabilities_resizeMode_Get(this.handle)); 484 } 485 void volume()(scope ref DoubleRange volume) { 486 MediaTrackCapabilities_volume_Set(this.handle, volume.handle); 487 } 488 auto volume()() { 489 return DoubleRange(MediaTrackCapabilities_volume_Get(this.handle)); 490 } 491 void sampleRate()(scope ref ULongRange sampleRate) { 492 MediaTrackCapabilities_sampleRate_Set(this.handle, sampleRate.handle); 493 } 494 auto sampleRate()() { 495 return ULongRange(MediaTrackCapabilities_sampleRate_Get(this.handle)); 496 } 497 void sampleSize()(scope ref ULongRange sampleSize) { 498 MediaTrackCapabilities_sampleSize_Set(this.handle, sampleSize.handle); 499 } 500 auto sampleSize()() { 501 return ULongRange(MediaTrackCapabilities_sampleSize_Get(this.handle)); 502 } 503 void echoCancellation()(scope ref Sequence!(bool) echoCancellation) { 504 MediaTrackCapabilities_echoCancellation_Set(this.handle, echoCancellation.handle); 505 } 506 auto echoCancellation()() { 507 return Sequence!(bool)(MediaTrackCapabilities_echoCancellation_Get(this.handle)); 508 } 509 void autoGainControl()(scope ref Sequence!(bool) autoGainControl) { 510 MediaTrackCapabilities_autoGainControl_Set(this.handle, autoGainControl.handle); 511 } 512 auto autoGainControl()() { 513 return Sequence!(bool)(MediaTrackCapabilities_autoGainControl_Get(this.handle)); 514 } 515 void noiseSuppression()(scope ref Sequence!(bool) noiseSuppression) { 516 MediaTrackCapabilities_noiseSuppression_Set(this.handle, noiseSuppression.handle); 517 } 518 auto noiseSuppression()() { 519 return Sequence!(bool)(MediaTrackCapabilities_noiseSuppression_Get(this.handle)); 520 } 521 void latency()(scope ref DoubleRange latency) { 522 MediaTrackCapabilities_latency_Set(this.handle, latency.handle); 523 } 524 auto latency()() { 525 return DoubleRange(MediaTrackCapabilities_latency_Get(this.handle)); 526 } 527 void channelCount()(scope ref ULongRange channelCount) { 528 MediaTrackCapabilities_channelCount_Set(this.handle, channelCount.handle); 529 } 530 auto channelCount()() { 531 return ULongRange(MediaTrackCapabilities_channelCount_Get(this.handle)); 532 } 533 void deviceId()(string deviceId) { 534 MediaTrackCapabilities_deviceId_Set(this.handle, deviceId); 535 } 536 auto deviceId()() { 537 return MediaTrackCapabilities_deviceId_Get(this.handle); 538 } 539 void groupId()(string groupId) { 540 MediaTrackCapabilities_groupId_Set(this.handle, groupId); 541 } 542 auto groupId()() { 543 return MediaTrackCapabilities_groupId_Get(this.handle); 544 } 545 } 546 struct MediaTrackConstraintSet { 547 nothrow: 548 JsHandle handle; 549 alias handle this; 550 this(Handle h) { 551 this.handle = JsHandle(h); 552 } 553 static auto create() { 554 return MediaTrackConstraintSet(spasm_add__object()); 555 } 556 void width()(scope ref ConstrainULong width) { 557 MediaTrackConstraintSet_width_Set(this.handle, width); 558 } 559 auto width()() { 560 return MediaTrackConstraintSet_width_Get(this.handle); 561 } 562 void height()(scope ref ConstrainULong height) { 563 MediaTrackConstraintSet_height_Set(this.handle, height); 564 } 565 auto height()() { 566 return MediaTrackConstraintSet_height_Get(this.handle); 567 } 568 void aspectRatio()(scope ref ConstrainDouble aspectRatio) { 569 MediaTrackConstraintSet_aspectRatio_Set(this.handle, aspectRatio); 570 } 571 auto aspectRatio()() { 572 return MediaTrackConstraintSet_aspectRatio_Get(this.handle); 573 } 574 void frameRate()(scope ref ConstrainDouble frameRate) { 575 MediaTrackConstraintSet_frameRate_Set(this.handle, frameRate); 576 } 577 auto frameRate()() { 578 return MediaTrackConstraintSet_frameRate_Get(this.handle); 579 } 580 void facingMode()(scope ref ConstrainDOMString facingMode) { 581 MediaTrackConstraintSet_facingMode_Set(this.handle, facingMode); 582 } 583 auto facingMode()() { 584 return MediaTrackConstraintSet_facingMode_Get(this.handle); 585 } 586 void resizeMode()(scope ref ConstrainDOMString resizeMode) { 587 MediaTrackConstraintSet_resizeMode_Set(this.handle, resizeMode); 588 } 589 auto resizeMode()() { 590 return MediaTrackConstraintSet_resizeMode_Get(this.handle); 591 } 592 void volume()(scope ref ConstrainDouble volume) { 593 MediaTrackConstraintSet_volume_Set(this.handle, volume); 594 } 595 auto volume()() { 596 return MediaTrackConstraintSet_volume_Get(this.handle); 597 } 598 void sampleRate()(scope ref ConstrainULong sampleRate) { 599 MediaTrackConstraintSet_sampleRate_Set(this.handle, sampleRate); 600 } 601 auto sampleRate()() { 602 return MediaTrackConstraintSet_sampleRate_Get(this.handle); 603 } 604 void sampleSize()(scope ref ConstrainULong sampleSize) { 605 MediaTrackConstraintSet_sampleSize_Set(this.handle, sampleSize); 606 } 607 auto sampleSize()() { 608 return MediaTrackConstraintSet_sampleSize_Get(this.handle); 609 } 610 void echoCancellation()(scope ref ConstrainBoolean echoCancellation) { 611 MediaTrackConstraintSet_echoCancellation_Set(this.handle, echoCancellation); 612 } 613 auto echoCancellation()() { 614 return MediaTrackConstraintSet_echoCancellation_Get(this.handle); 615 } 616 void autoGainControl()(scope ref ConstrainBoolean autoGainControl) { 617 MediaTrackConstraintSet_autoGainControl_Set(this.handle, autoGainControl); 618 } 619 auto autoGainControl()() { 620 return MediaTrackConstraintSet_autoGainControl_Get(this.handle); 621 } 622 void noiseSuppression()(scope ref ConstrainBoolean noiseSuppression) { 623 MediaTrackConstraintSet_noiseSuppression_Set(this.handle, noiseSuppression); 624 } 625 auto noiseSuppression()() { 626 return MediaTrackConstraintSet_noiseSuppression_Get(this.handle); 627 } 628 void latency()(scope ref ConstrainDouble latency) { 629 MediaTrackConstraintSet_latency_Set(this.handle, latency); 630 } 631 auto latency()() { 632 return MediaTrackConstraintSet_latency_Get(this.handle); 633 } 634 void channelCount()(scope ref ConstrainULong channelCount) { 635 MediaTrackConstraintSet_channelCount_Set(this.handle, channelCount); 636 } 637 auto channelCount()() { 638 return MediaTrackConstraintSet_channelCount_Get(this.handle); 639 } 640 void deviceId()(scope ref ConstrainDOMString deviceId) { 641 MediaTrackConstraintSet_deviceId_Set(this.handle, deviceId); 642 } 643 auto deviceId()() { 644 return MediaTrackConstraintSet_deviceId_Get(this.handle); 645 } 646 void groupId()(scope ref ConstrainDOMString groupId) { 647 MediaTrackConstraintSet_groupId_Set(this.handle, groupId); 648 } 649 auto groupId()() { 650 return MediaTrackConstraintSet_groupId_Get(this.handle); 651 } 652 } 653 struct MediaTrackConstraints { 654 nothrow: 655 spasm.bindings.mediastream.MediaTrackConstraintSet _parent; 656 alias _parent this; 657 this(Handle h) { 658 _parent = .MediaTrackConstraintSet(h); 659 } 660 static auto create() { 661 return MediaTrackConstraints(spasm_add__object()); 662 } 663 void advanced()(scope ref Sequence!(MediaTrackConstraintSet) advanced) { 664 MediaTrackConstraints_advanced_Set(this._parent, advanced.handle); 665 } 666 auto advanced()() { 667 return Sequence!(MediaTrackConstraintSet)(MediaTrackConstraints_advanced_Get(this._parent)); 668 } 669 } 670 struct MediaTrackSettings { 671 nothrow: 672 JsHandle handle; 673 alias handle this; 674 this(Handle h) { 675 this.handle = JsHandle(h); 676 } 677 static auto create() { 678 return MediaTrackSettings(spasm_add__object()); 679 } 680 void width()(int width) { 681 MediaTrackSettings_width_Set(this.handle, width); 682 } 683 auto width()() { 684 return MediaTrackSettings_width_Get(this.handle); 685 } 686 void height()(int height) { 687 MediaTrackSettings_height_Set(this.handle, height); 688 } 689 auto height()() { 690 return MediaTrackSettings_height_Get(this.handle); 691 } 692 void aspectRatio()(double aspectRatio) { 693 MediaTrackSettings_aspectRatio_Set(this.handle, aspectRatio); 694 } 695 auto aspectRatio()() { 696 return MediaTrackSettings_aspectRatio_Get(this.handle); 697 } 698 void frameRate()(double frameRate) { 699 MediaTrackSettings_frameRate_Set(this.handle, frameRate); 700 } 701 auto frameRate()() { 702 return MediaTrackSettings_frameRate_Get(this.handle); 703 } 704 void facingMode()(string facingMode) { 705 MediaTrackSettings_facingMode_Set(this.handle, facingMode); 706 } 707 auto facingMode()() { 708 return MediaTrackSettings_facingMode_Get(this.handle); 709 } 710 void resizeMode()(string resizeMode) { 711 MediaTrackSettings_resizeMode_Set(this.handle, resizeMode); 712 } 713 auto resizeMode()() { 714 return MediaTrackSettings_resizeMode_Get(this.handle); 715 } 716 void volume()(double volume) { 717 MediaTrackSettings_volume_Set(this.handle, volume); 718 } 719 auto volume()() { 720 return MediaTrackSettings_volume_Get(this.handle); 721 } 722 void sampleRate()(int sampleRate) { 723 MediaTrackSettings_sampleRate_Set(this.handle, sampleRate); 724 } 725 auto sampleRate()() { 726 return MediaTrackSettings_sampleRate_Get(this.handle); 727 } 728 void sampleSize()(int sampleSize) { 729 MediaTrackSettings_sampleSize_Set(this.handle, sampleSize); 730 } 731 auto sampleSize()() { 732 return MediaTrackSettings_sampleSize_Get(this.handle); 733 } 734 void echoCancellation()(bool echoCancellation) { 735 MediaTrackSettings_echoCancellation_Set(this.handle, echoCancellation); 736 } 737 auto echoCancellation()() { 738 return MediaTrackSettings_echoCancellation_Get(this.handle); 739 } 740 void autoGainControl()(bool autoGainControl) { 741 MediaTrackSettings_autoGainControl_Set(this.handle, autoGainControl); 742 } 743 auto autoGainControl()() { 744 return MediaTrackSettings_autoGainControl_Get(this.handle); 745 } 746 void noiseSuppression()(bool noiseSuppression) { 747 MediaTrackSettings_noiseSuppression_Set(this.handle, noiseSuppression); 748 } 749 auto noiseSuppression()() { 750 return MediaTrackSettings_noiseSuppression_Get(this.handle); 751 } 752 void latency()(double latency) { 753 MediaTrackSettings_latency_Set(this.handle, latency); 754 } 755 auto latency()() { 756 return MediaTrackSettings_latency_Get(this.handle); 757 } 758 void channelCount()(int channelCount) { 759 MediaTrackSettings_channelCount_Set(this.handle, channelCount); 760 } 761 auto channelCount()() { 762 return MediaTrackSettings_channelCount_Get(this.handle); 763 } 764 void deviceId()(string deviceId) { 765 MediaTrackSettings_deviceId_Set(this.handle, deviceId); 766 } 767 auto deviceId()() { 768 return MediaTrackSettings_deviceId_Get(this.handle); 769 } 770 void groupId()(string groupId) { 771 MediaTrackSettings_groupId_Set(this.handle, groupId); 772 } 773 auto groupId()() { 774 return MediaTrackSettings_groupId_Get(this.handle); 775 } 776 } 777 struct MediaTrackSupportedConstraints { 778 nothrow: 779 JsHandle handle; 780 alias handle this; 781 this(Handle h) { 782 this.handle = JsHandle(h); 783 } 784 static auto create() { 785 return MediaTrackSupportedConstraints(spasm_add__object()); 786 } 787 void width()(bool width) { 788 MediaTrackSupportedConstraints_width_Set(this.handle, width); 789 } 790 auto width()() { 791 return MediaTrackSupportedConstraints_width_Get(this.handle); 792 } 793 void height()(bool height) { 794 MediaTrackSupportedConstraints_height_Set(this.handle, height); 795 } 796 auto height()() { 797 return MediaTrackSupportedConstraints_height_Get(this.handle); 798 } 799 void aspectRatio()(bool aspectRatio) { 800 MediaTrackSupportedConstraints_aspectRatio_Set(this.handle, aspectRatio); 801 } 802 auto aspectRatio()() { 803 return MediaTrackSupportedConstraints_aspectRatio_Get(this.handle); 804 } 805 void frameRate()(bool frameRate) { 806 MediaTrackSupportedConstraints_frameRate_Set(this.handle, frameRate); 807 } 808 auto frameRate()() { 809 return MediaTrackSupportedConstraints_frameRate_Get(this.handle); 810 } 811 void facingMode()(bool facingMode) { 812 MediaTrackSupportedConstraints_facingMode_Set(this.handle, facingMode); 813 } 814 auto facingMode()() { 815 return MediaTrackSupportedConstraints_facingMode_Get(this.handle); 816 } 817 void resizeMode()(bool resizeMode) { 818 MediaTrackSupportedConstraints_resizeMode_Set(this.handle, resizeMode); 819 } 820 auto resizeMode()() { 821 return MediaTrackSupportedConstraints_resizeMode_Get(this.handle); 822 } 823 void volume()(bool volume) { 824 MediaTrackSupportedConstraints_volume_Set(this.handle, volume); 825 } 826 auto volume()() { 827 return MediaTrackSupportedConstraints_volume_Get(this.handle); 828 } 829 void sampleRate()(bool sampleRate) { 830 MediaTrackSupportedConstraints_sampleRate_Set(this.handle, sampleRate); 831 } 832 auto sampleRate()() { 833 return MediaTrackSupportedConstraints_sampleRate_Get(this.handle); 834 } 835 void sampleSize()(bool sampleSize) { 836 MediaTrackSupportedConstraints_sampleSize_Set(this.handle, sampleSize); 837 } 838 auto sampleSize()() { 839 return MediaTrackSupportedConstraints_sampleSize_Get(this.handle); 840 } 841 void echoCancellation()(bool echoCancellation) { 842 MediaTrackSupportedConstraints_echoCancellation_Set(this.handle, echoCancellation); 843 } 844 auto echoCancellation()() { 845 return MediaTrackSupportedConstraints_echoCancellation_Get(this.handle); 846 } 847 void autoGainControl()(bool autoGainControl) { 848 MediaTrackSupportedConstraints_autoGainControl_Set(this.handle, autoGainControl); 849 } 850 auto autoGainControl()() { 851 return MediaTrackSupportedConstraints_autoGainControl_Get(this.handle); 852 } 853 void noiseSuppression()(bool noiseSuppression) { 854 MediaTrackSupportedConstraints_noiseSuppression_Set(this.handle, noiseSuppression); 855 } 856 auto noiseSuppression()() { 857 return MediaTrackSupportedConstraints_noiseSuppression_Get(this.handle); 858 } 859 void latency()(bool latency) { 860 MediaTrackSupportedConstraints_latency_Set(this.handle, latency); 861 } 862 auto latency()() { 863 return MediaTrackSupportedConstraints_latency_Get(this.handle); 864 } 865 void channelCount()(bool channelCount) { 866 MediaTrackSupportedConstraints_channelCount_Set(this.handle, channelCount); 867 } 868 auto channelCount()() { 869 return MediaTrackSupportedConstraints_channelCount_Get(this.handle); 870 } 871 void deviceId()(bool deviceId) { 872 MediaTrackSupportedConstraints_deviceId_Set(this.handle, deviceId); 873 } 874 auto deviceId()() { 875 return MediaTrackSupportedConstraints_deviceId_Get(this.handle); 876 } 877 void groupId()(bool groupId) { 878 MediaTrackSupportedConstraints_groupId_Set(this.handle, groupId); 879 } 880 auto groupId()() { 881 return MediaTrackSupportedConstraints_groupId_Get(this.handle); 882 } 883 } 884 alias NavigatorUserMediaErrorCallback = void delegate(JsObject); 885 alias NavigatorUserMediaSuccessCallback = void delegate(MediaStream); 886 struct OverconstrainedError { 887 nothrow: 888 JsHandle handle; 889 alias handle this; 890 this(Handle h) { 891 this.handle = JsHandle(h); 892 } 893 } 894 struct OverconstrainedErrorEvent { 895 nothrow: 896 spasm.bindings.dom.Event _parent; 897 alias _parent this; 898 this(Handle h) { 899 _parent = .Event(h); 900 } 901 auto error()() { 902 return OverconstrainedErrorEvent_error_Get(this._parent); 903 } 904 } 905 struct OverconstrainedErrorEventInit { 906 nothrow: 907 spasm.bindings.dom.EventInit _parent; 908 alias _parent this; 909 this(Handle h) { 910 _parent = .EventInit(h); 911 } 912 static auto create() { 913 return OverconstrainedErrorEventInit(spasm_add__object()); 914 } 915 void error(T0)(scope auto ref Optional!(T0) error) if (isTOrPointer!(T0, OverconstrainedError)) { 916 OverconstrainedErrorEventInit_error_Set(this._parent, !error.empty, error.front.handle); 917 } 918 auto error()() { 919 return OverconstrainedErrorEventInit_error_Get(this._parent); 920 } 921 } 922 struct Settings { 923 nothrow: 924 JsHandle handle; 925 alias handle this; 926 this(Handle h) { 927 this.handle = JsHandle(h); 928 } 929 static auto create() { 930 return Settings(spasm_add__object()); 931 } 932 } 933 struct ULongRange { 934 nothrow: 935 JsHandle handle; 936 alias handle this; 937 this(Handle h) { 938 this.handle = JsHandle(h); 939 } 940 static auto create() { 941 return ULongRange(spasm_add__object()); 942 } 943 void max()(uint max) { 944 ULongRange_max_Set(this.handle, max); 945 } 946 auto max()() { 947 return ULongRange_max_Get(this.handle); 948 } 949 void min()(uint min) { 950 ULongRange_min_Set(this.handle, min); 951 } 952 auto min()() { 953 return ULongRange_min_Get(this.handle); 954 } 955 } 956 enum VideoFacingModeEnum { 957 user, 958 environment, 959 left, 960 right 961 } 962 enum VideoResizeModeEnum { 963 none, 964 crop_and_scale 965 } 966 967 968 extern (C) void ConstrainBooleanParameters_exact_Set(Handle, bool); 969 extern (C) bool ConstrainBooleanParameters_exact_Get(Handle); 970 extern (C) void ConstrainBooleanParameters_ideal_Set(Handle, bool); 971 extern (C) bool ConstrainBooleanParameters_ideal_Get(Handle); 972 extern (C) void ConstrainDOMStringParameters_exact_Set(Handle, scope ref SumType!(string, Sequence!(string))); 973 extern (C) SumType!(string, Sequence!(string)) ConstrainDOMStringParameters_exact_Get(Handle); 974 extern (C) void ConstrainDOMStringParameters_ideal_Set(Handle, scope ref SumType!(string, Sequence!(string))); 975 extern (C) SumType!(string, Sequence!(string)) ConstrainDOMStringParameters_ideal_Get(Handle); 976 extern (C) void ConstrainDoubleRange_exact_Set(Handle, double); 977 extern (C) double ConstrainDoubleRange_exact_Get(Handle); 978 extern (C) void ConstrainDoubleRange_ideal_Set(Handle, double); 979 extern (C) double ConstrainDoubleRange_ideal_Get(Handle); 980 extern (C) void ConstrainULongRange_exact_Set(Handle, uint); 981 extern (C) uint ConstrainULongRange_exact_Get(Handle); 982 extern (C) void ConstrainULongRange_ideal_Set(Handle, uint); 983 extern (C) uint ConstrainULongRange_ideal_Get(Handle); 984 extern (C) Handle ConstrainablePattern_getCapabilities(Handle); 985 extern (C) Handle ConstrainablePattern_getConstraints(Handle); 986 extern (C) Handle ConstrainablePattern_getSettings(Handle); 987 extern (C) Handle ConstrainablePattern_applyConstraints(Handle, Handle); 988 extern (C) Handle ConstrainablePattern_applyConstraints_0(Handle); 989 extern (C) void ConstrainablePattern_onoverconstrained_Set(Handle, EventHandler); 990 extern (C) EventHandler ConstrainablePattern_onoverconstrained_Get(Handle); 991 extern (C) void Constraints_advanced_Set(Handle, Handle); 992 extern (C) Handle Constraints_advanced_Get(Handle); 993 extern (C) void DoubleRange_max_Set(Handle, double); 994 extern (C) double DoubleRange_max_Get(Handle); 995 extern (C) void DoubleRange_min_Set(Handle, double); 996 extern (C) double DoubleRange_min_Get(Handle); 997 extern (C) Handle InputDeviceInfo_getCapabilities(Handle); 998 extern (C) string MediaDeviceInfo_deviceId_Get(Handle); 999 extern (C) MediaDeviceKind MediaDeviceInfo_kind_Get(Handle); 1000 extern (C) string MediaDeviceInfo_label_Get(Handle); 1001 extern (C) string MediaDeviceInfo_groupId_Get(Handle); 1002 extern (C) Handle MediaDeviceInfo_toJSON(Handle); 1003 extern (C) void MediaDevices_ondevicechange_Set(Handle, EventHandler); 1004 extern (C) EventHandler MediaDevices_ondevicechange_Get(Handle); 1005 extern (C) Handle MediaDevices_enumerateDevices(Handle); 1006 extern (C) Handle MediaDevices_getSupportedConstraints(Handle); 1007 extern (C) Handle MediaDevices_getUserMedia(Handle, Handle); 1008 extern (C) Handle MediaDevices_getUserMedia_0(Handle); 1009 extern (C) string MediaStream_id_Get(Handle); 1010 extern (C) Handle MediaStream_getAudioTracks(Handle); 1011 extern (C) Handle MediaStream_getVideoTracks(Handle); 1012 extern (C) Handle MediaStream_getTracks(Handle); 1013 extern (C) Optional!(MediaStreamTrack) MediaStream_getTrackById(Handle, string); 1014 extern (C) void MediaStream_addTrack(Handle, Handle); 1015 extern (C) void MediaStream_removeTrack(Handle, Handle); 1016 extern (C) Handle MediaStream_clone(Handle); 1017 extern (C) bool MediaStream_active_Get(Handle); 1018 extern (C) void MediaStream_onaddtrack_Set(Handle, EventHandler); 1019 extern (C) EventHandler MediaStream_onaddtrack_Get(Handle); 1020 extern (C) void MediaStream_onremovetrack_Set(Handle, EventHandler); 1021 extern (C) EventHandler MediaStream_onremovetrack_Get(Handle); 1022 extern (C) void MediaStreamConstraints_video_Set(Handle, scope ref SumType!(bool, MediaTrackConstraints)); 1023 extern (C) SumType!(bool, MediaTrackConstraints) MediaStreamConstraints_video_Get(Handle); 1024 extern (C) void MediaStreamConstraints_audio_Set(Handle, scope ref SumType!(bool, MediaTrackConstraints)); 1025 extern (C) SumType!(bool, MediaTrackConstraints) MediaStreamConstraints_audio_Get(Handle); 1026 extern (C) string MediaStreamTrack_kind_Get(Handle); 1027 extern (C) string MediaStreamTrack_id_Get(Handle); 1028 extern (C) string MediaStreamTrack_label_Get(Handle); 1029 extern (C) void MediaStreamTrack_enabled_Set(Handle, bool); 1030 extern (C) bool MediaStreamTrack_enabled_Get(Handle); 1031 extern (C) bool MediaStreamTrack_muted_Get(Handle); 1032 extern (C) void MediaStreamTrack_onmute_Set(Handle, EventHandler); 1033 extern (C) EventHandler MediaStreamTrack_onmute_Get(Handle); 1034 extern (C) void MediaStreamTrack_onunmute_Set(Handle, EventHandler); 1035 extern (C) EventHandler MediaStreamTrack_onunmute_Get(Handle); 1036 extern (C) MediaStreamTrackState MediaStreamTrack_readyState_Get(Handle); 1037 extern (C) void MediaStreamTrack_onended_Set(Handle, EventHandler); 1038 extern (C) EventHandler MediaStreamTrack_onended_Get(Handle); 1039 extern (C) Handle MediaStreamTrack_clone(Handle); 1040 extern (C) void MediaStreamTrack_stop(Handle); 1041 extern (C) Handle MediaStreamTrack_getCapabilities(Handle); 1042 extern (C) Handle MediaStreamTrack_getConstraints(Handle); 1043 extern (C) Handle MediaStreamTrack_getSettings(Handle); 1044 extern (C) Handle MediaStreamTrack_applyConstraints(Handle, Handle); 1045 extern (C) Handle MediaStreamTrack_applyConstraints_0(Handle); 1046 extern (C) void MediaStreamTrack_onoverconstrained_Set(Handle, EventHandler); 1047 extern (C) EventHandler MediaStreamTrack_onoverconstrained_Get(Handle); 1048 extern (C) Handle MediaStreamTrackEvent_track_Get(Handle); 1049 extern (C) void MediaStreamTrackEventInit_track_Set(Handle, Handle); 1050 extern (C) Handle MediaStreamTrackEventInit_track_Get(Handle); 1051 extern (C) void MediaTrackCapabilities_width_Set(Handle, Handle); 1052 extern (C) Handle MediaTrackCapabilities_width_Get(Handle); 1053 extern (C) void MediaTrackCapabilities_height_Set(Handle, Handle); 1054 extern (C) Handle MediaTrackCapabilities_height_Get(Handle); 1055 extern (C) void MediaTrackCapabilities_aspectRatio_Set(Handle, Handle); 1056 extern (C) Handle MediaTrackCapabilities_aspectRatio_Get(Handle); 1057 extern (C) void MediaTrackCapabilities_frameRate_Set(Handle, Handle); 1058 extern (C) Handle MediaTrackCapabilities_frameRate_Get(Handle); 1059 extern (C) void MediaTrackCapabilities_facingMode_Set(Handle, Handle); 1060 extern (C) Handle MediaTrackCapabilities_facingMode_Get(Handle); 1061 extern (C) void MediaTrackCapabilities_resizeMode_Set(Handle, Handle); 1062 extern (C) Handle MediaTrackCapabilities_resizeMode_Get(Handle); 1063 extern (C) void MediaTrackCapabilities_volume_Set(Handle, Handle); 1064 extern (C) Handle MediaTrackCapabilities_volume_Get(Handle); 1065 extern (C) void MediaTrackCapabilities_sampleRate_Set(Handle, Handle); 1066 extern (C) Handle MediaTrackCapabilities_sampleRate_Get(Handle); 1067 extern (C) void MediaTrackCapabilities_sampleSize_Set(Handle, Handle); 1068 extern (C) Handle MediaTrackCapabilities_sampleSize_Get(Handle); 1069 extern (C) void MediaTrackCapabilities_echoCancellation_Set(Handle, Handle); 1070 extern (C) Handle MediaTrackCapabilities_echoCancellation_Get(Handle); 1071 extern (C) void MediaTrackCapabilities_autoGainControl_Set(Handle, Handle); 1072 extern (C) Handle MediaTrackCapabilities_autoGainControl_Get(Handle); 1073 extern (C) void MediaTrackCapabilities_noiseSuppression_Set(Handle, Handle); 1074 extern (C) Handle MediaTrackCapabilities_noiseSuppression_Get(Handle); 1075 extern (C) void MediaTrackCapabilities_latency_Set(Handle, Handle); 1076 extern (C) Handle MediaTrackCapabilities_latency_Get(Handle); 1077 extern (C) void MediaTrackCapabilities_channelCount_Set(Handle, Handle); 1078 extern (C) Handle MediaTrackCapabilities_channelCount_Get(Handle); 1079 extern (C) void MediaTrackCapabilities_deviceId_Set(Handle, string); 1080 extern (C) string MediaTrackCapabilities_deviceId_Get(Handle); 1081 extern (C) void MediaTrackCapabilities_groupId_Set(Handle, string); 1082 extern (C) string MediaTrackCapabilities_groupId_Get(Handle); 1083 extern (C) void MediaTrackConstraintSet_width_Set(Handle, scope ref ConstrainULong); 1084 extern (C) ConstrainULong MediaTrackConstraintSet_width_Get(Handle); 1085 extern (C) void MediaTrackConstraintSet_height_Set(Handle, scope ref ConstrainULong); 1086 extern (C) ConstrainULong MediaTrackConstraintSet_height_Get(Handle); 1087 extern (C) void MediaTrackConstraintSet_aspectRatio_Set(Handle, scope ref ConstrainDouble); 1088 extern (C) ConstrainDouble MediaTrackConstraintSet_aspectRatio_Get(Handle); 1089 extern (C) void MediaTrackConstraintSet_frameRate_Set(Handle, scope ref ConstrainDouble); 1090 extern (C) ConstrainDouble MediaTrackConstraintSet_frameRate_Get(Handle); 1091 extern (C) void MediaTrackConstraintSet_facingMode_Set(Handle, scope ref ConstrainDOMString); 1092 extern (C) ConstrainDOMString MediaTrackConstraintSet_facingMode_Get(Handle); 1093 extern (C) void MediaTrackConstraintSet_resizeMode_Set(Handle, scope ref ConstrainDOMString); 1094 extern (C) ConstrainDOMString MediaTrackConstraintSet_resizeMode_Get(Handle); 1095 extern (C) void MediaTrackConstraintSet_volume_Set(Handle, scope ref ConstrainDouble); 1096 extern (C) ConstrainDouble MediaTrackConstraintSet_volume_Get(Handle); 1097 extern (C) void MediaTrackConstraintSet_sampleRate_Set(Handle, scope ref ConstrainULong); 1098 extern (C) ConstrainULong MediaTrackConstraintSet_sampleRate_Get(Handle); 1099 extern (C) void MediaTrackConstraintSet_sampleSize_Set(Handle, scope ref ConstrainULong); 1100 extern (C) ConstrainULong MediaTrackConstraintSet_sampleSize_Get(Handle); 1101 extern (C) void MediaTrackConstraintSet_echoCancellation_Set(Handle, scope ref ConstrainBoolean); 1102 extern (C) ConstrainBoolean MediaTrackConstraintSet_echoCancellation_Get(Handle); 1103 extern (C) void MediaTrackConstraintSet_autoGainControl_Set(Handle, scope ref ConstrainBoolean); 1104 extern (C) ConstrainBoolean MediaTrackConstraintSet_autoGainControl_Get(Handle); 1105 extern (C) void MediaTrackConstraintSet_noiseSuppression_Set(Handle, scope ref ConstrainBoolean); 1106 extern (C) ConstrainBoolean MediaTrackConstraintSet_noiseSuppression_Get(Handle); 1107 extern (C) void MediaTrackConstraintSet_latency_Set(Handle, scope ref ConstrainDouble); 1108 extern (C) ConstrainDouble MediaTrackConstraintSet_latency_Get(Handle); 1109 extern (C) void MediaTrackConstraintSet_channelCount_Set(Handle, scope ref ConstrainULong); 1110 extern (C) ConstrainULong MediaTrackConstraintSet_channelCount_Get(Handle); 1111 extern (C) void MediaTrackConstraintSet_deviceId_Set(Handle, scope ref ConstrainDOMString); 1112 extern (C) ConstrainDOMString MediaTrackConstraintSet_deviceId_Get(Handle); 1113 extern (C) void MediaTrackConstraintSet_groupId_Set(Handle, scope ref ConstrainDOMString); 1114 extern (C) ConstrainDOMString MediaTrackConstraintSet_groupId_Get(Handle); 1115 extern (C) void MediaTrackConstraints_advanced_Set(Handle, Handle); 1116 extern (C) Handle MediaTrackConstraints_advanced_Get(Handle); 1117 extern (C) void MediaTrackSettings_width_Set(Handle, int); 1118 extern (C) int MediaTrackSettings_width_Get(Handle); 1119 extern (C) void MediaTrackSettings_height_Set(Handle, int); 1120 extern (C) int MediaTrackSettings_height_Get(Handle); 1121 extern (C) void MediaTrackSettings_aspectRatio_Set(Handle, double); 1122 extern (C) double MediaTrackSettings_aspectRatio_Get(Handle); 1123 extern (C) void MediaTrackSettings_frameRate_Set(Handle, double); 1124 extern (C) double MediaTrackSettings_frameRate_Get(Handle); 1125 extern (C) void MediaTrackSettings_facingMode_Set(Handle, string); 1126 extern (C) string MediaTrackSettings_facingMode_Get(Handle); 1127 extern (C) void MediaTrackSettings_resizeMode_Set(Handle, string); 1128 extern (C) string MediaTrackSettings_resizeMode_Get(Handle); 1129 extern (C) void MediaTrackSettings_volume_Set(Handle, double); 1130 extern (C) double MediaTrackSettings_volume_Get(Handle); 1131 extern (C) void MediaTrackSettings_sampleRate_Set(Handle, int); 1132 extern (C) int MediaTrackSettings_sampleRate_Get(Handle); 1133 extern (C) void MediaTrackSettings_sampleSize_Set(Handle, int); 1134 extern (C) int MediaTrackSettings_sampleSize_Get(Handle); 1135 extern (C) void MediaTrackSettings_echoCancellation_Set(Handle, bool); 1136 extern (C) bool MediaTrackSettings_echoCancellation_Get(Handle); 1137 extern (C) void MediaTrackSettings_autoGainControl_Set(Handle, bool); 1138 extern (C) bool MediaTrackSettings_autoGainControl_Get(Handle); 1139 extern (C) void MediaTrackSettings_noiseSuppression_Set(Handle, bool); 1140 extern (C) bool MediaTrackSettings_noiseSuppression_Get(Handle); 1141 extern (C) void MediaTrackSettings_latency_Set(Handle, double); 1142 extern (C) double MediaTrackSettings_latency_Get(Handle); 1143 extern (C) void MediaTrackSettings_channelCount_Set(Handle, int); 1144 extern (C) int MediaTrackSettings_channelCount_Get(Handle); 1145 extern (C) void MediaTrackSettings_deviceId_Set(Handle, string); 1146 extern (C) string MediaTrackSettings_deviceId_Get(Handle); 1147 extern (C) void MediaTrackSettings_groupId_Set(Handle, string); 1148 extern (C) string MediaTrackSettings_groupId_Get(Handle); 1149 extern (C) void MediaTrackSupportedConstraints_width_Set(Handle, bool); 1150 extern (C) bool MediaTrackSupportedConstraints_width_Get(Handle); 1151 extern (C) void MediaTrackSupportedConstraints_height_Set(Handle, bool); 1152 extern (C) bool MediaTrackSupportedConstraints_height_Get(Handle); 1153 extern (C) void MediaTrackSupportedConstraints_aspectRatio_Set(Handle, bool); 1154 extern (C) bool MediaTrackSupportedConstraints_aspectRatio_Get(Handle); 1155 extern (C) void MediaTrackSupportedConstraints_frameRate_Set(Handle, bool); 1156 extern (C) bool MediaTrackSupportedConstraints_frameRate_Get(Handle); 1157 extern (C) void MediaTrackSupportedConstraints_facingMode_Set(Handle, bool); 1158 extern (C) bool MediaTrackSupportedConstraints_facingMode_Get(Handle); 1159 extern (C) void MediaTrackSupportedConstraints_resizeMode_Set(Handle, bool); 1160 extern (C) bool MediaTrackSupportedConstraints_resizeMode_Get(Handle); 1161 extern (C) void MediaTrackSupportedConstraints_volume_Set(Handle, bool); 1162 extern (C) bool MediaTrackSupportedConstraints_volume_Get(Handle); 1163 extern (C) void MediaTrackSupportedConstraints_sampleRate_Set(Handle, bool); 1164 extern (C) bool MediaTrackSupportedConstraints_sampleRate_Get(Handle); 1165 extern (C) void MediaTrackSupportedConstraints_sampleSize_Set(Handle, bool); 1166 extern (C) bool MediaTrackSupportedConstraints_sampleSize_Get(Handle); 1167 extern (C) void MediaTrackSupportedConstraints_echoCancellation_Set(Handle, bool); 1168 extern (C) bool MediaTrackSupportedConstraints_echoCancellation_Get(Handle); 1169 extern (C) void MediaTrackSupportedConstraints_autoGainControl_Set(Handle, bool); 1170 extern (C) bool MediaTrackSupportedConstraints_autoGainControl_Get(Handle); 1171 extern (C) void MediaTrackSupportedConstraints_noiseSuppression_Set(Handle, bool); 1172 extern (C) bool MediaTrackSupportedConstraints_noiseSuppression_Get(Handle); 1173 extern (C) void MediaTrackSupportedConstraints_latency_Set(Handle, bool); 1174 extern (C) bool MediaTrackSupportedConstraints_latency_Get(Handle); 1175 extern (C) void MediaTrackSupportedConstraints_channelCount_Set(Handle, bool); 1176 extern (C) bool MediaTrackSupportedConstraints_channelCount_Get(Handle); 1177 extern (C) void MediaTrackSupportedConstraints_deviceId_Set(Handle, bool); 1178 extern (C) bool MediaTrackSupportedConstraints_deviceId_Get(Handle); 1179 extern (C) void MediaTrackSupportedConstraints_groupId_Set(Handle, bool); 1180 extern (C) bool MediaTrackSupportedConstraints_groupId_Get(Handle); 1181 extern (C) Optional!(OverconstrainedError) OverconstrainedErrorEvent_error_Get(Handle); 1182 extern (C) void OverconstrainedErrorEventInit_error_Set(Handle, bool, Handle); 1183 extern (C) Optional!(OverconstrainedError) OverconstrainedErrorEventInit_error_Get(Handle); 1184 extern (C) void ULongRange_max_Set(Handle, uint); 1185 extern (C) uint ULongRange_max_Get(Handle); 1186 extern (C) void ULongRange_min_Set(Handle, uint); 1187 extern (C) uint ULongRange_min_Get(Handle);