leedo / noembed

oEmbed gateway service with additional non-oEmbed sources
http://www.noembed.com
481 stars 90 forks source link

Options #5

Closed ghost closed 12 years ago

ghost commented 12 years ago

How can you set options like autoplay for a video?

This is the URL I'm trying: //noembed.com/embed?url=http%3A%2F%2Fyoutu.be%2FDT-dxG4WWf4&autoplay=1&callback=?

leedo commented 12 years ago

Currently there is no auto-play option. It is definitely something that could be added, assuming youtube supports it.

leedo commented 12 years ago

The autoplay option should work now with this commit: 2e9d276d3d5133e65a3f23a44e7e915f175547c1

ghost commented 12 years ago

Thanks!

Can you also enable it for Vimeo?

I am thinking, wouldn't it be more convenient to just pass through any query parameters passed to the original, encoded URL?

Like:

http://vimeo.com/34896859?autoplay=1 encoded becomes: //noembed.com/embed?url=http%3A%2F%2Fvimeo.com%2F34896859%3Fautoplay%3D1&callback=? for Noembed.

This in accordance with the official Vimeo noembed API too, I guess: http://vimeo.com/api/docs/oEmbed

leedo commented 12 years ago

I think passing through params is ideal, but it will require some refactoring. I'll just add autoplay to vimeo for now.

leedo commented 12 years ago

I've added the autoplay param to Vimeo.

After more thought I don't think passing through all params makes sense, especially for non-oembed enabled sites. My plan is to add an option for sources (e.g. Vimeo) to define a list of params that will be passed through.

ghost commented 12 years ago

Any news on this?

I want to remove the title and portrait of a Vimeo video because the title is already in the markup above the video.

ghost commented 12 years ago

Any news on this?

I want to remove the title, byline and portrait of a Vimeo video because the title is already in the markup above the video.

leedo commented 12 years ago

I've made it so we can define options that should be passed through. So you want title,byline, andportrait` parameters passed through to Vimeo?

ghost commented 12 years ago

That's correct. With the changes, I've managed to disable title, byline and portrait.

Thank you for your quick response and actions!

ghost commented 12 years ago

While using the Vimeo player API, I've noticed that the player_id parameter doesn't get passed through. Could this one be enabled too?

leedo commented 12 years ago

This should be getting pass through now. Thanks!

ghost commented 12 years ago

Great! Thank you too.