mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-08 22:28:28 +02:00
movieplayer: make bisection jump period configurable
Origin commit data
------------------
Commit: 69e5cb286c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-05-16 (Tue, 16 May 2017)
Origin message was:
------------------
- movieplayer: make bisection jump period configurable
This commit is contained in:
@@ -516,9 +516,10 @@ void CKeybindSetup::showKeyBindMovieplayerSetup(CMenuWidget *bindSettings_mplaye
|
|||||||
bindSettings_mplayer->addItem(GenericMenuSeparatorLine); //NI
|
bindSettings_mplayer->addItem(GenericMenuSeparatorLine); //NI
|
||||||
|
|
||||||
//NI - bisectional jumps
|
//NI - bisectional jumps
|
||||||
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_MOVIEPLAYER_BISECTION_JUMP, &g_settings.movieplayer_bisection_jump, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
CMenuOptionNumberChooser* nc = new CMenuOptionNumberChooser(LOCALE_MOVIEPLAYER_BISECTION_JUMP, &g_settings.movieplayer_bisection_jump, true, 0, 10, this, CRCInput::RC_nokey, NULL, 0, 0, LOCALE_OPTIONS_OFF);
|
||||||
mc->setHint("", LOCALE_MENU_HINT_MOVIEPLAYER_BISECTION_JUMP);
|
nc->setNumberFormat(std::string("%d ") + g_Locale->getText(LOCALE_UNIT_SHORT_MINUTE));
|
||||||
bindSettings_mplayer->addItem(mc);
|
nc->setHint("", LOCALE_MENU_HINT_MOVIEPLAYER_BISECTION_JUMP);
|
||||||
|
bindSettings_mplayer->addItem(nc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CKeybindSetup::showKeyBindMoviebrowserSetup(CMenuWidget *bindSettings_mbrowser)
|
void CKeybindSetup::showKeyBindMoviebrowserSetup(CMenuWidget *bindSettings_mbrowser)
|
||||||
|
@@ -1353,7 +1353,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
neutrino_msg_t lastmsg = 0; //NI
|
neutrino_msg_t lastmsg = 0; //NI
|
||||||
|
|
||||||
//NI - bisectional jumps
|
//NI - bisectional jumps
|
||||||
int bisection_jump = 300;
|
int bisection_jump = g_settings.movieplayer_bisection_jump * 60;
|
||||||
int bisection_loop = -1;
|
int bisection_loop = -1;
|
||||||
int bisection_loop_max = 5;
|
int bisection_loop_max = 5;
|
||||||
|
|
||||||
@@ -1639,7 +1639,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
if ((lastmsg == CRCInput::RC_page_up || lastmsg == CRCInput::RC_page_down) && (bisection_loop > -1 && bisection_loop <= bisection_loop_max))
|
if ((lastmsg == CRCInput::RC_page_up || lastmsg == CRCInput::RC_page_down) && (bisection_loop > -1 && bisection_loop <= bisection_loop_max))
|
||||||
bisection_jump /= 2;
|
bisection_jump /= 2;
|
||||||
else
|
else
|
||||||
bisection_jump = 300;
|
bisection_jump = g_settings.movieplayer_bisection_jump * 60;
|
||||||
|
|
||||||
bisection_loop = 0;
|
bisection_loop = 0;
|
||||||
jump = bisection_jump;
|
jump = bisection_jump;
|
||||||
|
@@ -906,7 +906,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
|
|
||||||
//Movie-Player
|
//Movie-Player
|
||||||
g_settings.movieplayer_repeat_on = configfile.getInt32("movieplayer_repeat_on", CMoviePlayerGui::REPEAT_OFF);
|
g_settings.movieplayer_repeat_on = configfile.getInt32("movieplayer_repeat_on", CMoviePlayerGui::REPEAT_OFF);
|
||||||
g_settings.movieplayer_bisection_jump = configfile.getInt32("movieplayer_bisection_jump", 1); //NI
|
g_settings.movieplayer_bisection_jump = configfile.getInt32("movieplayer_bisection_jump", 5); //NI
|
||||||
g_settings.youtube_dev_id = configfile.getString("youtube_dev_id","AIzaSyBLdZe7M3rpNMZqSj-3IEvjbb2hATWJIdM"); //NI
|
g_settings.youtube_dev_id = configfile.getString("youtube_dev_id","AIzaSyBLdZe7M3rpNMZqSj-3IEvjbb2hATWJIdM"); //NI
|
||||||
g_settings.youtube_enabled = configfile.getInt32("youtube_enabled", 1);
|
g_settings.youtube_enabled = configfile.getInt32("youtube_enabled", 1);
|
||||||
g_settings.youtube_enabled = check_youtube_dev_id();
|
g_settings.youtube_enabled = check_youtube_dev_id();
|
||||||
|
Reference in New Issue
Block a user