RTCRtpTransceiver.currentDirection

 The read-only RTCRtpTransceiver property currentDirection is a string which indicates the current directionality of the transceiver.  Its value is one of the strings defined in the table below.  You can examine and set the transceiver's preferred directionality using direction property. 

Value

A DOMString whose value is one of the strings which are a member of the following values.    Value 
RTCRtpSender behavior 
RTCRtpReceiver behavior     "sendrecv"  Offers to send RTP data, and will do so if the other peer accepts the connection and at least one of the sender's encodings is active.  Offers to receive RTP data, and does so if the other peer accepts.   "sendonly"  Offers to send RTP data, and will do so if the other peer accepts the connection and at least one of the sender's encodings is active.  Does not offer to receive RTP data and will not do so.   "recvonly" Does not offer to send RTP data, and will not do so. Offers to receive RTP data, and will do so if the other peer offers.   "inactive" Does not offer to send RTP data, and will not do so. Does not offer to receive RTP data and will not do so.   

Specifications

Specification
WebRTC 1.0: Real-Time Communication Between Browsers # dom-rtcrtptransceiver-currentdirection

Browser compatibility




Desktop
Mobile



Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet



currentDirection
69
No
59
No
56
12.1
69
69
59
48
12.2
10.0


See also
 RTCRtpTransceiver.direction 


Found a problem with this page?

Edit on GitHub
Source on GitHub
Report a problem with this content on GitHub
Want to fix the problem yourself? See our Contribution guide.


Last modified: Apr 1, 2022, by MDN contributors


    
{'path': 'public/docs/dom/rtcrtptransceiver/currentdirection.html', 'source': 'DevDocs.IO'}