void VideoItem::createPanel() { _panel = new VideoControlPanel(this); _panel->setParentItem(this); setPanelPosition(); _panel->setVolume(_player->volume()); // _panel->show(); _panel->hide(); connect (this, SIGNAL(playMedia()), _panel, SLOT(on_play())); connect (this, SIGNAL(pauseMedia()), _panel, SLOT(on_pause())); connect (this, SIGNAL(stopMedia()), _panel, SLOT(on_stop())); connect (_panel, SIGNAL(positionChanged(qint64)), _player, SLOT(setPosition(qint64))); connect (_panel, SIGNAL(playClicked()), _player, SLOT(play())); connect (_panel, SIGNAL(pauseClicked()), _player, SLOT(pause())); connect (_panel, SIGNAL(volumeChanged(int)), _player, SLOT(setVolume(int))); }
void NativeEngine::handle_cmd(int32_t cmd){ switch (cmd) { case APP_CMD_INPUT_CHANGED: on_input_changed(); break; case APP_CMD_INIT_WINDOW: on_init_window(); break; case APP_CMD_TERM_WINDOW: on_term_window(); break; case APP_CMD_WINDOW_RESIZED: on_window_resized(); break; case APP_CMD_WINDOW_REDRAW_NEEDED: on_window_redraw_needed(); break; case APP_CMD_CONTENT_RECT_CHANGED: on_content_rect_changed(); break; case APP_CMD_GAINED_FOCUS: on_gained_focus(); break; case APP_CMD_LOST_FOCUS: on_lost_focus(); break; case APP_CMD_CONFIG_CHANGED: on_config_changed(); break; case APP_CMD_LOW_MEMORY: on_low_memory(); break; case APP_CMD_START: on_start(); break; case APP_CMD_RESUME: on_resume(); break; case APP_CMD_SAVE_STATE: on_save_state(); break; case APP_CMD_PAUSE: on_pause(); break; case APP_CMD_STOP: on_stop(); break; case APP_CMD_DESTROY: on_destroy(); break; } }
void on_player_pause(list<int> int_params, list<string> string_params, sp_session *session, sp_track *track) { on_pause(); }
JNIEXPORT void JNICALL Java_com_technegames_insectoiddefense_RendererWrapper_on_1pause(JNIEnv* env, jclass cls) { UNUSED(env); UNUSED(cls); on_pause(); }