bool mute; /*@ The mute state. True or false. */
}
}
+ length {
+ /**
+ * @brief Get the length of play for the media file.
+ *
+ * This function returns the length of the media file in seconds.
+ */
+ get {
+ }
+ values {
+ double length; /*@ The length of the stream in seconds. */
+ }
+ }
+ seekable {
+ /**
+ * @brief Get whether the media file is seekable.
+ */
+ get {
+ }
+ values {
+ bool seekable; /*@ True if seekable. */
+ }
+ }
}
}
Efl.Player.audio_volume.get;
Efl.Player.audio_mute.set;
Efl.Player.audio_mute.get;
+ Efl.Player.length.get;
+ Efl.Player.seekable.get;
Efl.Image.load_size.get;
Efl.Image.ratio.get;
Efl.Image.smooth_scale.set;
/* FIXME: Need to be added:
EAPI double emotion_object_buffer_size_get (const Evas_Object *obj);
-EAPI Eina_Bool emotion_object_seekable_get (const Evas_Object *obj);
-EAPI double emotion_object_play_length_get (const Evas_Object *obj);
EAPI const char *emotion_object_progress_info_get (const Evas_Object *obj);
-EAPI Eina_Bool emotion_object_video_handled_get (const Evas_Object *obj);
-EAPI Eina_Bool emotion_object_audio_handled_get (const Evas_Object *obj);
Everything starting from (needs to be added):
EAPI int emotion_object_audio_channel_count (const Evas_Object *obj);
EAPI Eina_Bool
emotion_object_seekable_get(const Evas_Object *obj)
{
- Emotion_Object_Data *sd;
-
- E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
- if (!sd->engine_instance) return EINA_FALSE;
- return emotion_engine_instance_seekable(sd->engine_instance);
+ Eina_Bool ret;
+ return eo_do_ret(obj, ret, efl_player_seekable_get());
}
EAPI Eina_Bool
EAPI double
emotion_object_play_length_get(const Evas_Object *obj)
{
- Emotion_Object_Data *sd;
-
- E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0.0);
- if (!sd->engine_instance) return 0.0;
- sd->len = emotion_engine_instance_len_get(sd->engine_instance);
- return sd->len;
+ double ret;
+ return eo_do_ret(obj, ret, efl_player_length_get());
}
EAPI void
return sd->progress.stat;
}
+EOLIAN static double
+_emotion_object_efl_player_length_get(Eo *obj EINA_UNUSED, Emotion_Object_Data *sd)
+{
+ if (!sd->engine_instance) return 0.0;
+ sd->len = emotion_engine_instance_len_get(sd->engine_instance);
+ return sd->len;
+}
+
+EOLIAN static Eina_Bool
+_emotion_object_efl_player_seekable_get(Eo *obj EINA_UNUSED, Emotion_Object_Data *sd)
+{
+ if (!sd->engine_instance) return EINA_FALSE;
+ return emotion_engine_instance_seekable(sd->engine_instance);
+}
+
EAPI const char *
emotion_object_ref_file_get(const Evas_Object *obj)
{