mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
Infobar blocked buttons in time shift.
- When pressing the player buttons (play, pause, etc.) in the infobar is now hidden and runs the appropriate commands. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1778 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -944,6 +944,18 @@ void CInfoViewer::loop(int fadeValue, bool show_dot ,bool fadeIn)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
res = CNeutrinoApp::getInstance()->handleMsg(msg, data);
|
res = CNeutrinoApp::getInstance()->handleMsg(msg, data);
|
||||||
|
|
||||||
|
} else if (CMoviePlayerGui::getInstance().start_timeshift && (msg == NeutrinoMessages::EVT_TIMER)) {
|
||||||
|
CMoviePlayerGui::getInstance().start_timeshift = false;
|
||||||
|
} else if (CMoviePlayerGui::getInstance().timeshift && ((msg == (neutrino_msg_t) g_settings.mpkey_rewind) || \
|
||||||
|
(msg == (neutrino_msg_t) g_settings.mpkey_forward) || \
|
||||||
|
(msg == (neutrino_msg_t) g_settings.mpkey_pause) || \
|
||||||
|
(msg == (neutrino_msg_t) g_settings.mpkey_stop) || \
|
||||||
|
(msg == (neutrino_msg_t) g_settings.mpkey_play) || \
|
||||||
|
(msg == (neutrino_msg_t) g_settings.mpkey_time) || \
|
||||||
|
(msg == (neutrino_msg_t) g_settings.key_timeshift))) {
|
||||||
|
g_RCInput->postMsg (msg, data);
|
||||||
|
res = messages_return::cancel_info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -214,6 +214,7 @@ void CMoviePlayerGui::Init(void)
|
|||||||
jumpseconds = 0;
|
jumpseconds = 0;
|
||||||
showaudioselectdialog = false;
|
showaudioselectdialog = false;
|
||||||
timeshift = 0;
|
timeshift = 0;
|
||||||
|
start_timeshift = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CMoviePlayerGui::~CMoviePlayerGui()
|
CMoviePlayerGui::~CMoviePlayerGui()
|
||||||
@@ -552,6 +553,7 @@ void CMoviePlayerGui::PlayFile(void)
|
|||||||
open_filebrowser = false;
|
open_filebrowser = false;
|
||||||
isBookmark = false;
|
isBookmark = false;
|
||||||
timesh = false;
|
timesh = false;
|
||||||
|
start_timeshift = true;
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
||||||
g_InfoViewer->showTitle(CNeutrinoApp::getInstance()->channelList->getActiveChannelNumber(),
|
g_InfoViewer->showTitle(CNeutrinoApp::getInstance()->channelList->getActiveChannelNumber(),
|
||||||
CNeutrinoApp::getInstance()->channelList->getActiveChannelName(),
|
CNeutrinoApp::getInstance()->channelList->getActiveChannelName(),
|
||||||
|
@@ -138,6 +138,7 @@ class CMoviePlayerGui : public CMenuTarget
|
|||||||
void updateLcd(const std::string & sel_filename);
|
void updateLcd(const std::string & sel_filename);
|
||||||
bool Playing();
|
bool Playing();
|
||||||
int timeshift;
|
int timeshift;
|
||||||
|
bool start_timeshift;
|
||||||
int file_prozent;
|
int file_prozent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user