2016-09-23 16:04:26 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
|
|
|
|
Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
|
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
2017-01-11 18:31:31 +00:00
|
|
|
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
2016-09-23 16:04:26 +00:00
|
|
|
*/
|
|
|
|
#include "media/player/media_player_instance.h"
|
|
|
|
|
|
|
|
#include "media/media_audio.h"
|
2017-01-19 08:24:43 +00:00
|
|
|
#include "media/media_audio_capture.h"
|
2016-09-23 16:04:26 +00:00
|
|
|
#include "observer_peer.h"
|
2017-05-12 17:44:18 +00:00
|
|
|
#include "messenger.h"
|
|
|
|
#include "auth_session.h"
|
|
|
|
#include "calls/calls_instance.h"
|
2017-06-22 15:11:41 +00:00
|
|
|
#include "history/history_media.h"
|
2016-09-23 16:04:26 +00:00
|
|
|
|
|
|
|
namespace Media {
|
|
|
|
namespace Player {
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
Instance *SingleInstance = nullptr;
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
void start() {
|
2017-05-03 11:36:39 +00:00
|
|
|
Audio::Start();
|
|
|
|
Capture::Start();
|
2016-09-23 16:04:26 +00:00
|
|
|
|
2017-01-19 08:24:43 +00:00
|
|
|
SingleInstance = new Instance();
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void finish() {
|
2016-10-08 09:10:33 +00:00
|
|
|
delete base::take(SingleInstance);
|
2016-09-23 16:04:26 +00:00
|
|
|
|
2017-05-03 11:36:39 +00:00
|
|
|
Capture::Finish();
|
|
|
|
Audio::Finish();
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
Instance::Instance()
|
|
|
|
: _songData(AudioMsgId::Type::Song, OverviewMusicFiles)
|
|
|
|
, _voiceData(AudioMsgId::Type::Voice, OverviewRoundVoiceFiles) {
|
2017-01-19 08:24:43 +00:00
|
|
|
subscribe(Media::Player::Updated(), [this](const AudioMsgId &audioId) {
|
2017-02-10 22:37:37 +00:00
|
|
|
handleSongUpdate(audioId);
|
2016-09-23 16:04:26 +00:00
|
|
|
});
|
2016-09-28 21:16:02 +00:00
|
|
|
auto observeEvents = Notify::PeerUpdate::Flag::SharedMediaChanged;
|
|
|
|
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {
|
|
|
|
notifyPeerUpdated(update);
|
|
|
|
}));
|
2016-10-19 08:59:19 +00:00
|
|
|
subscribe(Global::RefSelfChanged(), [this] {
|
|
|
|
if (!App::self()) {
|
|
|
|
handleLogout();
|
|
|
|
}
|
|
|
|
});
|
2017-05-12 17:44:18 +00:00
|
|
|
|
|
|
|
// While we have one Media::Player::Instance for all authsessions we have to do this.
|
|
|
|
auto handleAuthSessionChange = [this] {
|
|
|
|
if (AuthSession::Exists()) {
|
|
|
|
subscribe(AuthSession::Current().calls().currentCallChanged(), [this](Calls::Call *call) {
|
|
|
|
if (call) {
|
|
|
|
pause(AudioMsgId::Type::Voice);
|
|
|
|
pause(AudioMsgId::Type::Song);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
subscribe(Messenger::Instance().authSessionChanged(), [handleAuthSessionChange] {
|
|
|
|
handleAuthSessionChange();
|
|
|
|
});
|
|
|
|
handleAuthSessionChange();
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
AudioMsgId::Type Instance::getActiveType() const {
|
|
|
|
auto voiceData = getData(AudioMsgId::Type::Voice);
|
|
|
|
if (voiceData->current) {
|
|
|
|
auto state = mixer()->currentState(voiceData->type);
|
2017-05-21 13:16:39 +00:00
|
|
|
if (voiceData->current == state.id && !IsStoppedOrStopping(state.state)) {
|
2017-05-19 18:11:33 +00:00
|
|
|
return voiceData->type;
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
2017-05-19 18:11:33 +00:00
|
|
|
return AudioMsgId::Type::Song;
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::notifyPeerUpdated(const Notify::PeerUpdate &update) {
|
|
|
|
checkPeerUpdate(AudioMsgId::Type::Song, update);
|
|
|
|
checkPeerUpdate(AudioMsgId::Type::Voice, update);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Instance::checkPeerUpdate(AudioMsgId::Type type, const Notify::PeerUpdate &update) {
|
|
|
|
if (auto data = getData(type)) {
|
|
|
|
if (!data->history) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!(update.mediaTypesMask & (1 << data->overview))) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (update.peer != data->history->peer && (!data->migrated || update.peer != data->migrated->peer)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
rebuildPlaylist(data);
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Instance::handleSongUpdate(const AudioMsgId &audioId) {
|
2017-02-10 22:37:37 +00:00
|
|
|
emitUpdate(audioId.type(), [&audioId](const AudioMsgId &playing) {
|
2016-09-23 16:04:26 +00:00
|
|
|
return (audioId == playing);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void Instance::setCurrent(const AudioMsgId &audioId) {
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto data = getData(audioId.type())) {
|
|
|
|
if (data->current != audioId) {
|
|
|
|
data->current = audioId;
|
|
|
|
data->isPlaying = false;
|
|
|
|
|
|
|
|
auto history = data->history;
|
|
|
|
auto migrated = data->migrated;
|
|
|
|
auto item = data->current ? App::histItemById(data->current.contextId()) : nullptr;
|
2017-02-10 22:37:37 +00:00
|
|
|
if (item) {
|
2017-05-19 18:11:33 +00:00
|
|
|
data->history = item->history()->peer->migrateTo() ? App::history(item->history()->peer->migrateTo()) : item->history();
|
|
|
|
data->migrated = data->history->peer->migrateFrom() ? App::history(data->history->peer->migrateFrom()) : nullptr;
|
2017-02-10 22:37:37 +00:00
|
|
|
} else {
|
2017-05-19 18:11:33 +00:00
|
|
|
data->history = nullptr;
|
|
|
|
data->migrated = nullptr;
|
2017-02-10 22:37:37 +00:00
|
|
|
}
|
2017-05-21 13:16:39 +00:00
|
|
|
_trackChangedNotifier.notify(data->type, true);
|
2017-05-19 18:11:33 +00:00
|
|
|
if (data->history != history || data->migrated != migrated) {
|
|
|
|
rebuildPlaylist(data);
|
2017-02-10 22:37:37 +00:00
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::rebuildPlaylist(Data *data) {
|
|
|
|
Expects(data != nullptr);
|
|
|
|
|
|
|
|
data->playlist.clear();
|
|
|
|
if (data->history && data->history->loadedAtBottom()) {
|
|
|
|
auto &historyOverview = data->history->overview[data->overview];
|
|
|
|
if (data->migrated && data->migrated->loadedAtBottom() && data->history->loadedAtTop()) {
|
|
|
|
auto &migratedOverview = data->migrated->overview[data->overview];
|
|
|
|
data->playlist.reserve(migratedOverview.size() + historyOverview.size());
|
2016-09-23 16:04:26 +00:00
|
|
|
for_const (auto msgId, migratedOverview) {
|
2017-05-19 18:11:33 +00:00
|
|
|
data->playlist.push_back(FullMsgId(data->migrated->channelId(), msgId));
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
} else {
|
2017-05-19 18:11:33 +00:00
|
|
|
data->playlist.reserve(historyOverview.size());
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
for_const (auto msgId, historyOverview) {
|
2017-05-19 18:11:33 +00:00
|
|
|
data->playlist.push_back(FullMsgId(data->history->channelId(), msgId));
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
2017-05-21 13:16:39 +00:00
|
|
|
_playlistChangedNotifier.notify(data->type, true);
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-21 17:08:59 +00:00
|
|
|
bool Instance::moveInPlaylist(Data *data, int delta, bool autonext) {
|
2017-05-19 18:11:33 +00:00
|
|
|
Expects(data != nullptr);
|
|
|
|
|
|
|
|
auto index = data->playlist.indexOf(data->current.contextId());
|
2016-09-23 16:04:26 +00:00
|
|
|
auto newIndex = index + delta;
|
2017-05-19 18:11:33 +00:00
|
|
|
if (!data->current || index < 0 || newIndex < 0 || newIndex >= data->playlist.size()) {
|
|
|
|
rebuildPlaylist(data);
|
2017-05-21 13:16:39 +00:00
|
|
|
return false;
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
auto msgId = data->playlist[newIndex];
|
2016-09-23 16:04:26 +00:00
|
|
|
if (auto item = App::histItemById(msgId)) {
|
|
|
|
if (auto media = item->getMedia()) {
|
2017-05-22 15:25:49 +00:00
|
|
|
if (auto document = media->getDocument()) {
|
|
|
|
if (autonext) {
|
|
|
|
_switchToNextNotifier.notify({ data->current, msgId });
|
|
|
|
}
|
|
|
|
DocumentOpenClickHandler::doOpen(media->getDocument(), item, ActionOnLoadPlayInline);
|
|
|
|
return true;
|
2017-05-21 17:08:59 +00:00
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
2017-05-21 13:16:39 +00:00
|
|
|
return false;
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Instance *instance() {
|
2017-05-19 18:11:33 +00:00
|
|
|
Expects(SingleInstance != nullptr);
|
2016-09-23 16:04:26 +00:00
|
|
|
return SingleInstance;
|
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::play(AudioMsgId::Type type) {
|
|
|
|
auto state = mixer()->currentState(type);
|
2017-01-24 21:24:39 +00:00
|
|
|
if (state.id) {
|
|
|
|
if (IsStopped(state.state)) {
|
2017-05-19 18:11:33 +00:00
|
|
|
play(state.id);
|
2017-05-18 20:18:59 +00:00
|
|
|
} else {
|
|
|
|
mixer()->resume(state.id);
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
2017-05-19 18:11:33 +00:00
|
|
|
} else if (auto data = getData(type)) {
|
|
|
|
if (data->current) {
|
|
|
|
play(data->current);
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void Instance::play(const AudioMsgId &audioId) {
|
2017-05-19 18:11:33 +00:00
|
|
|
if (!audioId) {
|
2016-09-23 16:04:26 +00:00
|
|
|
return;
|
|
|
|
}
|
2017-05-19 18:11:33 +00:00
|
|
|
if (audioId.audio()->song() || audioId.audio()->voice()) {
|
|
|
|
mixer()->play(audioId);
|
|
|
|
setCurrent(audioId);
|
|
|
|
if (audioId.audio()->loading()) {
|
|
|
|
documentLoadProgress(audioId.audio());
|
|
|
|
}
|
|
|
|
} else if (audioId.audio()->isRoundVideo()) {
|
|
|
|
if (auto item = App::histItemById(audioId.contextId())) {
|
|
|
|
if (auto media = item->getMedia()) {
|
|
|
|
media->playInline();
|
|
|
|
}
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-10 22:37:37 +00:00
|
|
|
void Instance::pause(AudioMsgId::Type type) {
|
|
|
|
auto state = mixer()->currentState(type);
|
2017-01-24 21:24:39 +00:00
|
|
|
if (state.id) {
|
2017-05-18 20:18:59 +00:00
|
|
|
mixer()->pause(state.id);
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::stop(AudioMsgId::Type type) {
|
|
|
|
auto state = mixer()->currentState(type);
|
2017-05-18 20:18:59 +00:00
|
|
|
if (state.id) {
|
|
|
|
mixer()->stop(state.id);
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::playPause(AudioMsgId::Type type) {
|
|
|
|
auto state = mixer()->currentState(type);
|
2017-01-24 21:24:39 +00:00
|
|
|
if (state.id) {
|
|
|
|
if (IsStopped(state.state)) {
|
2017-05-19 18:11:33 +00:00
|
|
|
play(state.id);
|
2017-05-18 20:18:59 +00:00
|
|
|
} else if (IsPaused(state.state) || state.state == State::Pausing) {
|
|
|
|
mixer()->resume(state.id);
|
2016-09-23 16:04:26 +00:00
|
|
|
} else {
|
2017-05-18 20:18:59 +00:00
|
|
|
mixer()->pause(state.id);
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
2017-05-19 18:11:33 +00:00
|
|
|
} else if (auto data = getData(type)) {
|
|
|
|
if (data->current) {
|
|
|
|
play(data->current);
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-21 13:16:39 +00:00
|
|
|
bool Instance::next(AudioMsgId::Type type) {
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto data = getData(type)) {
|
2017-05-21 17:08:59 +00:00
|
|
|
return moveInPlaylist(data, 1, false);
|
2017-05-19 18:11:33 +00:00
|
|
|
}
|
2017-05-21 13:16:39 +00:00
|
|
|
return false;
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-21 13:16:39 +00:00
|
|
|
bool Instance::previous(AudioMsgId::Type type) {
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto data = getData(type)) {
|
2017-05-21 17:08:59 +00:00
|
|
|
return moveInPlaylist(data, -1, false);
|
2017-05-19 18:11:33 +00:00
|
|
|
}
|
2017-05-21 13:16:39 +00:00
|
|
|
return false;
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::playPauseCancelClicked(AudioMsgId::Type type) {
|
|
|
|
if (isSeeking(type)) {
|
2016-10-09 17:08:16 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
auto state = mixer()->currentState(type);
|
2017-05-21 13:16:39 +00:00
|
|
|
auto stopped = IsStoppedOrStopping(state.state);
|
2017-01-24 21:24:39 +00:00
|
|
|
auto showPause = !stopped && (state.state == State::Playing || state.state == State::Resuming || state.state == State::Starting);
|
|
|
|
auto audio = state.id.audio();
|
2016-10-09 17:08:16 +00:00
|
|
|
if (audio && audio->loading()) {
|
|
|
|
audio->cancel();
|
|
|
|
} else if (showPause) {
|
2017-05-19 18:11:33 +00:00
|
|
|
pause(type);
|
2016-10-09 17:08:16 +00:00
|
|
|
} else {
|
2017-05-19 18:11:33 +00:00
|
|
|
play(type);
|
2016-10-09 17:08:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-10 22:37:37 +00:00
|
|
|
void Instance::startSeeking(AudioMsgId::Type type) {
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto data = getData(type)) {
|
|
|
|
data->seeking = data->current;
|
2017-02-10 22:37:37 +00:00
|
|
|
}
|
|
|
|
pause(type);
|
|
|
|
emitUpdate(type, [](const AudioMsgId &playing) { return true; });
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2017-02-10 22:37:37 +00:00
|
|
|
void Instance::stopSeeking(AudioMsgId::Type type) {
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto data = getData(type)) {
|
|
|
|
data->seeking = AudioMsgId();
|
2017-02-10 22:37:37 +00:00
|
|
|
}
|
|
|
|
emitUpdate(type, [](const AudioMsgId &playing) { return true; });
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Instance::documentLoadProgress(DocumentData *document) {
|
2017-02-10 22:37:37 +00:00
|
|
|
emitUpdate(document->song() ? AudioMsgId::Type::Song : AudioMsgId::Type::Voice, [document](const AudioMsgId &audioId) {
|
2016-09-23 16:04:26 +00:00
|
|
|
return (audioId.audio() == document);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename CheckCallback>
|
2017-02-10 22:37:37 +00:00
|
|
|
void Instance::emitUpdate(AudioMsgId::Type type, CheckCallback check) {
|
|
|
|
auto state = mixer()->currentState(type);
|
2017-01-24 21:24:39 +00:00
|
|
|
if (!state.id || !check(state.id)) {
|
2016-09-23 16:04:26 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-01-24 21:24:39 +00:00
|
|
|
setCurrent(state.id);
|
|
|
|
_updatedNotifier.notify(state, true);
|
2016-09-23 16:04:26 +00:00
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto data = getData(type)) {
|
|
|
|
if (data->isPlaying && state.state == State::StoppedAtEnd) {
|
|
|
|
if (data->repeatEnabled) {
|
|
|
|
play(data->current);
|
2017-05-21 17:08:59 +00:00
|
|
|
} else if (!moveInPlaylist(data, 1, true)) {
|
2017-05-21 13:16:39 +00:00
|
|
|
_tracksFinishedNotifier.notify(type);
|
2017-02-10 22:37:37 +00:00
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
2017-02-10 22:37:37 +00:00
|
|
|
auto isPlaying = !IsStopped(state.state);
|
2017-05-19 18:11:33 +00:00
|
|
|
if (data->isPlaying != isPlaying) {
|
|
|
|
data->isPlaying = isPlaying;
|
|
|
|
if (data->isPlaying) {
|
|
|
|
preloadNext(data);
|
2017-02-10 22:37:37 +00:00
|
|
|
}
|
2016-10-12 19:34:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-19 18:11:33 +00:00
|
|
|
void Instance::preloadNext(Data *data) {
|
|
|
|
Expects(data != nullptr);
|
|
|
|
|
|
|
|
if (!data->current) {
|
2016-10-12 19:34:25 +00:00
|
|
|
return;
|
|
|
|
}
|
2017-05-19 18:11:33 +00:00
|
|
|
auto index = data->playlist.indexOf(data->current.contextId());
|
2016-10-12 19:34:25 +00:00
|
|
|
if (index < 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
auto nextIndex = index + 1;
|
2017-05-19 18:11:33 +00:00
|
|
|
if (nextIndex >= data->playlist.size()) {
|
2016-10-12 19:34:25 +00:00
|
|
|
return;
|
|
|
|
}
|
2017-05-19 18:11:33 +00:00
|
|
|
if (auto item = App::histItemById(data->playlist[nextIndex])) {
|
2016-10-12 19:34:25 +00:00
|
|
|
if (auto media = item->getMedia()) {
|
|
|
|
if (auto document = media->getDocument()) {
|
|
|
|
if (!document->loaded(DocumentData::FilePathResolveSaveFromDataSilent)) {
|
|
|
|
DocumentOpenClickHandler::doOpen(document, nullptr, ActionOnLoadNone);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-09-23 16:04:26 +00:00
|
|
|
}
|
|
|
|
|
2016-10-19 08:59:19 +00:00
|
|
|
void Instance::handleLogout() {
|
2017-05-19 18:11:33 +00:00
|
|
|
*getData(AudioMsgId::Type::Voice) = Data(AudioMsgId::Type::Voice, OverviewRoundVoiceFiles);
|
|
|
|
*getData(AudioMsgId::Type::Song) = Data(AudioMsgId::Type::Song, OverviewMusicFiles);
|
2016-10-19 08:59:19 +00:00
|
|
|
_usePanelPlayer.notify(false, true);
|
|
|
|
}
|
|
|
|
|
2016-09-23 16:04:26 +00:00
|
|
|
} // namespace Player
|
|
|
|
} // namespace Media
|