0 | module Web.Raw.Mediastream
   1 |
   2 | import JS
   3 | import Web.Internal.MediastreamPrim
   4 | import Web.Internal.Types
   5 |
   6 | %default total
   7 |
   8 |
   9 | --------------------------------------------------------------------------------
  10 | --          Interfaces
  11 | --------------------------------------------------------------------------------
  12 |
  13 | namespace ConstrainablePattern
  14 |
  15 |   export
  16 |   applyConstraints' :
  17 |        {auto 0 _ : JSType t2}
  18 |     -> {auto 0 _ : Elem Constraints (Types t2)}
  19 |     -> (obj : ConstrainablePattern)
  20 |     -> (constraints : Optional t2)
  21 |     -> JSIO (Promise Undefined)
  22 |   applyConstraints' a b = primJS $
  23 |     ConstrainablePattern.prim__applyConstraints a (optUp b)
  24 |
  25 |   export
  26 |   applyConstraints : (obj : ConstrainablePattern) -> JSIO (Promise Undefined)
  27 |   applyConstraints a = primJS $
  28 |     ConstrainablePattern.prim__applyConstraints a undef
  29 |
  30 |
  31 |   export
  32 |   getCapabilities : (obj : ConstrainablePattern) -> JSIO Capabilities
  33 |   getCapabilities a = primJS $ ConstrainablePattern.prim__getCapabilities a
  34 |
  35 |
  36 |   export
  37 |   getConstraints : (obj : ConstrainablePattern) -> JSIO Constraints
  38 |   getConstraints a = primJS $ ConstrainablePattern.prim__getConstraints a
  39 |
  40 |
  41 |   export
  42 |   getSettings : (obj : ConstrainablePattern) -> JSIO Settings
  43 |   getSettings a = primJS $ ConstrainablePattern.prim__getSettings a
  44 |
  45 |
  46 |
  47 | namespace InputDeviceInfo
  48 |
  49 |   export
  50 |   getCapabilities : (obj : InputDeviceInfo) -> JSIO MediaTrackCapabilities
  51 |   getCapabilities a = primJS $ InputDeviceInfo.prim__getCapabilities a
  52 |
  53 |
  54 |
  55 | namespace MediaDeviceInfo
  56 |
  57 |   export
  58 |   deviceId :
  59 |        {auto 0 _ : JSType t1}
  60 |     -> {auto 0 _ : Elem MediaDeviceInfo (Types t1)}
  61 |     -> (obj : t1)
  62 |     -> JSIO String
  63 |   deviceId a = primJS $ MediaDeviceInfo.prim__deviceId (up a)
  64 |
  65 |
  66 |   export
  67 |   groupId :
  68 |        {auto 0 _ : JSType t1}
  69 |     -> {auto 0 _ : Elem MediaDeviceInfo (Types t1)}
  70 |     -> (obj : t1)
  71 |     -> JSIO String
  72 |   groupId a = primJS $ MediaDeviceInfo.prim__groupId (up a)
  73 |
  74 |
  75 |   export
  76 |   kind :
  77 |        {auto 0 _ : JSType t1}
  78 |     -> {auto 0 _ : Elem MediaDeviceInfo (Types t1)}
  79 |     -> (obj : t1)
  80 |     -> JSIO MediaDeviceKind
  81 |   kind a = tryJS "MediaDeviceInfo.kind" $ MediaDeviceInfo.prim__kind (up a)
  82 |
  83 |
  84 |   export
  85 |   label :
  86 |        {auto 0 _ : JSType t1}
  87 |     -> {auto 0 _ : Elem MediaDeviceInfo (Types t1)}
  88 |     -> (obj : t1)
  89 |     -> JSIO String
  90 |   label a = primJS $ MediaDeviceInfo.prim__label (up a)
  91 |
  92 |
  93 |   export
  94 |   toJSON :
  95 |        {auto 0 _ : JSType t1}
  96 |     -> {auto 0 _ : Elem MediaDeviceInfo (Types t1)}
  97 |     -> (obj : t1)
  98 |     -> JSIO Object
  99 |   toJSON a = primJS $ MediaDeviceInfo.prim__toJSON (up a)
 100 |
 101 |
 102 |
 103 | namespace MediaDevices
 104 |
 105 |   export
 106 |   ondevicechange : MediaDevices -> Attribute False Maybe EventHandlerNonNull
 107 |   ondevicechange v = fromNullablePrim
 108 |                        "MediaDevices.getondevicechange"
 109 |                        prim__ondevicechange
 110 |                        prim__setOndevicechange
 111 |                        v
 112 |
 113 |
 114 |   export
 115 |   enumerateDevices :
 116 |        (obj : MediaDevices)
 117 |     -> JSIO (Promise (Array MediaDeviceInfo))
 118 |   enumerateDevices a = primJS $ MediaDevices.prim__enumerateDevices a
 119 |
 120 |
 121 |   export
 122 |   getSupportedConstraints :
 123 |        (obj : MediaDevices)
 124 |     -> JSIO MediaTrackSupportedConstraints
 125 |   getSupportedConstraints a = primJS $
 126 |     MediaDevices.prim__getSupportedConstraints a
 127 |
 128 |
 129 |   export
 130 |   getUserMedia' :
 131 |        {auto 0 _ : JSType t2}
 132 |     -> {auto 0 _ : Elem MediaStreamConstraints (Types t2)}
 133 |     -> (obj : MediaDevices)
 134 |     -> (constraints : Optional t2)
 135 |     -> JSIO (Promise MediaStream)
 136 |   getUserMedia' a b = primJS $ MediaDevices.prim__getUserMedia a (optUp b)
 137 |
 138 |   export
 139 |   getUserMedia : (obj : MediaDevices) -> JSIO (Promise MediaStream)
 140 |   getUserMedia a = primJS $ MediaDevices.prim__getUserMedia a undef
 141 |
 142 |
 143 |
 144 | namespace MediaStream
 145 |
 146 |   export
 147 |   new : JSIO MediaStream
 148 |   new = primJS $ MediaStream.prim__new
 149 |
 150 |
 151 |   export
 152 |   new1 : (stream : MediaStream) -> JSIO MediaStream
 153 |   new1 a = primJS $ MediaStream.prim__new1 a
 154 |
 155 |
 156 |   export
 157 |   new2 : (tracks : Array MediaStreamTrack) -> JSIO MediaStream
 158 |   new2 a = primJS $ MediaStream.prim__new2 a
 159 |
 160 |
 161 |   export
 162 |   active : (obj : MediaStream) -> JSIO Bool
 163 |   active a = tryJS "MediaStream.active" $ MediaStream.prim__active a
 164 |
 165 |
 166 |   export
 167 |   id : (obj : MediaStream) -> JSIO String
 168 |   id a = primJS $ MediaStream.prim__id a
 169 |
 170 |
 171 |   export
 172 |   onaddtrack : MediaStream -> Attribute False Maybe EventHandlerNonNull
 173 |   onaddtrack v = fromNullablePrim
 174 |                    "MediaStream.getonaddtrack"
 175 |                    prim__onaddtrack
 176 |                    prim__setOnaddtrack
 177 |                    v
 178 |
 179 |
 180 |   export
 181 |   onremovetrack : MediaStream -> Attribute False Maybe EventHandlerNonNull
 182 |   onremovetrack v = fromNullablePrim
 183 |                       "MediaStream.getonremovetrack"
 184 |                       prim__onremovetrack
 185 |                       prim__setOnremovetrack
 186 |                       v
 187 |
 188 |
 189 |   export
 190 |   addTrack : (obj : MediaStream) -> (track : MediaStreamTrack) -> JSIO ()
 191 |   addTrack a b = primJS $ MediaStream.prim__addTrack a b
 192 |
 193 |
 194 |   export
 195 |   clone : (obj : MediaStream) -> JSIO MediaStream
 196 |   clone a = primJS $ MediaStream.prim__clone a
 197 |
 198 |
 199 |   export
 200 |   getAudioTracks : (obj : MediaStream) -> JSIO (Array MediaStreamTrack)
 201 |   getAudioTracks a = primJS $ MediaStream.prim__getAudioTracks a
 202 |
 203 |
 204 |   export
 205 |   getTrackById :
 206 |        (obj : MediaStream)
 207 |     -> (trackId : String)
 208 |     -> JSIO (Maybe MediaStreamTrack)
 209 |   getTrackById a b = tryJS "MediaStream.getTrackById" $
 210 |     MediaStream.prim__getTrackById a b
 211 |
 212 |
 213 |   export
 214 |   getTracks : (obj : MediaStream) -> JSIO (Array MediaStreamTrack)
 215 |   getTracks a = primJS $ MediaStream.prim__getTracks a
 216 |
 217 |
 218 |   export
 219 |   getVideoTracks : (obj : MediaStream) -> JSIO (Array MediaStreamTrack)
 220 |   getVideoTracks a = primJS $ MediaStream.prim__getVideoTracks a
 221 |
 222 |
 223 |   export
 224 |   removeTrack : (obj : MediaStream) -> (track : MediaStreamTrack) -> JSIO ()
 225 |   removeTrack a b = primJS $ MediaStream.prim__removeTrack a b
 226 |
 227 |
 228 |
 229 | namespace MediaStreamTrack
 230 |
 231 |   export
 232 |   enabled : MediaStreamTrack -> Attribute True Prelude.id Bool
 233 |   enabled v = fromPrim
 234 |                 "MediaStreamTrack.getenabled"
 235 |                 prim__enabled
 236 |                 prim__setEnabled
 237 |                 v
 238 |
 239 |
 240 |   export
 241 |   id : (obj : MediaStreamTrack) -> JSIO String
 242 |   id a = primJS $ MediaStreamTrack.prim__id a
 243 |
 244 |
 245 |   export
 246 |   kind : (obj : MediaStreamTrack) -> JSIO String
 247 |   kind a = primJS $ MediaStreamTrack.prim__kind a
 248 |
 249 |
 250 |   export
 251 |   label : (obj : MediaStreamTrack) -> JSIO String
 252 |   label a = primJS $ MediaStreamTrack.prim__label a
 253 |
 254 |
 255 |   export
 256 |   muted : (obj : MediaStreamTrack) -> JSIO Bool
 257 |   muted a = tryJS "MediaStreamTrack.muted" $ MediaStreamTrack.prim__muted a
 258 |
 259 |
 260 |   export
 261 |   onended : MediaStreamTrack -> Attribute False Maybe EventHandlerNonNull
 262 |   onended v = fromNullablePrim
 263 |                 "MediaStreamTrack.getonended"
 264 |                 prim__onended
 265 |                 prim__setOnended
 266 |                 v
 267 |
 268 |
 269 |   export
 270 |   onmute : MediaStreamTrack -> Attribute False Maybe EventHandlerNonNull
 271 |   onmute v = fromNullablePrim
 272 |                "MediaStreamTrack.getonmute"
 273 |                prim__onmute
 274 |                prim__setOnmute
 275 |                v
 276 |
 277 |
 278 |   export
 279 |   onunmute : MediaStreamTrack -> Attribute False Maybe EventHandlerNonNull
 280 |   onunmute v = fromNullablePrim
 281 |                  "MediaStreamTrack.getonunmute"
 282 |                  prim__onunmute
 283 |                  prim__setOnunmute
 284 |                  v
 285 |
 286 |
 287 |   export
 288 |   readyState : (obj : MediaStreamTrack) -> JSIO MediaStreamTrackState
 289 |   readyState a = tryJS "MediaStreamTrack.readyState" $
 290 |     MediaStreamTrack.prim__readyState a
 291 |
 292 |
 293 |   export
 294 |   applyConstraints' :
 295 |        {auto 0 _ : JSType t2}
 296 |     -> {auto 0 _ : Elem MediaTrackConstraints (Types t2)}
 297 |     -> (obj : MediaStreamTrack)
 298 |     -> (constraints : Optional t2)
 299 |     -> JSIO (Promise Undefined)
 300 |   applyConstraints' a b = primJS $
 301 |     MediaStreamTrack.prim__applyConstraints a (optUp b)
 302 |
 303 |   export
 304 |   applyConstraints : (obj : MediaStreamTrack) -> JSIO (Promise Undefined)
 305 |   applyConstraints a = primJS $ MediaStreamTrack.prim__applyConstraints a undef
 306 |
 307 |
 308 |   export
 309 |   clone : (obj : MediaStreamTrack) -> JSIO MediaStreamTrack
 310 |   clone a = primJS $ MediaStreamTrack.prim__clone a
 311 |
 312 |
 313 |   export
 314 |   getCapabilities : (obj : MediaStreamTrack) -> JSIO MediaTrackCapabilities
 315 |   getCapabilities a = primJS $ MediaStreamTrack.prim__getCapabilities a
 316 |
 317 |
 318 |   export
 319 |   getConstraints : (obj : MediaStreamTrack) -> JSIO MediaTrackConstraints
 320 |   getConstraints a = primJS $ MediaStreamTrack.prim__getConstraints a
 321 |
 322 |
 323 |   export
 324 |   getSettings : (obj : MediaStreamTrack) -> JSIO MediaTrackSettings
 325 |   getSettings a = primJS $ MediaStreamTrack.prim__getSettings a
 326 |
 327 |
 328 |   export
 329 |   stop : (obj : MediaStreamTrack) -> JSIO ()
 330 |   stop a = primJS $ MediaStreamTrack.prim__stop a
 331 |
 332 |
 333 |
 334 | namespace MediaStreamTrackEvent
 335 |
 336 |   export
 337 |   new :
 338 |        {auto 0 _ : JSType t2}
 339 |     -> {auto 0 _ : Elem MediaStreamTrackEventInit (Types t2)}
 340 |     -> (type : String)
 341 |     -> (eventInitDict : t2)
 342 |     -> JSIO MediaStreamTrackEvent
 343 |   new a b = primJS $ MediaStreamTrackEvent.prim__new a (up b)
 344 |
 345 |
 346 |   export
 347 |   track : (obj : MediaStreamTrackEvent) -> JSIO MediaStreamTrack
 348 |   track a = primJS $ MediaStreamTrackEvent.prim__track a
 349 |
 350 |
 351 |
 352 | namespace OverconstrainedError
 353 |
 354 |   export
 355 |   new' :
 356 |        (constraint : String)
 357 |     -> (message : Optional String)
 358 |     -> JSIO OverconstrainedError
 359 |   new' a b = primJS $ OverconstrainedError.prim__new a (toFFI b)
 360 |
 361 |   export
 362 |   new : (constraint : String) -> JSIO OverconstrainedError
 363 |   new a = primJS $ OverconstrainedError.prim__new a undef
 364 |
 365 |
 366 |   export
 367 |   constraint : (obj : OverconstrainedError) -> JSIO String
 368 |   constraint a = primJS $ OverconstrainedError.prim__constraint a
 369 |
 370 |
 371 |
 372 |
 373 |
 374 | --------------------------------------------------------------------------------
 375 | --          Dictionaries
 376 | --------------------------------------------------------------------------------
 377 |
 378 | namespace Capabilities
 379 |
 380 |   export
 381 |   new : JSIO Capabilities
 382 |   new = primJS $ Capabilities.prim__new
 383 |
 384 |
 385 |
 386 | namespace ConstrainBooleanParameters
 387 |
 388 |   export
 389 |   new' :
 390 |        (exact : Optional Bool)
 391 |     -> (ideal : Optional Bool)
 392 |     -> JSIO ConstrainBooleanParameters
 393 |   new' a b = primJS $ ConstrainBooleanParameters.prim__new (toFFI a) (toFFI b)
 394 |
 395 |   export
 396 |   new : JSIO ConstrainBooleanParameters
 397 |   new = primJS $ ConstrainBooleanParameters.prim__new undef undef
 398 |
 399 |
 400 |   export
 401 |   exact :
 402 |        {auto 0 _ : JSType t}
 403 |     -> {auto 0 _ : Elem ConstrainBooleanParameters (Types t)}
 404 |     -> t
 405 |     -> Attribute False Optional Bool
 406 |   exact v = fromUndefOrPrimNoDefault
 407 |               "ConstrainBooleanParameters.getexact"
 408 |               prim__exact
 409 |               prim__setExact
 410 |               (v :> ConstrainBooleanParameters)
 411 |
 412 |
 413 |   export
 414 |   ideal :
 415 |        {auto 0 _ : JSType t}
 416 |     -> {auto 0 _ : Elem ConstrainBooleanParameters (Types t)}
 417 |     -> t
 418 |     -> Attribute False Optional Bool
 419 |   ideal v = fromUndefOrPrimNoDefault
 420 |               "ConstrainBooleanParameters.getideal"
 421 |               prim__ideal
 422 |               prim__setIdeal
 423 |               (v :> ConstrainBooleanParameters)
 424 |
 425 |
 426 |
 427 | namespace ConstrainDOMStringParameters
 428 |
 429 |   export
 430 |   new' :
 431 |        (exact : Optional (HSum [String, Array String]))
 432 |     -> (ideal : Optional (HSum [String, Array String]))
 433 |     -> JSIO ConstrainDOMStringParameters
 434 |   new' a b = primJS $ ConstrainDOMStringParameters.prim__new (toFFI a) (toFFI b)
 435 |
 436 |   export
 437 |   new : JSIO ConstrainDOMStringParameters
 438 |   new = primJS $ ConstrainDOMStringParameters.prim__new undef undef
 439 |
 440 |
 441 |   export
 442 |   exact :
 443 |        {auto 0 _ : JSType t}
 444 |     -> {auto 0 _ : Elem ConstrainDOMStringParameters (Types t)}
 445 |     -> t
 446 |     -> Attribute False Optional (Union2 String (Array String))
 447 |   exact v = fromUndefOrPrimNoDefault
 448 |               "ConstrainDOMStringParameters.getexact"
 449 |               prim__exact
 450 |               prim__setExact
 451 |               (v :> ConstrainDOMStringParameters)
 452 |
 453 |
 454 |   export
 455 |   ideal :
 456 |        {auto 0 _ : JSType t}
 457 |     -> {auto 0 _ : Elem ConstrainDOMStringParameters (Types t)}
 458 |     -> t
 459 |     -> Attribute False Optional (Union2 String (Array String))
 460 |   ideal v = fromUndefOrPrimNoDefault
 461 |               "ConstrainDOMStringParameters.getideal"
 462 |               prim__ideal
 463 |               prim__setIdeal
 464 |               (v :> ConstrainDOMStringParameters)
 465 |
 466 |
 467 |
 468 | namespace ConstrainDoubleRange
 469 |
 470 |   export
 471 |   new' :
 472 |        (exact : Optional Double)
 473 |     -> (ideal : Optional Double)
 474 |     -> JSIO ConstrainDoubleRange
 475 |   new' a b = primJS $ ConstrainDoubleRange.prim__new (toFFI a) (toFFI b)
 476 |
 477 |   export
 478 |   new : JSIO ConstrainDoubleRange
 479 |   new = primJS $ ConstrainDoubleRange.prim__new undef undef
 480 |
 481 |
 482 |   export
 483 |   exact :
 484 |        {auto 0 _ : JSType t}
 485 |     -> {auto 0 _ : Elem ConstrainDoubleRange (Types t)}
 486 |     -> t
 487 |     -> Attribute False Optional Double
 488 |   exact v = fromUndefOrPrimNoDefault
 489 |               "ConstrainDoubleRange.getexact"
 490 |               prim__exact
 491 |               prim__setExact
 492 |               (v :> ConstrainDoubleRange)
 493 |
 494 |
 495 |   export
 496 |   ideal :
 497 |        {auto 0 _ : JSType t}
 498 |     -> {auto 0 _ : Elem ConstrainDoubleRange (Types t)}
 499 |     -> t
 500 |     -> Attribute False Optional Double
 501 |   ideal v = fromUndefOrPrimNoDefault
 502 |               "ConstrainDoubleRange.getideal"
 503 |               prim__ideal
 504 |               prim__setIdeal
 505 |               (v :> ConstrainDoubleRange)
 506 |
 507 |
 508 |
 509 | namespace ConstrainULongRange
 510 |
 511 |   export
 512 |   new' :
 513 |        (exact : Optional Bits32)
 514 |     -> (ideal : Optional Bits32)
 515 |     -> JSIO ConstrainULongRange
 516 |   new' a b = primJS $ ConstrainULongRange.prim__new (toFFI a) (toFFI b)
 517 |
 518 |   export
 519 |   new : JSIO ConstrainULongRange
 520 |   new = primJS $ ConstrainULongRange.prim__new undef undef
 521 |
 522 |
 523 |   export
 524 |   exact :
 525 |        {auto 0 _ : JSType t}
 526 |     -> {auto 0 _ : Elem ConstrainULongRange (Types t)}
 527 |     -> t
 528 |     -> Attribute False Optional Bits32
 529 |   exact v = fromUndefOrPrimNoDefault
 530 |               "ConstrainULongRange.getexact"
 531 |               prim__exact
 532 |               prim__setExact
 533 |               (v :> ConstrainULongRange)
 534 |
 535 |
 536 |   export
 537 |   ideal :
 538 |        {auto 0 _ : JSType t}
 539 |     -> {auto 0 _ : Elem ConstrainULongRange (Types t)}
 540 |     -> t
 541 |     -> Attribute False Optional Bits32
 542 |   ideal v = fromUndefOrPrimNoDefault
 543 |               "ConstrainULongRange.getideal"
 544 |               prim__ideal
 545 |               prim__setIdeal
 546 |               (v :> ConstrainULongRange)
 547 |
 548 |
 549 |
 550 | namespace ConstraintSet
 551 |
 552 |   export
 553 |   new : JSIO ConstraintSet
 554 |   new = primJS $ ConstraintSet.prim__new
 555 |
 556 |
 557 |
 558 | namespace Constraints
 559 |
 560 |   export
 561 |   new' : (advanced : Optional (Array ConstraintSet)) -> JSIO Constraints
 562 |   new' a = primJS $ Constraints.prim__new (toFFI a)
 563 |
 564 |   export
 565 |   new : JSIO Constraints
 566 |   new = primJS $ Constraints.prim__new undef
 567 |
 568 |
 569 |   export
 570 |   advanced :
 571 |        {auto 0 _ : JSType t}
 572 |     -> {auto 0 _ : Elem Constraints (Types t)}
 573 |     -> t
 574 |     -> Attribute False Optional (Array ConstraintSet)
 575 |   advanced v = fromUndefOrPrimNoDefault
 576 |                  "Constraints.getadvanced"
 577 |                  prim__advanced
 578 |                  prim__setAdvanced
 579 |                  (v :> Constraints)
 580 |
 581 |
 582 |
 583 | namespace DoubleRange
 584 |
 585 |   export
 586 |   new' : (max : Optional Double) -> (min : Optional Double) -> JSIO DoubleRange
 587 |   new' a b = primJS $ DoubleRange.prim__new (toFFI a) (toFFI b)
 588 |
 589 |   export
 590 |   new : JSIO DoubleRange
 591 |   new = primJS $ DoubleRange.prim__new undef undef
 592 |
 593 |
 594 |   export
 595 |   max :
 596 |        {auto 0 _ : JSType t}
 597 |     -> {auto 0 _ : Elem DoubleRange (Types t)}
 598 |     -> t
 599 |     -> Attribute False Optional Double
 600 |   max v = fromUndefOrPrimNoDefault
 601 |             "DoubleRange.getmax"
 602 |             prim__max
 603 |             prim__setMax
 604 |             (v :> DoubleRange)
 605 |
 606 |
 607 |   export
 608 |   min :
 609 |        {auto 0 _ : JSType t}
 610 |     -> {auto 0 _ : Elem DoubleRange (Types t)}
 611 |     -> t
 612 |     -> Attribute False Optional Double
 613 |   min v = fromUndefOrPrimNoDefault
 614 |             "DoubleRange.getmin"
 615 |             prim__min
 616 |             prim__setMin
 617 |             (v :> DoubleRange)
 618 |
 619 |
 620 |
 621 | namespace MediaStreamConstraints
 622 |
 623 |   export
 624 |   new' :
 625 |        (video : Optional (HSum [Bool, MediaTrackConstraints]))
 626 |     -> (audio : Optional (HSum [Bool, MediaTrackConstraints]))
 627 |     -> JSIO MediaStreamConstraints
 628 |   new' a b = primJS $ MediaStreamConstraints.prim__new (toFFI a) (toFFI b)
 629 |
 630 |   export
 631 |   new : JSIO MediaStreamConstraints
 632 |   new = primJS $ MediaStreamConstraints.prim__new undef undef
 633 |
 634 |
 635 |   export
 636 |   audio :
 637 |        {auto 0 _ : JSType t}
 638 |     -> {auto 0 _ : Elem MediaStreamConstraints (Types t)}
 639 |     -> t
 640 |     -> Attribute False Optional (Union2 Boolean MediaTrackConstraints)
 641 |   audio v = fromUndefOrPrimNoDefault
 642 |               "MediaStreamConstraints.getaudio"
 643 |               prim__audio
 644 |               prim__setAudio
 645 |               (v :> MediaStreamConstraints)
 646 |
 647 |
 648 |   export
 649 |   video :
 650 |        {auto 0 _ : JSType t}
 651 |     -> {auto 0 _ : Elem MediaStreamConstraints (Types t)}
 652 |     -> t
 653 |     -> Attribute False Optional (Union2 Boolean MediaTrackConstraints)
 654 |   video v = fromUndefOrPrimNoDefault
 655 |               "MediaStreamConstraints.getvideo"
 656 |               prim__video
 657 |               prim__setVideo
 658 |               (v :> MediaStreamConstraints)
 659 |
 660 |
 661 |
 662 | namespace MediaStreamTrackEventInit
 663 |
 664 |   export
 665 |   new : (track : MediaStreamTrack) -> JSIO MediaStreamTrackEventInit
 666 |   new a = primJS $ MediaStreamTrackEventInit.prim__new a
 667 |
 668 |
 669 |   export
 670 |   track :
 671 |        {auto 0 _ : JSType t}
 672 |     -> {auto 0 _ : Elem MediaStreamTrackEventInit (Types t)}
 673 |     -> t
 674 |     -> Attribute True Prelude.id MediaStreamTrack
 675 |   track v = fromPrim
 676 |               "MediaStreamTrackEventInit.gettrack"
 677 |               prim__track
 678 |               prim__setTrack
 679 |               (v :> MediaStreamTrackEventInit)
 680 |
 681 |
 682 |
 683 | namespace MediaTrackCapabilities
 684 |
 685 |   export
 686 |   new' :
 687 |        {auto 0 _ : JSType t1}
 688 |     -> {auto 0 _ : JSType t2}
 689 |     -> {auto 0 _ : JSType t3}
 690 |     -> {auto 0 _ : JSType t4}
 691 |     -> {auto 0 _ : JSType t7}
 692 |     -> {auto 0 _ : JSType t8}
 693 |     -> {auto 0 _ : JSType t12}
 694 |     -> {auto 0 _ : JSType t13}
 695 |     -> {auto 0 _ : Elem ULongRange (Types t1)}
 696 |     -> {auto 0 _ : Elem ULongRange (Types t2)}
 697 |     -> {auto 0 _ : Elem DoubleRange (Types t3)}
 698 |     -> {auto 0 _ : Elem DoubleRange (Types t4)}
 699 |     -> {auto 0 _ : Elem ULongRange (Types t7)}
 700 |     -> {auto 0 _ : Elem ULongRange (Types t8)}
 701 |     -> {auto 0 _ : Elem DoubleRange (Types t12)}
 702 |     -> {auto 0 _ : Elem ULongRange (Types t13)}
 703 |     -> (width : Optional t1)
 704 |     -> (height : Optional t2)
 705 |     -> (aspectRatio : Optional t3)
 706 |     -> (frameRate : Optional t4)
 707 |     -> (facingMode : Optional (Array String))
 708 |     -> (resizeMode : Optional (Array String))
 709 |     -> (sampleRate : Optional t7)
 710 |     -> (sampleSize : Optional t8)
 711 |     -> (echoCancellation : Optional (Array Boolean))
 712 |     -> (autoGainControl : Optional (Array Boolean))
 713 |     -> (noiseSuppression : Optional (Array Boolean))
 714 |     -> (latency : Optional t12)
 715 |     -> (channelCount : Optional t13)
 716 |     -> (deviceId : Optional String)
 717 |     -> (groupId : Optional String)
 718 |     -> JSIO MediaTrackCapabilities
 719 |   new' a b c d e f g h i j k l m n o = primJS $
 720 |     MediaTrackCapabilities.prim__new
 721 |       (optUp a)
 722 |       (optUp b)
 723 |       (optUp c)
 724 |       (optUp d)
 725 |       (toFFI e)
 726 |       (toFFI f)
 727 |       (optUp g)
 728 |       (optUp h)
 729 |       (toFFI i)
 730 |       (toFFI j)
 731 |       (toFFI k)
 732 |       (optUp l)
 733 |       (optUp m)
 734 |       (toFFI n)
 735 |       (toFFI o)
 736 |
 737 |   export
 738 |   new : JSIO MediaTrackCapabilities
 739 |   new = primJS $
 740 |     MediaTrackCapabilities.prim__new
 741 |       undef
 742 |       undef
 743 |       undef
 744 |       undef
 745 |       undef
 746 |       undef
 747 |       undef
 748 |       undef
 749 |       undef
 750 |       undef
 751 |       undef
 752 |       undef
 753 |       undef
 754 |       undef
 755 |       undef
 756 |
 757 |
 758 |   export
 759 |   aspectRatio :
 760 |        {auto 0 _ : JSType t}
 761 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 762 |     -> t
 763 |     -> Attribute False Optional DoubleRange
 764 |   aspectRatio v = fromUndefOrPrimNoDefault
 765 |                     "MediaTrackCapabilities.getaspectRatio"
 766 |                     prim__aspectRatio
 767 |                     prim__setAspectRatio
 768 |                     (v :> MediaTrackCapabilities)
 769 |
 770 |
 771 |   export
 772 |   autoGainControl :
 773 |        {auto 0 _ : JSType t}
 774 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 775 |     -> t
 776 |     -> Attribute False Optional (Array Boolean)
 777 |   autoGainControl v = fromUndefOrPrimNoDefault
 778 |                         "MediaTrackCapabilities.getautoGainControl"
 779 |                         prim__autoGainControl
 780 |                         prim__setAutoGainControl
 781 |                         (v :> MediaTrackCapabilities)
 782 |
 783 |
 784 |   export
 785 |   channelCount :
 786 |        {auto 0 _ : JSType t}
 787 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 788 |     -> t
 789 |     -> Attribute False Optional ULongRange
 790 |   channelCount v = fromUndefOrPrimNoDefault
 791 |                      "MediaTrackCapabilities.getchannelCount"
 792 |                      prim__channelCount
 793 |                      prim__setChannelCount
 794 |                      (v :> MediaTrackCapabilities)
 795 |
 796 |
 797 |   export
 798 |   deviceId :
 799 |        {auto 0 _ : JSType t}
 800 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 801 |     -> t
 802 |     -> Attribute False Optional String
 803 |   deviceId v = fromUndefOrPrimNoDefault
 804 |                  "MediaTrackCapabilities.getdeviceId"
 805 |                  prim__deviceId
 806 |                  prim__setDeviceId
 807 |                  (v :> MediaTrackCapabilities)
 808 |
 809 |
 810 |   export
 811 |   echoCancellation :
 812 |        {auto 0 _ : JSType t}
 813 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 814 |     -> t
 815 |     -> Attribute False Optional (Array Boolean)
 816 |   echoCancellation v = fromUndefOrPrimNoDefault
 817 |                          "MediaTrackCapabilities.getechoCancellation"
 818 |                          prim__echoCancellation
 819 |                          prim__setEchoCancellation
 820 |                          (v :> MediaTrackCapabilities)
 821 |
 822 |
 823 |   export
 824 |   facingMode :
 825 |        {auto 0 _ : JSType t}
 826 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 827 |     -> t
 828 |     -> Attribute False Optional (Array String)
 829 |   facingMode v = fromUndefOrPrimNoDefault
 830 |                    "MediaTrackCapabilities.getfacingMode"
 831 |                    prim__facingMode
 832 |                    prim__setFacingMode
 833 |                    (v :> MediaTrackCapabilities)
 834 |
 835 |
 836 |   export
 837 |   frameRate :
 838 |        {auto 0 _ : JSType t}
 839 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 840 |     -> t
 841 |     -> Attribute False Optional DoubleRange
 842 |   frameRate v = fromUndefOrPrimNoDefault
 843 |                   "MediaTrackCapabilities.getframeRate"
 844 |                   prim__frameRate
 845 |                   prim__setFrameRate
 846 |                   (v :> MediaTrackCapabilities)
 847 |
 848 |
 849 |   export
 850 |   groupId :
 851 |        {auto 0 _ : JSType t}
 852 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 853 |     -> t
 854 |     -> Attribute False Optional String
 855 |   groupId v = fromUndefOrPrimNoDefault
 856 |                 "MediaTrackCapabilities.getgroupId"
 857 |                 prim__groupId
 858 |                 prim__setGroupId
 859 |                 (v :> MediaTrackCapabilities)
 860 |
 861 |
 862 |   export
 863 |   height :
 864 |        {auto 0 _ : JSType t}
 865 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 866 |     -> t
 867 |     -> Attribute False Optional ULongRange
 868 |   height v = fromUndefOrPrimNoDefault
 869 |                "MediaTrackCapabilities.getheight"
 870 |                prim__height
 871 |                prim__setHeight
 872 |                (v :> MediaTrackCapabilities)
 873 |
 874 |
 875 |   export
 876 |   latency :
 877 |        {auto 0 _ : JSType t}
 878 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 879 |     -> t
 880 |     -> Attribute False Optional DoubleRange
 881 |   latency v = fromUndefOrPrimNoDefault
 882 |                 "MediaTrackCapabilities.getlatency"
 883 |                 prim__latency
 884 |                 prim__setLatency
 885 |                 (v :> MediaTrackCapabilities)
 886 |
 887 |
 888 |   export
 889 |   noiseSuppression :
 890 |        {auto 0 _ : JSType t}
 891 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 892 |     -> t
 893 |     -> Attribute False Optional (Array Boolean)
 894 |   noiseSuppression v = fromUndefOrPrimNoDefault
 895 |                          "MediaTrackCapabilities.getnoiseSuppression"
 896 |                          prim__noiseSuppression
 897 |                          prim__setNoiseSuppression
 898 |                          (v :> MediaTrackCapabilities)
 899 |
 900 |
 901 |   export
 902 |   resizeMode :
 903 |        {auto 0 _ : JSType t}
 904 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 905 |     -> t
 906 |     -> Attribute False Optional (Array String)
 907 |   resizeMode v = fromUndefOrPrimNoDefault
 908 |                    "MediaTrackCapabilities.getresizeMode"
 909 |                    prim__resizeMode
 910 |                    prim__setResizeMode
 911 |                    (v :> MediaTrackCapabilities)
 912 |
 913 |
 914 |   export
 915 |   sampleRate :
 916 |        {auto 0 _ : JSType t}
 917 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 918 |     -> t
 919 |     -> Attribute False Optional ULongRange
 920 |   sampleRate v = fromUndefOrPrimNoDefault
 921 |                    "MediaTrackCapabilities.getsampleRate"
 922 |                    prim__sampleRate
 923 |                    prim__setSampleRate
 924 |                    (v :> MediaTrackCapabilities)
 925 |
 926 |
 927 |   export
 928 |   sampleSize :
 929 |        {auto 0 _ : JSType t}
 930 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 931 |     -> t
 932 |     -> Attribute False Optional ULongRange
 933 |   sampleSize v = fromUndefOrPrimNoDefault
 934 |                    "MediaTrackCapabilities.getsampleSize"
 935 |                    prim__sampleSize
 936 |                    prim__setSampleSize
 937 |                    (v :> MediaTrackCapabilities)
 938 |
 939 |
 940 |   export
 941 |   width :
 942 |        {auto 0 _ : JSType t}
 943 |     -> {auto 0 _ : Elem MediaTrackCapabilities (Types t)}
 944 |     -> t
 945 |     -> Attribute False Optional ULongRange
 946 |   width v = fromUndefOrPrimNoDefault
 947 |               "MediaTrackCapabilities.getwidth"
 948 |               prim__width
 949 |               prim__setWidth
 950 |               (v :> MediaTrackCapabilities)
 951 |
 952 |
 953 |
 954 | namespace MediaTrackConstraintSet
 955 |
 956 |   export
 957 |   new' :
 958 |        (width : Optional (HSum [Bits32, ConstrainULongRange]))
 959 |     -> (height : Optional (HSum [Bits32, ConstrainULongRange]))
 960 |     -> (aspectRatio : Optional (HSum [Double, ConstrainDoubleRange]))
 961 |     -> (frameRate : Optional (HSum [Double, ConstrainDoubleRange]))
 962 |     -> (facingMode : Optional
 963 |                        (HSum
 964 |                           [String, Array String, ConstrainDOMStringParameters]))
 965 |     -> (resizeMode : Optional
 966 |                        (HSum
 967 |                           [String, Array String, ConstrainDOMStringParameters]))
 968 |     -> (sampleRate : Optional (HSum [Bits32, ConstrainULongRange]))
 969 |     -> (sampleSize : Optional (HSum [Bits32, ConstrainULongRange]))
 970 |     -> (echoCancellation : Optional (HSum [Bool, ConstrainBooleanParameters]))
 971 |     -> (autoGainControl : Optional (HSum [Bool, ConstrainBooleanParameters]))
 972 |     -> (noiseSuppression : Optional (HSum [Bool, ConstrainBooleanParameters]))
 973 |     -> (latency : Optional (HSum [Double, ConstrainDoubleRange]))
 974 |     -> (channelCount : Optional (HSum [Bits32, ConstrainULongRange]))
 975 |     -> (deviceId : Optional
 976 |                      (HSum
 977 |                         [String, Array String, ConstrainDOMStringParameters]))
 978 |     -> (groupId : Optional
 979 |                     (HSum [String, Array String, ConstrainDOMStringParameters]))
 980 |     -> JSIO MediaTrackConstraintSet
 981 |   new' a b c d e f g h i j k l m n o = primJS $
 982 |     MediaTrackConstraintSet.prim__new
 983 |       (toFFI a)
 984 |       (toFFI b)
 985 |       (toFFI c)
 986 |       (toFFI d)
 987 |       (toFFI e)
 988 |       (toFFI f)
 989 |       (toFFI g)
 990 |       (toFFI h)
 991 |       (toFFI i)
 992 |       (toFFI j)
 993 |       (toFFI k)
 994 |       (toFFI l)
 995 |       (toFFI m)
 996 |       (toFFI n)
 997 |       (toFFI o)
 998 |
 999 |   export
1000 |   new : JSIO MediaTrackConstraintSet
1001 |   new = primJS $
1002 |     MediaTrackConstraintSet.prim__new
1003 |       undef
1004 |       undef
1005 |       undef
1006 |       undef
1007 |       undef
1008 |       undef
1009 |       undef
1010 |       undef
1011 |       undef
1012 |       undef
1013 |       undef
1014 |       undef
1015 |       undef
1016 |       undef
1017 |       undef
1018 |
1019 |
1020 |   export
1021 |   aspectRatio :
1022 |        {auto 0 _ : JSType t}
1023 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1024 |     -> t
1025 |     -> Attribute False Optional (Union2 Double ConstrainDoubleRange)
1026 |   aspectRatio v = fromUndefOrPrimNoDefault
1027 |                     "MediaTrackConstraintSet.getaspectRatio"
1028 |                     prim__aspectRatio
1029 |                     prim__setAspectRatio
1030 |                     (v :> MediaTrackConstraintSet)
1031 |
1032 |
1033 |   export
1034 |   autoGainControl :
1035 |        {auto 0 _ : JSType t}
1036 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1037 |     -> t
1038 |     -> Attribute False Optional (Union2 Boolean ConstrainBooleanParameters)
1039 |   autoGainControl v = fromUndefOrPrimNoDefault
1040 |                         "MediaTrackConstraintSet.getautoGainControl"
1041 |                         prim__autoGainControl
1042 |                         prim__setAutoGainControl
1043 |                         (v :> MediaTrackConstraintSet)
1044 |
1045 |
1046 |   export
1047 |   channelCount :
1048 |        {auto 0 _ : JSType t}
1049 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1050 |     -> t
1051 |     -> Attribute False Optional (Union2 Bits32 ConstrainULongRange)
1052 |   channelCount v = fromUndefOrPrimNoDefault
1053 |                      "MediaTrackConstraintSet.getchannelCount"
1054 |                      prim__channelCount
1055 |                      prim__setChannelCount
1056 |                      (v :> MediaTrackConstraintSet)
1057 |
1058 |
1059 |   export
1060 |   deviceId :
1061 |        {auto 0 _ : JSType t}
1062 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1063 |     -> t
1064 |     -> Attribute False Optional (Union3
1065 |                                    String
1066 |                                    (Array String)
1067 |                                    ConstrainDOMStringParameters)
1068 |   deviceId v = fromUndefOrPrimNoDefault
1069 |                  "MediaTrackConstraintSet.getdeviceId"
1070 |                  prim__deviceId
1071 |                  prim__setDeviceId
1072 |                  (v :> MediaTrackConstraintSet)
1073 |
1074 |
1075 |   export
1076 |   echoCancellation :
1077 |        {auto 0 _ : JSType t}
1078 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1079 |     -> t
1080 |     -> Attribute False Optional (Union2 Boolean ConstrainBooleanParameters)
1081 |   echoCancellation v = fromUndefOrPrimNoDefault
1082 |                          "MediaTrackConstraintSet.getechoCancellation"
1083 |                          prim__echoCancellation
1084 |                          prim__setEchoCancellation
1085 |                          (v :> MediaTrackConstraintSet)
1086 |
1087 |
1088 |   export
1089 |   facingMode :
1090 |        {auto 0 _ : JSType t}
1091 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1092 |     -> t
1093 |     -> Attribute False Optional (Union3
1094 |                                    String
1095 |                                    (Array String)
1096 |                                    ConstrainDOMStringParameters)
1097 |   facingMode v = fromUndefOrPrimNoDefault
1098 |                    "MediaTrackConstraintSet.getfacingMode"
1099 |                    prim__facingMode
1100 |                    prim__setFacingMode
1101 |                    (v :> MediaTrackConstraintSet)
1102 |
1103 |
1104 |   export
1105 |   frameRate :
1106 |        {auto 0 _ : JSType t}
1107 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1108 |     -> t
1109 |     -> Attribute False Optional (Union2 Double ConstrainDoubleRange)
1110 |   frameRate v = fromUndefOrPrimNoDefault
1111 |                   "MediaTrackConstraintSet.getframeRate"
1112 |                   prim__frameRate
1113 |                   prim__setFrameRate
1114 |                   (v :> MediaTrackConstraintSet)
1115 |
1116 |
1117 |   export
1118 |   groupId :
1119 |        {auto 0 _ : JSType t}
1120 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1121 |     -> t
1122 |     -> Attribute False Optional (Union3
1123 |                                    String
1124 |                                    (Array String)
1125 |                                    ConstrainDOMStringParameters)
1126 |   groupId v = fromUndefOrPrimNoDefault
1127 |                 "MediaTrackConstraintSet.getgroupId"
1128 |                 prim__groupId
1129 |                 prim__setGroupId
1130 |                 (v :> MediaTrackConstraintSet)
1131 |
1132 |
1133 |   export
1134 |   height :
1135 |        {auto 0 _ : JSType t}
1136 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1137 |     -> t
1138 |     -> Attribute False Optional (Union2 Bits32 ConstrainULongRange)
1139 |   height v = fromUndefOrPrimNoDefault
1140 |                "MediaTrackConstraintSet.getheight"
1141 |                prim__height
1142 |                prim__setHeight
1143 |                (v :> MediaTrackConstraintSet)
1144 |
1145 |
1146 |   export
1147 |   latency :
1148 |        {auto 0 _ : JSType t}
1149 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1150 |     -> t
1151 |     -> Attribute False Optional (Union2 Double ConstrainDoubleRange)
1152 |   latency v = fromUndefOrPrimNoDefault
1153 |                 "MediaTrackConstraintSet.getlatency"
1154 |                 prim__latency
1155 |                 prim__setLatency
1156 |                 (v :> MediaTrackConstraintSet)
1157 |
1158 |
1159 |   export
1160 |   noiseSuppression :
1161 |        {auto 0 _ : JSType t}
1162 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1163 |     -> t
1164 |     -> Attribute False Optional (Union2 Boolean ConstrainBooleanParameters)
1165 |   noiseSuppression v = fromUndefOrPrimNoDefault
1166 |                          "MediaTrackConstraintSet.getnoiseSuppression"
1167 |                          prim__noiseSuppression
1168 |                          prim__setNoiseSuppression
1169 |                          (v :> MediaTrackConstraintSet)
1170 |
1171 |
1172 |   export
1173 |   resizeMode :
1174 |        {auto 0 _ : JSType t}
1175 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1176 |     -> t
1177 |     -> Attribute False Optional (Union3
1178 |                                    String
1179 |                                    (Array String)
1180 |                                    ConstrainDOMStringParameters)
1181 |   resizeMode v = fromUndefOrPrimNoDefault
1182 |                    "MediaTrackConstraintSet.getresizeMode"
1183 |                    prim__resizeMode
1184 |                    prim__setResizeMode
1185 |                    (v :> MediaTrackConstraintSet)
1186 |
1187 |
1188 |   export
1189 |   sampleRate :
1190 |        {auto 0 _ : JSType t}
1191 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1192 |     -> t
1193 |     -> Attribute False Optional (Union2 Bits32 ConstrainULongRange)
1194 |   sampleRate v = fromUndefOrPrimNoDefault
1195 |                    "MediaTrackConstraintSet.getsampleRate"
1196 |                    prim__sampleRate
1197 |                    prim__setSampleRate
1198 |                    (v :> MediaTrackConstraintSet)
1199 |
1200 |
1201 |   export
1202 |   sampleSize :
1203 |        {auto 0 _ : JSType t}
1204 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1205 |     -> t
1206 |     -> Attribute False Optional (Union2 Bits32 ConstrainULongRange)
1207 |   sampleSize v = fromUndefOrPrimNoDefault
1208 |                    "MediaTrackConstraintSet.getsampleSize"
1209 |                    prim__sampleSize
1210 |                    prim__setSampleSize
1211 |                    (v :> MediaTrackConstraintSet)
1212 |
1213 |
1214 |   export
1215 |   width :
1216 |        {auto 0 _ : JSType t}
1217 |     -> {auto 0 _ : Elem MediaTrackConstraintSet (Types t)}
1218 |     -> t
1219 |     -> Attribute False Optional (Union2 Bits32 ConstrainULongRange)
1220 |   width v = fromUndefOrPrimNoDefault
1221 |               "MediaTrackConstraintSet.getwidth"
1222 |               prim__width
1223 |               prim__setWidth
1224 |               (v :> MediaTrackConstraintSet)
1225 |
1226 |
1227 |
1228 | namespace MediaTrackConstraints
1229 |
1230 |   export
1231 |   new' :
1232 |        (advanced : Optional (Array MediaTrackConstraintSet))
1233 |     -> JSIO MediaTrackConstraints
1234 |   new' a = primJS $ MediaTrackConstraints.prim__new (toFFI a)
1235 |
1236 |   export
1237 |   new : JSIO MediaTrackConstraints
1238 |   new = primJS $ MediaTrackConstraints.prim__new undef
1239 |
1240 |
1241 |   export
1242 |   advanced :
1243 |        {auto 0 _ : JSType t}
1244 |     -> {auto 0 _ : Elem MediaTrackConstraints (Types t)}
1245 |     -> t
1246 |     -> Attribute False Optional (Array MediaTrackConstraintSet)
1247 |   advanced v = fromUndefOrPrimNoDefault
1248 |                  "MediaTrackConstraints.getadvanced"
1249 |                  prim__advanced
1250 |                  prim__setAdvanced
1251 |                  (v :> MediaTrackConstraints)
1252 |
1253 |
1254 |
1255 | namespace MediaTrackSettings
1256 |
1257 |   export
1258 |   new' :
1259 |        (width : Optional Int32)
1260 |     -> (height : Optional Int32)
1261 |     -> (aspectRatio : Optional Double)
1262 |     -> (frameRate : Optional Double)
1263 |     -> (facingMode : Optional String)
1264 |     -> (resizeMode : Optional String)
1265 |     -> (sampleRate : Optional Int32)
1266 |     -> (sampleSize : Optional Int32)
1267 |     -> (echoCancellation : Optional Bool)
1268 |     -> (autoGainControl : Optional Bool)
1269 |     -> (noiseSuppression : Optional Bool)
1270 |     -> (latency : Optional Double)
1271 |     -> (channelCount : Optional Int32)
1272 |     -> (deviceId : Optional String)
1273 |     -> (groupId : Optional String)
1274 |     -> JSIO MediaTrackSettings
1275 |   new' a b c d e f g h i j k l m n o = primJS $
1276 |     MediaTrackSettings.prim__new
1277 |       (toFFI a)
1278 |       (toFFI b)
1279 |       (toFFI c)
1280 |       (toFFI d)
1281 |       (toFFI e)
1282 |       (toFFI f)
1283 |       (toFFI g)
1284 |       (toFFI h)
1285 |       (toFFI i)
1286 |       (toFFI j)
1287 |       (toFFI k)
1288 |       (toFFI l)
1289 |       (toFFI m)
1290 |       (toFFI n)
1291 |       (toFFI o)
1292 |
1293 |   export
1294 |   new : JSIO MediaTrackSettings
1295 |   new = primJS $
1296 |     MediaTrackSettings.prim__new
1297 |       undef
1298 |       undef
1299 |       undef
1300 |       undef
1301 |       undef
1302 |       undef
1303 |       undef
1304 |       undef
1305 |       undef
1306 |       undef
1307 |       undef
1308 |       undef
1309 |       undef
1310 |       undef
1311 |       undef
1312 |
1313 |
1314 |   export
1315 |   aspectRatio :
1316 |        {auto 0 _ : JSType t}
1317 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1318 |     -> t
1319 |     -> Attribute False Optional Double
1320 |   aspectRatio v = fromUndefOrPrimNoDefault
1321 |                     "MediaTrackSettings.getaspectRatio"
1322 |                     prim__aspectRatio
1323 |                     prim__setAspectRatio
1324 |                     (v :> MediaTrackSettings)
1325 |
1326 |
1327 |   export
1328 |   autoGainControl :
1329 |        {auto 0 _ : JSType t}
1330 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1331 |     -> t
1332 |     -> Attribute False Optional Bool
1333 |   autoGainControl v = fromUndefOrPrimNoDefault
1334 |                         "MediaTrackSettings.getautoGainControl"
1335 |                         prim__autoGainControl
1336 |                         prim__setAutoGainControl
1337 |                         (v :> MediaTrackSettings)
1338 |
1339 |
1340 |   export
1341 |   channelCount :
1342 |        {auto 0 _ : JSType t}
1343 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1344 |     -> t
1345 |     -> Attribute False Optional Int32
1346 |   channelCount v = fromUndefOrPrimNoDefault
1347 |                      "MediaTrackSettings.getchannelCount"
1348 |                      prim__channelCount
1349 |                      prim__setChannelCount
1350 |                      (v :> MediaTrackSettings)
1351 |
1352 |
1353 |   export
1354 |   deviceId :
1355 |        {auto 0 _ : JSType t}
1356 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1357 |     -> t
1358 |     -> Attribute False Optional String
1359 |   deviceId v = fromUndefOrPrimNoDefault
1360 |                  "MediaTrackSettings.getdeviceId"
1361 |                  prim__deviceId
1362 |                  prim__setDeviceId
1363 |                  (v :> MediaTrackSettings)
1364 |
1365 |
1366 |   export
1367 |   echoCancellation :
1368 |        {auto 0 _ : JSType t}
1369 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1370 |     -> t
1371 |     -> Attribute False Optional Bool
1372 |   echoCancellation v = fromUndefOrPrimNoDefault
1373 |                          "MediaTrackSettings.getechoCancellation"
1374 |                          prim__echoCancellation
1375 |                          prim__setEchoCancellation
1376 |                          (v :> MediaTrackSettings)
1377 |
1378 |
1379 |   export
1380 |   facingMode :
1381 |        {auto 0 _ : JSType t}
1382 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1383 |     -> t
1384 |     -> Attribute False Optional String
1385 |   facingMode v = fromUndefOrPrimNoDefault
1386 |                    "MediaTrackSettings.getfacingMode"
1387 |                    prim__facingMode
1388 |                    prim__setFacingMode
1389 |                    (v :> MediaTrackSettings)
1390 |
1391 |
1392 |   export
1393 |   frameRate :
1394 |        {auto 0 _ : JSType t}
1395 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1396 |     -> t
1397 |     -> Attribute False Optional Double
1398 |   frameRate v = fromUndefOrPrimNoDefault
1399 |                   "MediaTrackSettings.getframeRate"
1400 |                   prim__frameRate
1401 |                   prim__setFrameRate
1402 |                   (v :> MediaTrackSettings)
1403 |
1404 |
1405 |   export
1406 |   groupId :
1407 |        {auto 0 _ : JSType t}
1408 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1409 |     -> t
1410 |     -> Attribute False Optional String
1411 |   groupId v = fromUndefOrPrimNoDefault
1412 |                 "MediaTrackSettings.getgroupId"
1413 |                 prim__groupId
1414 |                 prim__setGroupId
1415 |                 (v :> MediaTrackSettings)
1416 |
1417 |
1418 |   export
1419 |   height :
1420 |        {auto 0 _ : JSType t}
1421 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1422 |     -> t
1423 |     -> Attribute False Optional Int32
1424 |   height v = fromUndefOrPrimNoDefault
1425 |                "MediaTrackSettings.getheight"
1426 |                prim__height
1427 |                prim__setHeight
1428 |                (v :> MediaTrackSettings)
1429 |
1430 |
1431 |   export
1432 |   latency :
1433 |        {auto 0 _ : JSType t}
1434 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1435 |     -> t
1436 |     -> Attribute False Optional Double
1437 |   latency v = fromUndefOrPrimNoDefault
1438 |                 "MediaTrackSettings.getlatency"
1439 |                 prim__latency
1440 |                 prim__setLatency
1441 |                 (v :> MediaTrackSettings)
1442 |
1443 |
1444 |   export
1445 |   noiseSuppression :
1446 |        {auto 0 _ : JSType t}
1447 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1448 |     -> t
1449 |     -> Attribute False Optional Bool
1450 |   noiseSuppression v = fromUndefOrPrimNoDefault
1451 |                          "MediaTrackSettings.getnoiseSuppression"
1452 |                          prim__noiseSuppression
1453 |                          prim__setNoiseSuppression
1454 |                          (v :> MediaTrackSettings)
1455 |
1456 |
1457 |   export
1458 |   resizeMode :
1459 |        {auto 0 _ : JSType t}
1460 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1461 |     -> t
1462 |     -> Attribute False Optional String
1463 |   resizeMode v = fromUndefOrPrimNoDefault
1464 |                    "MediaTrackSettings.getresizeMode"
1465 |                    prim__resizeMode
1466 |                    prim__setResizeMode
1467 |                    (v :> MediaTrackSettings)
1468 |
1469 |
1470 |   export
1471 |   sampleRate :
1472 |        {auto 0 _ : JSType t}
1473 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1474 |     -> t
1475 |     -> Attribute False Optional Int32
1476 |   sampleRate v = fromUndefOrPrimNoDefault
1477 |                    "MediaTrackSettings.getsampleRate"
1478 |                    prim__sampleRate
1479 |                    prim__setSampleRate
1480 |                    (v :> MediaTrackSettings)
1481 |
1482 |
1483 |   export
1484 |   sampleSize :
1485 |        {auto 0 _ : JSType t}
1486 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1487 |     -> t
1488 |     -> Attribute False Optional Int32
1489 |   sampleSize v = fromUndefOrPrimNoDefault
1490 |                    "MediaTrackSettings.getsampleSize"
1491 |                    prim__sampleSize
1492 |                    prim__setSampleSize
1493 |                    (v :> MediaTrackSettings)
1494 |
1495 |
1496 |   export
1497 |   width :
1498 |        {auto 0 _ : JSType t}
1499 |     -> {auto 0 _ : Elem MediaTrackSettings (Types t)}
1500 |     -> t
1501 |     -> Attribute False Optional Int32
1502 |   width v = fromUndefOrPrimNoDefault
1503 |               "MediaTrackSettings.getwidth"
1504 |               prim__width
1505 |               prim__setWidth
1506 |               (v :> MediaTrackSettings)
1507 |
1508 |
1509 |
1510 | namespace MediaTrackSupportedConstraints
1511 |
1512 |   export
1513 |   new' :
1514 |        (width : Optional Bool)
1515 |     -> (height : Optional Bool)
1516 |     -> (aspectRatio : Optional Bool)
1517 |     -> (frameRate : Optional Bool)
1518 |     -> (facingMode : Optional Bool)
1519 |     -> (resizeMode : Optional Bool)
1520 |     -> (sampleRate : Optional Bool)
1521 |     -> (sampleSize : Optional Bool)
1522 |     -> (echoCancellation : Optional Bool)
1523 |     -> (autoGainControl : Optional Bool)
1524 |     -> (noiseSuppression : Optional Bool)
1525 |     -> (latency : Optional Bool)
1526 |     -> (channelCount : Optional Bool)
1527 |     -> (deviceId : Optional Bool)
1528 |     -> (groupId : Optional Bool)
1529 |     -> JSIO MediaTrackSupportedConstraints
1530 |   new' a b c d e f g h i j k l m n o = primJS $
1531 |     MediaTrackSupportedConstraints.prim__new
1532 |       (toFFI a)
1533 |       (toFFI b)
1534 |       (toFFI c)
1535 |       (toFFI d)
1536 |       (toFFI e)
1537 |       (toFFI f)
1538 |       (toFFI g)
1539 |       (toFFI h)
1540 |       (toFFI i)
1541 |       (toFFI j)
1542 |       (toFFI k)
1543 |       (toFFI l)
1544 |       (toFFI m)
1545 |       (toFFI n)
1546 |       (toFFI o)
1547 |
1548 |   export
1549 |   new : JSIO MediaTrackSupportedConstraints
1550 |   new = primJS $
1551 |     MediaTrackSupportedConstraints.prim__new
1552 |       undef
1553 |       undef
1554 |       undef
1555 |       undef
1556 |       undef
1557 |       undef
1558 |       undef
1559 |       undef
1560 |       undef
1561 |       undef
1562 |       undef
1563 |       undef
1564 |       undef
1565 |       undef
1566 |       undef
1567 |
1568 |
1569 |   export
1570 |   aspectRatio :
1571 |        {auto 0 _ : JSType t}
1572 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1573 |     -> t
1574 |     -> Attribute True Optional Bool
1575 |   aspectRatio v = fromUndefOrPrim
1576 |                     "MediaTrackSupportedConstraints.getaspectRatio"
1577 |                     prim__aspectRatio
1578 |                     prim__setAspectRatio
1579 |                     True
1580 |                     (v :> MediaTrackSupportedConstraints)
1581 |
1582 |
1583 |   export
1584 |   autoGainControl :
1585 |        {auto 0 _ : JSType t}
1586 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1587 |     -> t
1588 |     -> Attribute True Optional Bool
1589 |   autoGainControl v = fromUndefOrPrim
1590 |                         "MediaTrackSupportedConstraints.getautoGainControl"
1591 |                         prim__autoGainControl
1592 |                         prim__setAutoGainControl
1593 |                         True
1594 |                         (v :> MediaTrackSupportedConstraints)
1595 |
1596 |
1597 |   export
1598 |   channelCount :
1599 |        {auto 0 _ : JSType t}
1600 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1601 |     -> t
1602 |     -> Attribute True Optional Bool
1603 |   channelCount v = fromUndefOrPrim
1604 |                      "MediaTrackSupportedConstraints.getchannelCount"
1605 |                      prim__channelCount
1606 |                      prim__setChannelCount
1607 |                      True
1608 |                      (v :> MediaTrackSupportedConstraints)
1609 |
1610 |
1611 |   export
1612 |   deviceId :
1613 |        {auto 0 _ : JSType t}
1614 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1615 |     -> t
1616 |     -> Attribute True Optional Bool
1617 |   deviceId v = fromUndefOrPrim
1618 |                  "MediaTrackSupportedConstraints.getdeviceId"
1619 |                  prim__deviceId
1620 |                  prim__setDeviceId
1621 |                  True
1622 |                  (v :> MediaTrackSupportedConstraints)
1623 |
1624 |
1625 |   export
1626 |   echoCancellation :
1627 |        {auto 0 _ : JSType t}
1628 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1629 |     -> t
1630 |     -> Attribute True Optional Bool
1631 |   echoCancellation v = fromUndefOrPrim
1632 |                          "MediaTrackSupportedConstraints.getechoCancellation"
1633 |                          prim__echoCancellation
1634 |                          prim__setEchoCancellation
1635 |                          True
1636 |                          (v :> MediaTrackSupportedConstraints)
1637 |
1638 |
1639 |   export
1640 |   facingMode :
1641 |        {auto 0 _ : JSType t}
1642 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1643 |     -> t
1644 |     -> Attribute True Optional Bool
1645 |   facingMode v = fromUndefOrPrim
1646 |                    "MediaTrackSupportedConstraints.getfacingMode"
1647 |                    prim__facingMode
1648 |                    prim__setFacingMode
1649 |                    True
1650 |                    (v :> MediaTrackSupportedConstraints)
1651 |
1652 |
1653 |   export
1654 |   frameRate :
1655 |        {auto 0 _ : JSType t}
1656 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1657 |     -> t
1658 |     -> Attribute True Optional Bool
1659 |   frameRate v = fromUndefOrPrim
1660 |                   "MediaTrackSupportedConstraints.getframeRate"
1661 |                   prim__frameRate
1662 |                   prim__setFrameRate
1663 |                   True
1664 |                   (v :> MediaTrackSupportedConstraints)
1665 |
1666 |
1667 |   export
1668 |   groupId :
1669 |        {auto 0 _ : JSType t}
1670 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1671 |     -> t
1672 |     -> Attribute True Optional Bool
1673 |   groupId v = fromUndefOrPrim
1674 |                 "MediaTrackSupportedConstraints.getgroupId"
1675 |                 prim__groupId
1676 |                 prim__setGroupId
1677 |                 True
1678 |                 (v :> MediaTrackSupportedConstraints)
1679 |
1680 |
1681 |   export
1682 |   height :
1683 |        {auto 0 _ : JSType t}
1684 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1685 |     -> t
1686 |     -> Attribute True Optional Bool
1687 |   height v = fromUndefOrPrim
1688 |                "MediaTrackSupportedConstraints.getheight"
1689 |                prim__height
1690 |                prim__setHeight
1691 |                True
1692 |                (v :> MediaTrackSupportedConstraints)
1693 |
1694 |
1695 |   export
1696 |   latency :
1697 |        {auto 0 _ : JSType t}
1698 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1699 |     -> t
1700 |     -> Attribute True Optional Bool
1701 |   latency v = fromUndefOrPrim
1702 |                 "MediaTrackSupportedConstraints.getlatency"
1703 |                 prim__latency
1704 |                 prim__setLatency
1705 |                 True
1706 |                 (v :> MediaTrackSupportedConstraints)
1707 |
1708 |
1709 |   export
1710 |   noiseSuppression :
1711 |        {auto 0 _ : JSType t}
1712 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1713 |     -> t
1714 |     -> Attribute True Optional Bool
1715 |   noiseSuppression v = fromUndefOrPrim
1716 |                          "MediaTrackSupportedConstraints.getnoiseSuppression"
1717 |                          prim__noiseSuppression
1718 |                          prim__setNoiseSuppression
1719 |                          True
1720 |                          (v :> MediaTrackSupportedConstraints)
1721 |
1722 |
1723 |   export
1724 |   resizeMode :
1725 |        {auto 0 _ : JSType t}
1726 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1727 |     -> t
1728 |     -> Attribute True Optional Bool
1729 |   resizeMode v = fromUndefOrPrim
1730 |                    "MediaTrackSupportedConstraints.getresizeMode"
1731 |                    prim__resizeMode
1732 |                    prim__setResizeMode
1733 |                    True
1734 |                    (v :> MediaTrackSupportedConstraints)
1735 |
1736 |
1737 |   export
1738 |   sampleRate :
1739 |        {auto 0 _ : JSType t}
1740 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1741 |     -> t
1742 |     -> Attribute True Optional Bool
1743 |   sampleRate v = fromUndefOrPrim
1744 |                    "MediaTrackSupportedConstraints.getsampleRate"
1745 |                    prim__sampleRate
1746 |                    prim__setSampleRate
1747 |                    True
1748 |                    (v :> MediaTrackSupportedConstraints)
1749 |
1750 |
1751 |   export
1752 |   sampleSize :
1753 |        {auto 0 _ : JSType t}
1754 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1755 |     -> t
1756 |     -> Attribute True Optional Bool
1757 |   sampleSize v = fromUndefOrPrim
1758 |                    "MediaTrackSupportedConstraints.getsampleSize"
1759 |                    prim__sampleSize
1760 |                    prim__setSampleSize
1761 |                    True
1762 |                    (v :> MediaTrackSupportedConstraints)
1763 |
1764 |
1765 |   export
1766 |   width :
1767 |        {auto 0 _ : JSType t}
1768 |     -> {auto 0 _ : Elem MediaTrackSupportedConstraints (Types t)}
1769 |     -> t
1770 |     -> Attribute True Optional Bool
1771 |   width v = fromUndefOrPrim
1772 |               "MediaTrackSupportedConstraints.getwidth"
1773 |               prim__width
1774 |               prim__setWidth
1775 |               True
1776 |               (v :> MediaTrackSupportedConstraints)
1777 |
1778 |
1779 |
1780 | namespace Settings
1781 |
1782 |   export
1783 |   new : JSIO Settings
1784 |   new = primJS $ Settings.prim__new
1785 |
1786 |
1787 |
1788 | namespace ULongRange
1789 |
1790 |   export
1791 |   new' : (max : Optional Bits32) -> (min : Optional Bits32) -> JSIO ULongRange
1792 |   new' a b = primJS $ ULongRange.prim__new (toFFI a) (toFFI b)
1793 |
1794 |   export
1795 |   new : JSIO ULongRange
1796 |   new = primJS $ ULongRange.prim__new undef undef
1797 |
1798 |
1799 |   export
1800 |   max :
1801 |        {auto 0 _ : JSType t}
1802 |     -> {auto 0 _ : Elem ULongRange (Types t)}
1803 |     -> t
1804 |     -> Attribute False Optional Bits32
1805 |   max v = fromUndefOrPrimNoDefault
1806 |             "ULongRange.getmax"
1807 |             prim__max
1808 |             prim__setMax
1809 |             (v :> ULongRange)
1810 |
1811 |
1812 |   export
1813 |   min :
1814 |        {auto 0 _ : JSType t}
1815 |     -> {auto 0 _ : Elem ULongRange (Types t)}
1816 |     -> t
1817 |     -> Attribute False Optional Bits32
1818 |   min v = fromUndefOrPrimNoDefault
1819 |             "ULongRange.getmin"
1820 |             prim__min
1821 |             prim__setMin
1822 |             (v :> ULongRange)
1823 |
1824 |
1825 |
1826 |
1827 | --------------------------------------------------------------------------------
1828 | --          Callbacks
1829 | --------------------------------------------------------------------------------
1830 |
1831 | namespace NavigatorUserMediaErrorCallback
1832 |
1833 |   export
1834 |   toNavigatorUserMediaErrorCallback :
1835 |        (DOMException -> IO ())
1836 |     -> JSIO NavigatorUserMediaErrorCallback
1837 |   toNavigatorUserMediaErrorCallback cb = primJS $ prim__toNavigatorUserMediaErrorCallback cb
1838 |
1839 |
1840 |
1841 | namespace NavigatorUserMediaSuccessCallback
1842 |
1843 |   export
1844 |   toNavigatorUserMediaSuccessCallback :
1845 |        (MediaStream -> IO ())
1846 |     -> JSIO NavigatorUserMediaSuccessCallback
1847 |   toNavigatorUserMediaSuccessCallback cb = primJS $ prim__toNavigatorUserMediaSuccessCallback cb
1848 |