]> git.sesse.net Git - vlc/blob - mozilla/vlcintf.idl
backport of r13238
[vlc] / mozilla / vlcintf.idl
1
2 #include "nsISupports.idl"
3
4 [scriptable, uuid(ea92ef52-afe4-4212-bacb-dfe9fca94cd6)]
5
6 interface VlcIntf : nsISupports
7 {
8     /* Basic playback control */
9     void play();
10     void pause();
11     void stop();
12  
13     /* Audio/Video control */
14     void fullscreen();
15     void set_volume( in PRInt64 i_volume );
16     PRInt64 get_volume();
17     void mute();
18
19     /* Get/Set variable */
20     void set_int_variable( in string psz_var, in PRInt64 i_value );
21     void set_bool_variable( in string psz_var, in PRBool b_value );
22     void set_str_variable( in string psz_var, in string psz_value );
23      
24     PRInt64 get_int_variable( in string psz_var );
25     PRBool get_bool_variable( in string psz_var );
26     string get_str_variable( in string psz_var );
27
28     /* Playlist management */
29     void clear_playlist();
30     void add_item( in string psz_name);
31     void next();
32     void previous();
33  
34     /* Status accessors */
35     PRBool isplaying();
36     PRInt64 get_length();
37     PRInt64 get_position();
38     PRInt64 get_time();
39
40     void seek( in PRInt64 i_secs, in PRInt64 b_relative);
41 };
42