OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // RTP Media API | 115 // RTP Media API |
116 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getsenders | 116 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getsenders |
117 [RuntimeEnabled=RTCRtpSender] sequence<RTCRtpSender> getSenders(); | 117 [RuntimeEnabled=RTCRtpSender] sequence<RTCRtpSender> getSenders(); |
118 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getreceivers | 118 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getreceivers |
119 sequence<RTCRtpReceiver> getReceivers(); | 119 sequence<RTCRtpReceiver> getReceivers(); |
120 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack | 120 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack |
121 [RuntimeEnabled=RTCRtpSender, RaisesException] RTCRtpSender addTrack(MediaSt
reamTrack track, MediaStream... streams); | 121 [RuntimeEnabled=RTCRtpSender, RaisesException] RTCRtpSender addTrack(MediaSt
reamTrack track, MediaStream... streams); |
122 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-removetrack | 122 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-removetrack |
123 [RuntimeEnabled=RTCRtpSender, RaisesException] void removeTrack(RTCRtpSender
sender); | 123 [RuntimeEnabled=RTCRtpSender, RaisesException] void removeTrack(RTCRtpSender
sender); |
| 124 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-ontrack |
| 125 attribute EventHandler ontrack; |
124 | 126 |
125 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api | 127 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api |
126 [CallWith=ScriptState, RaisesException] RTCDataChannel createDataChannel(USV
String label, optional RTCDataChannelInit dataChannelDict); | 128 [CallWith=ScriptState, RaisesException] RTCDataChannel createDataChannel(USV
String label, optional RTCDataChannelInit dataChannelDict); |
127 attribute EventHandler ondatachannel; | 129 attribute EventHandler ondatachannel; |
128 | 130 |
129 // Certificate management | 131 // Certificate management |
130 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt | 132 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt |
131 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener
ateCertificate(AlgorithmIdentifier keygenAlgorithm); | 133 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener
ateCertificate(AlgorithmIdentifier keygenAlgorithm); |
132 | 134 |
133 // Non-standard or removed from the spec: | 135 // Non-standard or removed from the spec: |
134 [Measure] sequence<MediaStream> getLocalStreams(); | 136 [Measure] sequence<MediaStream> getLocalStreams(); |
135 [Measure] sequence<MediaStream> getRemoteStreams(); | 137 [Measure] sequence<MediaStream> getRemoteStreams(); |
136 [DeprecateAs=V8RTCPeerConnection_GetStreamById_Method] MediaStream getStream
ById(DOMString streamId); | 138 [DeprecateAs=V8RTCPeerConnection_GetStreamById_Method] MediaStream getStream
ById(DOMString streamId); |
137 [Measure, CallWith=ScriptState, RaisesException] void addStream(MediaStream?
stream, optional Dictionary mediaConstraints); | 139 [Measure, CallWith=ScriptState, RaisesException] void addStream(MediaStream?
stream, optional Dictionary mediaConstraints); |
138 [Measure, RaisesException] void removeStream(MediaStream? stream); | 140 [Measure, RaisesException] void removeStream(MediaStream? stream); |
139 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t
rack); | 141 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t
rack); |
140 attribute EventHandler onaddstream; | 142 attribute EventHandler onaddstream; |
141 attribute EventHandler onremovestream; | 143 attribute EventHandler onremovestream; |
142 }; | 144 }; |
OLD | NEW |