Shaka Packager SDK
Loading...
Searching...
No Matches
text_track_config.cc
1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include <packager/media/base/text_track_config.h>
6
7#include <string>
8
9namespace shaka {
10namespace media {
11
12TextTrackConfig::TextTrackConfig() : kind_(kTextNone) {}
13
14TextTrackConfig::TextTrackConfig(TextKind kind,
15 const std::string& label,
16 const std::string& language,
17 const std::string& id)
18 : kind_(kind), label_(label), language_(language), id_(id) {}
19
20bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
21 return config.kind() == kind_ && config.label() == label_ &&
22 config.language() == language_ && config.id() == id_;
23}
24
25} // namespace media
26} // namespace shaka
All the methods that are virtual are virtual for mocking.