url - Can't get file with thumbnail from Vimeo -


i'm creating portfolio page user uploads images or informs video url youtube or vimeo.

when user informs vimeo url following steps:

1- xml file "vimeo.com/api/oembed.xml?url=[encoded_url]"

2- "video_id" property file, video id (i can open video in browser "vimeo.com/[video_id]", instance)

3- generate embed video url video id, doing "player.vimeo.com/video/[video_id]"

4- xml file "vimeo.com/api/v2/video/[video_id].xml"

5- "thumbnail_medium" property file, video thumbnail


works fine:

when try, instance, video "vimeo.com/channels/staffpicks/130537730" do:

1- xml file "vimeo.com/api/oembed.xml?url=https%3a%2f%2fvimeo.com%2fchannels%2fstaffpicks%2f130537730" - ok

2- "video_id" property file - ok - returns "130537730" (the video "vimeo.com/130537730" works fine)

3- generate embed video url video id: "player.vimeo.com/video/130537730" - ok - works fine

4- xml file "vimeo.com/api/v2/video/130537730.xml" - ok

5- "thumbnail_medium" property file - ok - returns "i.vimeocdn.com/video/536785976_200x150.jpg"


error (the file doesn't exist):

if try video url "vimeo.com/ondemand/bendingsteel" (it's trailer) do:

1- xml file "vimeo.com/api/oembed.xml?url=https%3a%2f%2fvimeo.com%2fondemand%2fbendingsteel" - ok

2- "video_id" property file - ok - returns "134429740" (the video "vimeo.com/134429740" works fine)

3- generate embed video url video id: "player.vimeo.com/video/134429740" - ok - works fine

4- xml file "vimeo.com/api/v2/video/134429740.xml" - error - don't file


workaround (i don't think it's alternative):

the xml file "vimeo.com/api/oembed.xml?url=https%3a%2f%2fvimeo.com%2fondemand%2fbendingsteel" have "thumbnail_url" property returns video thumbnail, , got "i.vimeocdn.com/video/527925293_1280.jpg", wanted smaller image thumbnail.

based on thumbnail of first video manually changed thumbnail of second video "i.vimeocdn.com/video/527925293_200x150.jpg" , worked fine, don't think approach , don't know if work in cases.


i don't know if did wrong, or if there's better approach, or if occurs because video trailer, think weird behaviour because else works fine.

i tried video "vimeo.com/36031564" (it's not trailer) , worked fine, video "vimeo.com/ondemand/ashestoagassiz" (it's trailer) same error occured, think error happen trailers.

i tried other types xml still didn't file.

any suggestion?

the url doesn't work (vimeo.com/api/v2/video/134429740.xml) part of deprecated simple api. system never supported vimeo on demand, , no new development happening on api.

your best bet use new api.

  1. create api app
  2. generate token manually app's authentication page.
  3. request https://api.vimeo.com/videos/{video_id}?access_token={token}

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -