Skip to content

Instantly share code, notes, and snippets.

@glurp
Last active December 25, 2015 02:19
Show Gist options
  • Select an option

  • Save glurp/6901872 to your computer and use it in GitHub Desktop.

Select an option

Save glurp/6901872 to your computer and use it in GitHub Desktop.
Ruiby.app width: 600,height: 400 do
video_url="file:///#{ARGV[0] || "d:/usr/XT.avi"}"
stack do
@v=video(video_url,600,400-40) {|progress| @prog && @prog.progress=progress*100 }
flowi {
buttoni(" Start ") { @v.play }
buttoni(" Stop ") { @v.stop }
@prog=slider(0,0,100.0) { |pos| @v.progress= pos/100.0}
buttoni(" Exit ") { exit!(0) }
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment