}
// Now check with the player if action can be handled.
+ bool bIsPlayingPVRChannel = (g_PVRManager.IsStarted() && g_application.CurrentFileItem().IsPVRChannel());
if (g_windowManager.GetActiveWindow() == WINDOW_FULLSCREEN_VIDEO ||
- (g_windowManager.GetActiveWindow() == WINDOW_DIALOG_VIDEO_OSD && (action.GetID() == ACTION_NEXT_ITEM || action.GetID() == ACTION_PREV_ITEM || action.GetID() == ACTION_CHANNEL_UP || action.GetID() == ACTION_CHANNEL_DOWN)) ||
+ (g_windowManager.GetActiveWindow() == WINDOW_VISUALISATION && bIsPlayingPVRChannel) ||
+ ((g_windowManager.GetActiveWindow() == WINDOW_DIALOG_VIDEO_OSD || (g_windowManager.GetActiveWindow() == WINDOW_DIALOG_MUSIC_OSD && bIsPlayingPVRChannel)) &&
+ (action.GetID() == ACTION_NEXT_ITEM || action.GetID() == ACTION_PREV_ITEM || action.GetID() == ACTION_CHANNEL_UP || action.GetID() == ACTION_CHANNEL_DOWN)) ||
action.GetID() == ACTION_STOP)
{
if (m_pPlayer->OnAction(action))
if (prop.name == player_times[i].str)
return AddMultiInfo(GUIInfo(player_times[i].val, TranslateTimeFormat(prop.param())));
}
- if (prop.name == "property")
+ if (prop.name == "content" && prop.num_params())
+ return AddMultiInfo(GUIInfo(MUSICPLAYER_CONTENT, ConditionalStringParameter(prop.param()), 0));
+ else if (prop.name == "property")
{
// properties are stored case sensitive in m_listItemProperties, but lookup is insensitive in CGUIListItem::GetProperty
if (StringUtils::EqualsNoCase(prop.param(), "fanart_image"))
}
break;
}
+ case MUSICPLAYER_CONTENT:
+ {
+ std::string strContent = "files";
+ if (m_currentFile->HasPVRChannelInfoTag())
+ strContent = "livetv";
+ bReturn = StringUtils::EqualsNoCase(m_stringParameters[info.GetData1()], strContent);
+ break;
+ }
case VIDEOPLAYER_CONTENT:
{
std::string strContent="files";
#define MUSICPLAYER_CHANNEL_GROUP 231
#define MUSICPLAYER_SUB_CHANNEL_NUMBER 232
#define MUSICPLAYER_CHANNEL_NUMBER_LBL 233
+#define MUSICPLAYER_CONTENT 234
#define VIDEOPLAYER_TITLE 250
#define VIDEOPLAYER_GENRE 251