[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

shoes changing video size

Edward Redman

7/23/2008 12:37:00 AM

I have finally gotten video to work with shoes and am very impressed by
the small amount of code required. Below is the code that allows me to
play a video.

Is there some way I can change the size of the video. So far I have not
found anyway of doing so.

thank you

#################################################################
Shoes.app :width => 1000, :height => 800, :resizable => true do
background "#eee"

stack :margin => 4 do


@vid = video "http://whytheluckystiff.net/o..e/adventure_time...
# @vid = video "path to the video."


end
para "controls: ",
link("play") { @vid.play }, ", ",
link("pause") { @vid.pause }, ", ",
link("stop") { @vid.stop }, ", ",
link("hide") { @vid.hide }, ", ",
link("show") { @vid.show }, ", ",
link("size") { @vid.height *= 2; @vid.width *= 2; @vid.redraw},", ",
link("+5 sec") { @vid.time += 5000 }
end
#########################################################################