2008/12/29

Just one-liner solution playing YouTube video on Shoes!

# sample59-1.rb
Shoes.app(:width => 400, :height => 300){video \
"http://jp.youtube.com/get_video?video_id=8hBrRZuXjHA&t=\
OEgsToPDskKhuXfknhF5eWPOvhe-nw5P", :autoplay => true}

Shoes can get and control a video data by Shoes::Video object. Cool! B-)

I referred to the following web site. Thank you so much.
GUIfy your Ruby apps with Shoes

Regards,
ashbb

ps. For more information, see the Shoes Tutorial Note. :)

No comments:

O'Reilly Ruby Books

Twitter Updates

    follow me on Twitter