#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_frame_delegate.h"
#include <utility>
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/webrtc/api/frame_transformer_factory.h"
namespace blink {
static constexpr char kRTCEncodedAudioFrameDetachKey[] = …;
const void* RTCEncodedAudioFramesAttachment::kAttachmentKey;
RTCEncodedAudioFrameDelegate::RTCEncodedAudioFrameDelegate(
std::unique_ptr<webrtc::TransformableAudioFrameInterface> webrtc_frame,
rtc::ArrayView<const unsigned int> contributing_sources,
std::optional<uint16_t> sequence_number)
: … { … }
uint32_t RTCEncodedAudioFrameDelegate::RtpTimestamp() const { … }
DOMArrayBuffer* RTCEncodedAudioFrameDelegate::CreateDataBuffer(
v8::Isolate* isolate) const { … }
void RTCEncodedAudioFrameDelegate::SetData(const DOMArrayBuffer* data) { … }
base::expected<void, String> RTCEncodedAudioFrameDelegate::SetRtpTimestamp(
uint32_t timestamp) { … }
std::optional<uint32_t> RTCEncodedAudioFrameDelegate::Ssrc() const { … }
std::optional<uint8_t> RTCEncodedAudioFrameDelegate::PayloadType() const { … }
std::optional<std::string> RTCEncodedAudioFrameDelegate::MimeType() const { … }
std::optional<uint16_t> RTCEncodedAudioFrameDelegate::SequenceNumber() const { … }
Vector<uint32_t> RTCEncodedAudioFrameDelegate::ContributingSources() const { … }
std::optional<uint64_t> RTCEncodedAudioFrameDelegate::AbsCaptureTime() const { … }
std::unique_ptr<webrtc::TransformableAudioFrameInterface>
RTCEncodedAudioFrameDelegate::PassWebRtcFrame() { … }
std::unique_ptr<webrtc::TransformableAudioFrameInterface>
RTCEncodedAudioFrameDelegate::CloneWebRtcFrame() { … }
}