Subversion Repositories Projects

Rev

Rev 206 | Rev 265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 206 Rev 229
Line 22... Line 22...
22
   
22
   
23
    public final int PLAYERSTATE_IDLE=0;
23
    public final int PLAYERSTATE_IDLE=0;
24
    public final int PLAYERSTATE_PLAYING=1;
24
    public final int PLAYERSTATE_PLAYING=1;
Line -... Line 25...
-
 
25
    public final int PLAYERSTATE_FIN=2;
-
 
26
 
-
 
27
 
-
 
28
    public int volume=100;
25
    public final int PLAYERSTATE_FIN=2;
29
    public int delay=5;
26
 
30
 
Line 27... Line 31...
27
    int act_player_state=PLAYERSTATE_IDLE;
31
    int act_player_state=PLAYERSTATE_IDLE;
28
    VolumeControl vc;
32
    VolumeControl vc;
Line 77... Line 81...
77
                        player.realize();
81
                        player.realize();
78
                        act_player_state=PLAYERSTATE_PLAYING;
82
                        act_player_state=PLAYERSTATE_PLAYING;
Line 79... Line 83...
79
 
83
 
80
                        vc = (VolumeControl) player.getControl("VolumeControl");
84
                        vc = (VolumeControl) player.getControl("VolumeControl");
81
                        if(vc != null) {
85
                        if(vc != null) {
82
                            vc.setLevel(100);
86
                            vc.setLevel(volume);
Line 83... Line 87...
83
                        }
87
                        }
84
 
88
 
85
                        player.prefetch();
89
                        player.prefetch();
Line 127... Line 131...
127
                                start_playing("volt");
131
                                start_playing("volt");
128
                            }
132
                            }
Line 129... Line 133...
129
       
133
       
Line -... Line 134...
-
 
134
                    }
-
 
135
 
130
                    }
136
                try {
-
 
137
                    if (delay<1)
-
 
138
                        Thread.sleep(1000);
-
 
139
                    else
131
 
140
                        Thread.sleep(delay*1000);
Line 132... Line 141...
132
                try { Thread.sleep(5000); }
141
                }
133
                catch (Exception e)  {   }
142
                catch (Exception e)  {   }