summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_player.eo
blob: 2581bb54947a1638e6bafaa7ed6146f081118f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
interface @beta Efl.Player
{
   [[Efl media player interface]]
   c_prefix: efl_player;
   methods {
        start {
           [[Start a playing playable object.]]
        }
        stop {
           [[Stop playable object.]]
        }
        @property play {
           [[Playback state of the media file.

             This property sets the currently playback state of the
             video. Using this function to play or pause the video
             doesn't alter it's current position.
           ]]
           set {
           }
           get {
           }
           values {
                play: bool; [[$true if playing, $false otherwise.]]
           }
        }
        @property playback_position {
           [[Position in the media file.

             This property sets the current position of the media file
             to $sec seconds since the beginning of the media file.
             This only works on seekable streams. Setting the
             position doesn't change the playing state of the media file.
           ]]
           set {
           }
           get {
           }
           values {
                sec: double; [[The position (in seconds).]]
           }
        }
        @property progress {
           [[How much of the file has been played.

             This function gets the progress in playing the file, the
             return value is in the [0, 1] range.
           ]]
           get {
           }
           values {
                progress: double; [[The progress within the [0, 1] range.]]
           }
        }
        @property play_speed {
             [[Control the play speed of the media file.

               This function control the speed with which the media file will
               be played. 1.0 represents the normal speed, 2 double speed, 0.5
               half speed and so on.
             ]]
             set {
             }
             get {
             }
             values {
                  speed: double; [[The play speed in the [0, infinity) range.]]
             }
        }
   }
}