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
7namespace shaka {
8namespace media {
9
10TextTrackConfig::TextTrackConfig() : kind_(kTextNone) {}
11
12TextTrackConfig::TextTrackConfig(TextKind kind,
13 const std::string& label,
14 const std::string& language,
15 const std::string& id)
16 : kind_(kind), label_(label), language_(language), id_(id) {}
17
18bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
19 return config.kind() == kind_ && config.label() == label_ &&
20 config.language() == language_ && config.id() == id_;
21}
22
23} // namespace media
24} // namespace shaka
All the methods that are virtual are virtual for mocking.