| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://github.com/alvestrand/webrtc-media-streams/blob/master/explainer.md#api |
| // TODO(crbug.com/1052765): Add link to standard when available. |
| |
| // TODO(crbug.com/1052765): Align with WebCodecs definition once it is stable. |
| [ |
| Exposed=Window |
| ] interface RTCEncodedAudioFrame { |
| readonly attribute unsigned long long timestamp; // microseconds |
| attribute ArrayBuffer data; |
| RTCEncodedAudioFrameMetadata getMetadata(); |
| // TODO(crbug.com/1052765): Remove the following fields before enabling |
| // by default. |
| [RuntimeEnabled=RTCInsertableStreams] readonly attribute ArrayBuffer additionalData; |
| [RuntimeEnabled=RTCInsertableStreams] readonly attribute unsigned long synchronizationSource; |
| [RuntimeEnabled=RTCInsertableStreams] readonly attribute FrozenArray<unsigned long> contributingSources; |
| stringifier; |
| }; |