|
Revision 387, 447 bytes
(checked in by why, 6 months ago)
|
- 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.
|
| Line | |
|---|
| 1 | Shoes.app :width => 408, :height => 334, :resizable => false do |
|---|
| 2 | background "#eee" |
|---|
| 3 | stack :margin => 4 do |
|---|
| 4 | @vid = video "http://whytheluckystiff.net/o..e/adventure_time.flv" |
|---|
| 5 | 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 } |
|---|
| 13 | end |
|---|