Music Hub  ..
A session-wide music playback service
recorder_observer.cpp
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Thomas Voß <thomas.voss@canonical.com>
17  */
18 
20 
21 #include <core/media/player.h>
23 
26 
27 namespace media = core::ubuntu::media;
28 
30 {
32  switch (b)
33  {
34  case media::AVBackend::Backend::hybris:
36  case media::AVBackend::Backend::none:
37  MH_WARNING(
38  "No video backend selected. Video recording functionality won't work."
39  );
41  default:
42  MH_INFO("Invalid or no A/V backend specified, using \"hybris\" as a default.");
44  }
45 }
#define MH_INFO(...)
Definition: logger.h:125
#define MH_WARNING(...)
Definition: logger.h:127
static Backend get_backend_type()
Returns the type of audio/video decoding/encoding backend being used.
Definition: backend.cpp:26
RecorderObserver::Ptr make_platform_default_recorder_observer()
std::shared_ptr< RecorderObserver > Ptr