2015-10-08 21:48:07 +00:00
|
|
|
// Copyright 2013 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.
|
|
|
|
|
2015-10-14 22:46:23 +00:00
|
|
|
#include "packager/media/base/text_track_config.h"
|
2015-10-08 21:48:07 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2015-10-08 21:48:07 +00:00
|
|
|
namespace media {
|
|
|
|
|
|
|
|
TextTrackConfig::TextTrackConfig()
|
|
|
|
: kind_(kTextNone) {
|
|
|
|
}
|
|
|
|
|
|
|
|
TextTrackConfig::TextTrackConfig(TextKind kind,
|
|
|
|
const std::string& label,
|
|
|
|
const std::string& language,
|
|
|
|
const std::string& id)
|
|
|
|
: kind_(kind),
|
|
|
|
label_(label),
|
|
|
|
language_(language),
|
|
|
|
id_(id) {
|
|
|
|
}
|
|
|
|
|
|
|
|
bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
|
|
|
|
return config.kind() == kind_ &&
|
|
|
|
config.label() == label_ &&
|
|
|
|
config.language() == language_ &&
|
|
|
|
config.id() == id_;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|