efl

Форк
0
/
efl_canvas_video.eo 
106 строк · 4.5 Кб
1
class @beta Efl.Canvas.Video extends Efl.Canvas.Group
2
                             implements Efl.File, Efl.Audio_Control, Efl.Player, Efl.Playable,
3
                                        Efl.Gfx.Image, Efl.Gfx.Image_Load_Controller
4
{
5
   [[Efl canvas video class]]
6
   methods {
7
        @property option {
8
             [[Sets options for the current module.
9

10
               This function allows one to mute the video or audio of the
11
               emotion object.
12

13
               Please don't use this function, consider using
14
               @Efl.Audio_Control.mute instead.
15
             ]]
16
             set {
17
             }
18
             values {
19
                  opt: string; [[The option that is being set. Currently
20
                                        supported options: "video" and "audio".]]
21
                  val: string; [[The value of the option. Currently only
22
                                        supports "off" (?!?!?!)]]
23
             }
24
        }
25
        @property engine {
26
             [[Initializes an emotion object with the specified module.
27

28
               This function is required after creating the emotion object,
29
               in order to specify which module will be used with this
30
               object. Different objects can use different modules to
31
               play a media file. The current supported modules are
32
               gstreamer and xine.
33

34
               To use any of them, you need to make sure that support for
35
               them was compiled correctly.
36

37
               It's possible to disable the build of a module with
38
               --disable-module_name.
39

40
               See also @Efl.File.file.
41
             ]]
42
             set {
43
                  return: bool; [[$true if the specified module was successfully
44
                                  initialized for this object, $false otherwise.]]
45
             }
46
             values {
47
                  module_filename: string; [[The name of the module to be
48
                                                    used (gstreamer or xine).]]
49
             }
50
        }
51
   }
52
   implements {
53
        Efl.Object.constructor;
54
        Efl.Gfx.Entity.position { set; }
55
        Efl.Gfx.Entity.size { set; }
56
        Efl.File.load;
57
        Efl.File.unload;
58
        Efl.File.file { set; }
59
        Efl.File.loaded { get; }
60
        Efl.Player.playing { get; set; }
61
        Efl.Player.paused { get; set; }
62
        Efl.Player.playback_position { get; set; }
63
        Efl.Player.playback_progress { get; set; }
64
        Efl.Audio_Control.volume { get; set; }
65
        Efl.Audio_Control.mute { get; set; }
66
        Efl.Playable.length { get; }
67
        Efl.Playable.seekable { get; }
68
        Efl.Gfx.Image_Load_Controller.load_size { get; }
69
        Efl.Gfx.Image.ratio { get; }
70
        Efl.Gfx.Image.smooth_scale { get; set; }
71
   }
72
   events {
73
        frame,decode: void; [[Called when the frame was decoded]]
74
        position,change: void; [[Called when the position changed]]
75
        length,change: void; [[Called when the length changed]]
76
        frame,resize: void; [[Called when the frame was resized]]
77
        playback,start: void; [[Called when playback started]]
78
        playback,stop: void; [[Called when playback stopped]]
79
        volume,change: void; [[Called when volume changed]]
80
        channels,change: void; [[Called when the channels changed]]
81
        title,change: void; [[Called when the title changed]]
82
        progress,change: void; [[Called when the progress changed]]
83
        ref,change: void; [[Called when ref changed]]
84
        button,num,change: void; [[Called when button number changed]]
85
        button,change: void; [[Called when button changed]]
86
        open,done: void; [[Called when the files was opened]]
87
        position,save,done: void; [[Called when the position was saved]]
88
        position,save,fail: void; [[Called when saving the position failed]]
89
        position,load,done: void; [[Called when the position loaded]]
90
        position,load,fail: void; [[Called when loading the position failed]]
91
   }
92
}
93

94
/* FIXME: Need to be added:
95
EMOTION_API double       emotion_object_buffer_size_get       (const Evas_Object *obj);
96
EMOTION_API const char  *emotion_object_progress_info_get     (const Evas_Object *obj);
97

98
Everything starting from (needs to be added):
99
EMOTION_API int          emotion_object_audio_channel_count   (const Evas_Object *obj);
100

101
Should this be part of player or emotion object?
102
EMOTION_API void         emotion_object_event_simple_send     (Evas_Object *obj, Emotion_Event ev);
103

104
Deliberations:
105
Should this really implement the image interface?
106
*/
107

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.