We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23299
    • 1,161 Posts
    Any updates?
      • 36445
      • 10 Posts
      Just wondering- is it possible to work at a localhost level (instead of a live site) to get an authorization, then update the info when the site goes live? I have a TON of dev to do to build a video tutorial site for a client, and I realllly like to work locally for speed sake. As well, a little worried about something I read in the Vimeo API section of their site: basically they say if you abuse the API, you can have access blocked. My client will upgrade to PRO (since he'll be hosting content that will have commercial content)- hoping that will be OK with Vimeo?

      Thanks!
        • 36924 ☆ A M B ☆
        • 298 Posts
        All of this conversation, is is for Evo or MODx?
          • 40045
          • 534 Posts
          @ojchris: both evo and revo are MODx, but this discussion is about revolution =)

          @vrockford: I think this will be difficult because the real video files cannot be accessed via api according to a quick research:

          http://vimeo.com/forums/topic:30952
          http://vimeo.com/forums/api/topic:41030

          but there could be a really hacky and ugly way (which I didn't test) to achieve it anyway:

          http://stackoverflow.com/questions/11387128/get-direct-link-videos-from-vimeo-in-php

          I'm pretty sure nothing will happen to the account of your client if you try that because it's not even using the API, so cannot abuse it =)) but on the other side, just for the sake of working locally this is a bit overkill I think...

          To the general audience of this discussion: I have several times implemented the vimeo API (plus, pro and free accounts) in MODx and have created a snippet to do it all. For basic usage the "simple" API is way enough and you don't need the oAuth stuff for that. The snippet allows (or will allow) the use of either advanced or simple api, it's in production use and at the same time a very limited alpha =), but I plan to release it in the future to the community.

          At the time it's basically used to fetch the vimeo thumbnail from a video of which the url (normal vimeo url to the video) is saved in a tv, that clients can copy / paste from vimeo. The thumbnails are then cached locally via modx cacheManager in a specified folder to not have the request to vimeo every time the site loads (and which will slow it down significantly) and also to allow proper resizing via phpthumbof (which also works with remote/directly fetched thumbnail urls, but not stable). The video itself is just used to build the request url (curl) for the snippet. The implementation of the video itself is simple through the iframe-embed (html skeleton in a chunk > getResources, url from tv gets inserted...simple) option.

          meanwhile a possible solution I also see could be something that generates a request url to vimeo (with .json as return format) and parses it with SIMPLX Widgeteer (http://modx.com/extras/package/simplxwidgeteer) (Tutorial here: http://vimeo.com/23119814)...would be interested to know if this works, if somebody tries it =) [ed. note: exside last edited this post 13 years, 10 months ago.]
            • 36924 ☆ A M B ☆
            • 298 Posts
            @exside: Thanks for the quick response.

            I heard vimeo videos don't play on mobiles phones (Symbian or smart) is that correct in any way?

            How would one implement the "similar videos you like" feature on such sites as Youtube and Vimeo. I mean I would love to have a visitor viewing a video (hosted on vimeo) on my site, see a widget to left or right stating "Videos you might like".

            Thanks.
              • 40045
              • 534 Posts
              Vimeo videos definitely play on mobile devices because Vimeo uses HTML5 video (+ Flash for incapable devices and desktops [I think]), but it depends on how "modern" the device is, but basically every more or less normal smartphone will be able to play vimeo videos, so no problem there! (don't know about symbian...but poor nokia is out of the game a bit anyway =D).

              For the get related feature you'd like, maybe consider or have a look at the following, but I never used it (by the way, this is what the main vimeo site's there for...so why implement that on your own site...?): http://developer.vimeo.com/apis/advanced/methods/vimeo.categories.getRelatedVideos
                • 36924 ☆ A M B ☆
                • 298 Posts
                exside thanks for your response.

                Here is it: I want a situation were when a user views a video (which will actually be hosted on Vimeo) on site, the related videos from my Vimeo account are also highlight on the sidebar.

                From the page you referenced seems this is available in their API.
                  • 40045
                  • 534 Posts
                  Yes, when it's your own account then it's definitely possible I think...wasn't sure about "vimeo defined" related videos (like wo know from youtube)...
                    • 36924 ☆ A M B ☆
                    • 298 Posts
                    Thanks again exside.
                    I have here a post made in relation to my queries: https://forums.modx.com/thread/81264/modx-video-social-network-possible#dis-post-447859

                    Will appreciate your thoughts.