blob: 1a7ead49d02cdc33b4f6be9fbd387e1a44579070 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2010 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.
#include "remoting/protocol/rtp_video_writer.h"
#include "remoting/proto/video.pb.h"
#include "remoting/protocol/session.h"
#include "remoting/protocol/rtp_writer.h"
namespace remoting {
namespace protocol {
RtpVideoWriter::RtpVideoWriter() { }
RtpVideoWriter::~RtpVideoWriter() { }
void RtpVideoWriter::Init(protocol::Session* session) {
rtp_writer_.Init(session->video_rtp_channel(), session->video_rtcp_channel());
}
void RtpVideoWriter::SendPacket(const VideoPacket& packet) {
rtp_writer_.SendPacket(packet.data().data(), packet.data().size(),
packet.timestamp());
}
int RtpVideoWriter::GetPendingPackets() {
return rtp_writer_.GetPendingPackets();
}
void RtpVideoWriter::Close() {
rtp_writer_.Close();
}
} // namespace protocol
} // namespace remoting
|