~elementary-apps/audience/headerbar

« back to all changes in this revision

Viewing changes to src/Widgets/VideoPlayer.vala

  • Committer: Corentin Noël
  • Date: 2014-04-28 22:27:55 UTC
  • Revision ID: tintou@mailoo.org-20140428222755-pr6ia7d6oh73krca
elementarized and first work to port it to Gtk 3.12.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
        public signal void error ();
196
196
        public signal void plugin_install_done ();
197
197
        public signal void configure_window (uint video_w, uint video_h);
 
198
        public signal void progression_changed (double current_time, double total_time);
198
199
        
199
200
        public VideoPlayer ()
200
201
        {
216
217
            playbin.video_sink = video_sink;
217
218
            
218
219
            add_child (video);
219
 
            add_child (controls);
 
220
            //add_child (controls);
220
221
            add_child (panel);
221
222
            add_child (controls.slider.preview);
222
223
            
236
237
                
237
238
                controls.current.text = seconds_to_time ((int)(prog / 1000000000));
238
239
                controls.remaining.text = "-" + seconds_to_time ((int)(length / 1000000000) - (int)(prog / 1000000000));
 
240
                progression_changed ((double)prog, (double)length);
239
241
                
240
242
                return true;
241
243
            });