Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Youtube: autoplay and hide related #58

Merged
merged 2 commits into from Jan 3, 2014

Conversation

Projects
None yet
4 participants
Contributor

AlexDenisov commented Sep 28, 2012

Added options to hide related videos when playback ends and to autoplay video when the player loads.

New youtube options

autoplay: true, false (by default false)
hide_related: true, false (by default false)

lightbe commented Aug 18, 2013

Do these options work? I'm running version 1.6.0. I have done this in my model:

youtube(:width => 640, :height => 360, :autoplay => false, :hide_related => true)

Thumbnails still appear for related videos instead of the default thumbnail for the video when I embed directly from YouTube with ?rel=0 at the end of the link.

Contributor

AlexDenisov commented Aug 18, 2013

It works, but this functionality doesn't merged into upstream...

lightbe commented Aug 18, 2013

I forget the version of the gem I started with. It would have been before these options were added. That I know. Do I need to start over and create a new database to get this working?

@dejan dejan merged commit 77d8b8a into dejan:master Jan 3, 2014

1 check failed

default The Travis build failed
Details
Owner

dejan commented Jan 3, 2014

Thanks! This will be in 1.6.2 due in few days.

how to autohide the controls in youtube player

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment