kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

its possible autoplay? #94

Closed hyperrjas closed 12 years ago

hyperrjas commented 12 years ago

Hello I want to know if is possible add autoplay option in video player.

I dont find this option in readme.

Thank you very much

chebyte commented 12 years ago

for the moment just embed_html5 supports params, but I going to add support params for flash embed soon

but you can do

video.embed_html5(:url_params => {:autoplay => "1")
hyperrjas commented 12 years ago

Thank you very much, but I have tried with the next code, but the autoplay it does not works for me :(:

raw yt_client.my_video(@object.yt_video_id).embed_html5(:url_params => {:autoplay => "1"})

Where have I the problem?

Thank you!

chebyte commented 12 years ago

your code is ok, we just pulled the new release of gem so please update the gem to 2.1.15 with the last version your code has to works, please try and tell me

hyperrjas commented 12 years ago

Woow now the autoplay does works fine :D. Thank you very much @chebyte!

chebyte commented 12 years ago

thanks you for report the problem!

hyperrjas commented 12 years ago

;) Thank you to you for your help and for your help!