Any way to use a custom Parameter for vimeo embed without using an iframe?


I am trying to get some oembed parameters attached to my Vimeo clips. I tried to get it going using the following two instructions:

Unfortunately what works for YouTube won’t work for Vimeo, as the returning URL has no such string as ?feature=oembed that I can make str_replace work on. It is just the video’s id at the end of the URL, which is random. I can make it work if I enter the exact ID of the clip to make str_replace look for.

Any idea how to make the function look for numbers and attach the parameters? An example clip would be

and the oEmbed should be


As you can see here, there is another difference to YouTube. The arguments start with? and connects the arguments with &. Whereas YouTube begins with & and also connects the arguments with &.

, , , jakob 10 years 2013-10-07T05:11:30-05:00 0 Answers 96 views 0

Leave an answer