Class: Kikeru::Window

Inherits:
Gtk::Window
  • Object
show all
Defined in:
lib/kikeru/window.rb

Instance Method Summary collapse

Constructor Details

#initializeWindow

Returns a new instance of Window.



6
7
8
9
# File 'lib/kikeru/window.rb', line 6

def initialize
  super
  setup
end

Instance Method Details

#add_container(container) ⇒ Object



11
12
13
14
# File 'lib/kikeru/window.rb', line 11

def add_container(container)
  @container = container
  @file = @container.shift
end

#playObject



16
17
18
19
20
21
# File 'lib/kikeru/window.rb', line 16

def play
  @playbin.stop
  @playbin.uri = Gst.filename_to_uri(@file)
  self.title = File.basename(@file)
  @playbin.play
end