Skip to content

Commit

Permalink
Add option to display AirPlay artwork and playback info in full scree…
Browse files Browse the repository at this point in the history
…n mode

Fixes #11648
  • Loading branch information
jyavenard committed Jul 6, 2013
1 parent 015c57d commit 2689340
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp
Expand Up @@ -1785,6 +1785,7 @@ void MythRAOPConnection::SendNotification(bool update)
n->SetId(m_id);
n->SetParent(this);
n->SetDuration(5);
n->SetFullScreen(gCoreContext->GetNumSetting("AirPlayFullScreen"));
MythUINotificationCenter::GetInstance()->Queue(*n);
m_firstsend = true;
delete n;
Expand Down
11 changes: 11 additions & 0 deletions mythtv/programs/mythfrontend/globalsettings.cpp
Expand Up @@ -2520,6 +2520,16 @@ static HorizontalConfigurationGroup *AirPlayPasswordSettings()
return hc;
}

static HostCheckBox *AirPlayFullScreen()
{
HostCheckBox *gc = new HostCheckBox("AirPlayFullScreen");
gc->setLabel(QObject::tr("Full screen"));
gc->setValue(false);
gc->setHelpText(QObject::tr("During audio playback, displays album cover "
"and various media information in full screen mode"));
return gc;
}

static TransLabelSetting *AirPlayInfo()
{
TransLabelSetting *ts = new TransLabelSetting();
Expand Down Expand Up @@ -3124,6 +3134,7 @@ MainGeneralSettings::MainGeneralSettings()
new VerticalConfigurationGroup(false, true, false, false);
airplay->setLabel(QObject::tr("AirPlay Settings"));
airplay->addChild(AirPlayEnabled());
airplay->addChild(AirPlayFullScreen());
airplay->addChild(AirPlayAudioOnly());
airplay->addChild(AirPlayPasswordSettings());
airplay->addChild(AirPlayInfo());
Expand Down

0 comments on commit 2689340

Please sign in to comment.