Changeset 387 for trunk/samples/video.rb

Show
Ignore:
Timestamp:
01/08/2008 01:39:59 (8 months ago)
Author:
why
Message:
  • shoes/ruby.c: added length, time, time=, position and position= methods for seeking within videos.
  • samples/video.rb: added a link for seeking the video.
  • lib/shoes/help.rb: added docs for all the video methods.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/video.rb

    r272 r387  
    1 Shoes.app do 
    2   stack do 
     1Shoes.app :width => 408, :height => 334, :resizable => false do 
     2  background "#eee" 
     3  stack :margin => 4 do 
    34    @vid = video "http://whytheluckystiff.net/o..e/adventure_time.flv" 
    4     para "controls: ", 
    5       link("play")  { @vid.play }, ", ", 
    6       link("pause") { @vid.pause }, ", ", 
    7       link("stop")  { @vid.stop }, ", ", 
    8       link("hide")  { @vid.hide }, ", ", 
    9       link("show")  { @vid.show } 
    105  end 
     6  para "controls: ", 
     7    link("play")  { @vid.play }, ", ", 
     8    link("pause") { @vid.pause }, ", ", 
     9    link("stop")  { @vid.stop }, ", ", 
     10    link("hide")  { @vid.hide }, ", ", 
     11    link("show")  { @vid.show }, ", ", 
     12    link("+5 sec") { @vid.time += 5000 } 
    1113end