You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
592 B
26 lines
592 B
// Copyright 2015 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 "cast/streaming/rtp_time.h"
|
|
|
|
#include <sstream>
|
|
|
|
namespace openscreen {
|
|
namespace cast {
|
|
|
|
std::ostream& operator<<(std::ostream& out, const RtpTimeDelta rhs) {
|
|
if (rhs.value_ >= 0)
|
|
out << "RTP+";
|
|
else
|
|
out << "RTP";
|
|
return out << rhs.value_;
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& out, const RtpTimeTicks rhs) {
|
|
return out << "RTP@" << rhs.value_;
|
|
}
|
|
|
|
} // namespace cast
|
|
} // namespace openscreen
|