int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey) { printf("init mediaplayer menu in usage mode %d\n", usage_mode); if (parent) parent->hide(); CAudioMute *audiomute = CAudioMute::getInstance(); if (actionKey == "audioplayer") { if (audioPlayer == NULL) audioPlayer = new CAudioPlayerGui(); int res = audioPlayer->exec(NULL, "init"); return res /*menu_return::RETURN_REPAINT*/; } else if (actionKey == "inetplayer") { if (inetPlayer == NULL) inetPlayer = new CAudioPlayerGui(true); int res = inetPlayer->exec(NULL, "init"); return res; //menu_return::RETURN_REPAINT; } else if (actionKey == "movieplayer") { audiomute->enableMuteIcon(false); CInfoClock::getInstance()->enableInfoClock(false); int mode = CNeutrinoApp::getInstance()->getMode(); if( mode == NeutrinoMessages::mode_radio ) CFrameBuffer::getInstance()->stopFrame(); int res = CMoviePlayerGui::getInstance().exec(NULL, "tsmoviebrowser"); if( mode == NeutrinoMessages::mode_radio ) CFrameBuffer::getInstance()->showFrame("radiomode.jpg"); audiomute->enableMuteIcon(true); CInfoClock::getInstance()->enableInfoClock(true); return res; } int res = initMenuMedia(); return res; }
int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey) { if (parent) parent->hide(); if (actionKey == "audioplayer") { if (audioPlayer == NULL) audioPlayer = new CAudioPlayerGui(); if (!g_settings.show_background_picture) videoDecoder->setBlank(true); int res = audioPlayer->exec(NULL, "init"); return res /*menu_return::RETURN_REPAINT*/; } #if ENABLE_SHAIRPLAY else if (actionKey == "shairplay") { CNeutrinoApp::getInstance()->shairplay_enabled_cur = true; CNeutrinoApp::getInstance()->shairPlay->restart(); return menu_return::RETURN_EXIT_ALL; } #endif else if (actionKey == "inetplayer") { if (inetPlayer == NULL) inetPlayer = new CAudioPlayerGui(true); if (!g_settings.show_background_picture) videoDecoder->setBlank(true); int res = inetPlayer->exec(NULL, "init"); return res; //menu_return::RETURN_REPAINT; } int res = initMenuMedia(); return res; }