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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 | 105 |
106 // TODO(guidou): The selector argument should the first (nullable, | 106 // TODO(guidou): The selector argument should the first (nullable, |
107 // non-optional) argument, and there should be a third failureCallback | 107 // non-optional) argument, and there should be a third failureCallback |
108 // argument. | 108 // argument. |
109 [CallWith=ScriptState, LegacyInterfaceTypeChecking] Promise<void> getStats(R TCStatsCallback successCallback, optional MediaStreamTrack? selector); | 109 [CallWith=ScriptState, LegacyInterfaceTypeChecking] Promise<void> getStats(R TCStatsCallback successCallback, optional MediaStreamTrack? selector); |
110 // TODO(hbos): The spec has an optional |selector| argument that is not | 110 // TODO(hbos): The spec has an optional |selector| argument that is not |
111 // supported yet. There is a discussion about what to do with it (clarify | 111 // supported yet. There is a discussion about what to do with it (clarify |
112 // spec, remove it or change it?): https://github.com/w3c/webrtc-stats/issue s/116 | 112 // spec, remove it or change it?): https://github.com/w3c/webrtc-stats/issue s/116 |
113 [CallWith=ScriptState] Promise<RTCStatsReport> getStats(); | 113 [CallWith=ScriptState] Promise<RTCStatsReport> getStats(); |
114 | 114 |
115 // RTP Media API | |
116 | |
Guido Urdaneta
2017/07/05 15:37:06
nit: remove this blank line
hbos_chromium
2017/07/06 12:31:38
Done.
| |
115 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getsenders | 117 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getsenders |
116 [RuntimeEnabled=RTCRtpSender] sequence<RTCRtpSender> getSenders(); | 118 [RuntimeEnabled=RTCRtpSender] sequence<RTCRtpSender> getSenders(); |
117 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getreceivers | 119 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getreceivers |
118 sequence<RTCRtpReceiver> getReceivers(); | 120 sequence<RTCRtpReceiver> getReceivers(); |
121 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack | |
122 [RuntimeEnabled=RTCRtpSender, RaisesException] RTCRtpSender addTrack(MediaSt reamTrack track, MediaStream... streams); | |
123 // https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-removetrack | |
124 [RuntimeEnabled=RTCRtpSender, RaisesException] void removeTrack(RTCRtpSender sender); | |
119 | 125 |
120 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api | 126 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api |
121 [CallWith=ScriptState, RaisesException] RTCDataChannel createDataChannel(USV String label, optional RTCDataChannelInit dataChannelDict); | 127 [CallWith=ScriptState, RaisesException] RTCDataChannel createDataChannel(USV String label, optional RTCDataChannelInit dataChannelDict); |
122 attribute EventHandler ondatachannel; | 128 attribute EventHandler ondatachannel; |
123 | 129 |
124 // Certificate management | 130 // Certificate management |
125 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt | 131 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt |
126 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm); | 132 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm); |
127 | 133 |
128 // Non-standard or removed from the spec: | 134 // Non-standard or removed from the spec: |
129 [Measure] sequence<MediaStream> getLocalStreams(); | 135 [Measure] sequence<MediaStream> getLocalStreams(); |
130 [Measure] sequence<MediaStream> getRemoteStreams(); | 136 [Measure] sequence<MediaStream> getRemoteStreams(); |
131 [DeprecateAs=V8RTCPeerConnection_GetStreamById_Method] MediaStream getStream ById(DOMString streamId); | 137 [DeprecateAs=V8RTCPeerConnection_GetStreamById_Method] MediaStream getStream ById(DOMString streamId); |
132 [Measure, CallWith=ScriptState, RaisesException] void addStream(MediaStream? stream, optional Dictionary mediaConstraints); | 138 [Measure, CallWith=ScriptState, RaisesException] void addStream(MediaStream? stream, optional Dictionary mediaConstraints); |
133 [Measure, RaisesException] void removeStream(MediaStream? stream); | 139 [Measure, RaisesException] void removeStream(MediaStream? stream); |
134 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t rack); | 140 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t rack); |
135 attribute EventHandler onaddstream; | 141 attribute EventHandler onaddstream; |
136 attribute EventHandler onremovestream; | 142 attribute EventHandler onremovestream; |
137 }; | 143 }; |
OLD | NEW |