and handle loop.. or not looping.. i there is a queue. :)

SVN revision: 81688
This commit is contained in:
Carsten Haitzler 2012-12-25 15:14:36 +00:00
parent f0da587105
commit e953a2e4ea
2 changed files with 49 additions and 10 deletions

View File

@ -139,7 +139,10 @@ static void
_cb_media_loop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *info __UNUSED__)
{
if (_popmedia_queue)
edje_object_signal_emit(bg, "popmedia,off", "terminology");
{
if (popmedia) media_play_set(popmedia, EINA_FALSE);
edje_object_signal_emit(bg, "popmedia,off", "terminology");
}
}
static void
@ -226,27 +229,62 @@ _cb_command(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event)
{
if (cmd[1] == 't') // temporary
{
Config *config = termio_config_get(term);
if (config)
{
config->temporary = EINA_TRUE;
eina_stringshare_replace(&(config->background), cmd + 2);
main_media_update(config);
}
}
else if (cmd[1] == 'p') // permanent
{
Config *config = termio_config_get(term);
if (config)
{
config->temporary = EINA_FALSE;
eina_stringshare_replace(&(config->background), cmd + 2);
main_media_update(config);
}
}
}
else if (cmd[0] == 'a') // set alpha
{
if (cmd[1] == 't') // temporary
{
Config *config = termio_config_get(term);
if (config)
{
config->temporary = EINA_TRUE;
if ((cmd[2] == '1') ||
(!strcasecmp(cmd + 2, "on")) ||
(!strcasecmp(cmd + 2, "true")) ||
(!strcasecmp(cmd + 2, "yes")))
config->translucent = EINA_FALSE;
else
config->translucent = EINA_FALSE;
main_trans_update(config);
}
}
else if (cmd[1] == 'p') // permanent
{
}
}
else if (cmd[0] == 'a') // set alpha
{
if (cmd[1] == 't') // temporary
{
}
else if (cmd[1] == 'p') // permanent
{
Config *config = termio_config_get(term);
if (config)
{
config->temporary = EINA_FALSE;
if ((cmd[2] == '1') ||
(!strcasecmp(cmd + 2, "on")) ||
(!strcasecmp(cmd + 2, "true")) ||
(!strcasecmp(cmd + 2, "yes")))
config->translucent = EINA_FALSE;
else
config->translucent = EINA_FALSE;
main_trans_update(config);
}
}
}
}

View File

@ -68,6 +68,7 @@ static const char *extn_mov[] =
".ogg", ".ogm", ".ogv", ".qt", ".rm", ".rmj", ".rmm", ".rms", ".rmvb",
".rmx", ".rv", ".swf", ".ts", ".weba", ".webm", ".wmv", ".3g2", ".3gp",
".3gp2", ".3gpp", ".3gpp2", ".3p2", ".264",
".mp3", ".aac", ".wav",
NULL
};