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
#########################################################################
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
shoes changing video size
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password