git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72890
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
static void
_cb_media_stop(void *data, Evas_Object *obj, const char *emission, const char *source)
{
- media_play_set(data, EINA_FALSE);
- media_position_set(data, 0.0);
+ media_stop(data);
}
static void
}
void
+media_stop(Evas_Object *obj)
+{
+ Media *sd = evas_object_smart_data_get(obj);
+ if ((!sd) || (sd->type != TYPE_MOV)) return;
+
+ evas_object_del(obj);
+}
+
+void
media_position_set(Evas_Object *obj, double pos)
{
double len;
void media_play_set(Evas_Object *obj, Eina_Bool play);
void media_position_set(Evas_Object *obj, double pos);
void media_volume_set(Evas_Object *obj, double vol);
+void media_stop(Evas_Object *obj);
#endif