1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819
#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCPeerConnection , typescript_type = "RTCPeerConnection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub type RtcPeerConnection; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = localDescription)] #[doc = "Getter for the `localDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/localDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn local_description(this: &RtcPeerConnection) -> Option<RtcSessionDescription>; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentLocalDescription)] #[doc = "Getter for the `currentLocalDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn current_local_description(this: &RtcPeerConnection) -> Option<RtcSessionDescription>; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingLocalDescription)] #[doc = "Getter for the `pendingLocalDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn pending_local_description(this: &RtcPeerConnection) -> Option<RtcSessionDescription>; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = remoteDescription)] #[doc = "Getter for the `remoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/remoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn remote_description(this: &RtcPeerConnection) -> Option<RtcSessionDescription>; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentRemoteDescription)] #[doc = "Getter for the `currentRemoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn current_remote_description(this: &RtcPeerConnection) -> Option<RtcSessionDescription>; #[cfg(feature = "RtcSessionDescription")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingRemoteDescription)] #[doc = "Getter for the `pendingRemoteDescription` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] pub fn pending_remote_description(this: &RtcPeerConnection) -> Option<RtcSessionDescription>; #[cfg(feature = "RtcSignalingState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = signalingState)] #[doc = "Getter for the `signalingState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/signalingState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSignalingState`*"] pub fn signaling_state(this: &RtcPeerConnection) -> RtcSignalingState; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = canTrickleIceCandidates)] #[doc = "Getter for the `canTrickleIceCandidates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn can_trickle_ice_candidates(this: &RtcPeerConnection) -> Option<bool>; #[cfg(feature = "RtcIceGatheringState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceGatheringState)] #[doc = "Getter for the `iceGatheringState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceGatheringState`, `RtcPeerConnection`*"] pub fn ice_gathering_state(this: &RtcPeerConnection) -> RtcIceGatheringState; #[cfg(feature = "RtcIceConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceConnectionState)] #[doc = "Getter for the `iceConnectionState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceConnectionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceConnectionState`, `RtcPeerConnection`*"] pub fn ice_connection_state(this: &RtcPeerConnection) -> RtcIceConnectionState; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = peerIdentity)] #[doc = "Getter for the `peerIdentity` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/peerIdentity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn peer_identity(this: &RtcPeerConnection) -> ::js_sys::Promise; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = idpLoginUrl)] #[doc = "Getter for the `idpLoginUrl` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/idpLoginUrl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn idp_login_url(this: &RtcPeerConnection) -> Option<String>; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] #[doc = "Getter for the `onnegotiationneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onnegotiationneeded(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] #[doc = "Setter for the `onnegotiationneeded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onnegotiationneeded(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicecandidate)] #[doc = "Getter for the `onicecandidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onicecandidate(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicecandidate)] #[doc = "Setter for the `onicecandidate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onicecandidate(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange)] #[doc = "Getter for the `onsignalingstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onsignalingstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange)] #[doc = "Setter for the `onsignalingstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onsignalingstatechange(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddstream)] #[doc = "Getter for the `onaddstream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onaddstream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddstream)] #[doc = "Setter for the `onaddstream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onaddstream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddtrack)] #[doc = "Getter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onaddtrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddtrack)] #[doc = "Setter for the `onaddtrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onaddtrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = ontrack)] #[doc = "Getter for the `ontrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn ontrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = ontrack)] #[doc = "Setter for the `ontrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_ontrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onremovestream)] #[doc = "Getter for the `onremovestream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onremovestream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onremovestream)] #[doc = "Setter for the `onremovestream` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onremovestream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange)] #[doc = "Getter for the `oniceconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn oniceconnectionstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange)] #[doc = "Setter for the `oniceconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_oniceconnectionstatechange( this: &RtcPeerConnection, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange)] #[doc = "Getter for the `onicegatheringstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onicegatheringstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange)] #[doc = "Setter for the `onicegatheringstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onicegatheringstatechange( this: &RtcPeerConnection, value: Option<&::js_sys::Function>, ); # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = ondatachannel)] #[doc = "Getter for the `ondatachannel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn ondatachannel(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = ondatachannel)] #[doc = "Setter for the `ondatachannel` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_ondatachannel(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn new() -> Result<RtcPeerConnection, JsValue>; #[cfg(feature = "RtcConfiguration")] #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn new_with_configuration( configuration: &RtcConfiguration, ) -> Result<RtcPeerConnection, JsValue>; #[cfg(feature = "RtcConfiguration")] #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn new_with_configuration_and_constraints( configuration: &RtcConfiguration, constraints: Option<&::js_sys::Object>, ) -> Result<RtcPeerConnection, JsValue>; #[cfg(feature = "RtcIceCandidateInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`, `RtcPeerConnection`*"] pub fn add_ice_candidate_with_opt_rtc_ice_candidate_init( this: &RtcPeerConnection, candidate: Option<&RtcIceCandidateInit>, ) -> ::js_sys::Promise; #[cfg(feature = "RtcIceCandidate")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnection`*"] pub fn add_ice_candidate_with_opt_rtc_ice_candidate( this: &RtcPeerConnection, candidate: Option<&RtcIceCandidate>, ) -> ::js_sys::Promise; #[cfg(feature = "RtcIceCandidate")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate)] #[doc = "The `addIceCandidate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnection`*"] pub fn add_ice_candidate_with_rtc_ice_candidate_and_success_callback_and_failure_callback( this: &RtcPeerConnection, candidate: &RtcIceCandidate, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "MediaStream")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addStream)] #[doc = "The `addStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `RtcPeerConnection`*"] pub fn add_stream(this: &RtcPeerConnection, stream: &MediaStream); #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , variadic , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams: &::js_sys::Array, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_0( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_1( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_2( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_3( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_4( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_5( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, more_streams_5: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_6( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, more_streams_5: &MediaStream, more_streams_6: &MediaStream, ) -> RtcRtpSender; #[cfg(all( feature = "MediaStream", feature = "MediaStreamTrack", feature = "RtcRtpSender", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)] #[doc = "The `addTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] pub fn add_track_7( this: &RtcPeerConnection, track: &MediaStreamTrack, stream: &MediaStream, more_streams_1: &MediaStream, more_streams_2: &MediaStream, more_streams_3: &MediaStream, more_streams_4: &MediaStream, more_streams_5: &MediaStream, more_streams_6: &MediaStream, more_streams_7: &MediaStream, ) -> RtcRtpSender; #[cfg(all(feature = "MediaStreamTrack", feature = "RtcRtpTransceiver",))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpTransceiver`*"] pub fn add_transceiver_with_media_stream_track( this: &RtcPeerConnection, track_or_kind: &MediaStreamTrack, ) -> RtcRtpTransceiver; #[cfg(feature = "RtcRtpTransceiver")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpTransceiver`*"] pub fn add_transceiver_with_str( this: &RtcPeerConnection, track_or_kind: &str, ) -> RtcRtpTransceiver; #[cfg(all( feature = "MediaStreamTrack", feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit", ))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpTransceiver`, `RtcRtpTransceiverInit`*"] pub fn add_transceiver_with_media_stream_track_and_init( this: &RtcPeerConnection, track_or_kind: &MediaStreamTrack, init: &RtcRtpTransceiverInit, ) -> RtcRtpTransceiver; #[cfg(all(feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit",))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver)] #[doc = "The `addTransceiver()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpTransceiver`, `RtcRtpTransceiverInit`*"] pub fn add_transceiver_with_str_and_init( this: &RtcPeerConnection, track_or_kind: &str, init: &RtcRtpTransceiverInit, ) -> RtcRtpTransceiver; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn close(this: &RtcPeerConnection); # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_answer(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "RtcAnswerOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`, `RtcPeerConnection`*"] pub fn create_answer_with_rtc_answer_options( this: &RtcPeerConnection, options: &RtcAnswerOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer)] #[doc = "The `createAnswer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_answer_with_success_callback_and_failure_callback( this: &RtcPeerConnection, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcDataChannel")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel)] #[doc = "The `createDataChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcPeerConnection`*"] pub fn create_data_channel(this: &RtcPeerConnection, label: &str) -> RtcDataChannel; #[cfg(all(feature = "RtcDataChannel", feature = "RtcDataChannelInit",))] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel)] #[doc = "The `createDataChannel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelInit`, `RtcPeerConnection`*"] pub fn create_data_channel_with_data_channel_dict( this: &RtcPeerConnection, label: &str, data_channel_dict: &RtcDataChannelInit, ) -> RtcDataChannel; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_offer(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "RtcOfferOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`, `RtcPeerConnection`*"] pub fn create_offer_with_rtc_offer_options( this: &RtcPeerConnection, options: &RtcOfferOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn create_offer_with_callback_and_failure_callback( this: &RtcPeerConnection, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcOfferOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = createOffer)] #[doc = "The `createOffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`, `RtcPeerConnection`*"] pub fn create_offer_with_callback_and_failure_callback_and_options( this: &RtcPeerConnection, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, options: &RtcOfferOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate)] #[doc = "The `generateCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn generate_certificate_with_object( keygen_algorithm: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate)] #[doc = "The `generateCertificate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn generate_certificate_with_str( keygen_algorithm: &str, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "RtcConfiguration")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getConfiguration)] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn get_configuration(this: &RtcPeerConnection) -> RtcConfiguration; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getIdentityAssertion)] #[doc = "The `getIdentityAssertion()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getIdentityAssertion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_identity_assertion(this: &RtcPeerConnection) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getLocalStreams)] #[doc = "The `getLocalStreams()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getLocalStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_local_streams(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getReceivers)] #[doc = "The `getReceivers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getReceivers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_receivers(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getRemoteStreams)] #[doc = "The `getRemoteStreams()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getRemoteStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_remote_streams(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getSenders)] #[doc = "The `getSenders()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getSenders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_senders(this: &RtcPeerConnection) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_stats(this: &RtcPeerConnection) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`*"] pub fn get_stats_with_selector( this: &RtcPeerConnection, selector: Option<&MediaStreamTrack>, ) -> ::js_sys::Promise; #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`*"] pub fn get_stats_with_selector_and_success_callback_and_failure_callback( this: &RtcPeerConnection, selector: Option<&MediaStreamTrack>, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getTransceivers)] #[doc = "The `getTransceivers()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getTransceivers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn get_transceivers(this: &RtcPeerConnection) -> ::js_sys::Array; #[cfg(feature = "RtcRtpSender")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = removeTrack)] #[doc = "The `removeTrack()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/removeTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpSender`*"] pub fn remove_track(this: &RtcPeerConnection, sender: &RtcRtpSender); # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider)] #[doc = "The `setIdentityProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_identity_provider(this: &RtcPeerConnection, provider: &str); #[cfg(feature = "RtcIdentityProviderOptions")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider)] #[doc = "The `setIdentityProvider()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`, `RtcPeerConnection`*"] pub fn set_identity_provider_with_options( this: &RtcPeerConnection, provider: &str, options: &RtcIdentityProviderOptions, ); #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription)] #[doc = "The `setLocalDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_local_description( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription)] #[doc = "The `setLocalDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_local_description_with_success_callback_and_failure_callback( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription)] #[doc = "The `setRemoteDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_remote_description( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, ) -> ::js_sys::Promise; #[cfg(feature = "RtcSessionDescriptionInit")] # [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription)] #[doc = "The `setRemoteDescription()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] pub fn set_remote_description_with_success_callback_and_failure_callback( this: &RtcPeerConnection, description: &RtcSessionDescriptionInit, success_callback: &::js_sys::Function, failure_callback: &::js_sys::Function, ) -> ::js_sys::Promise; }