Which VIMEO API to use for our needs - web based help "tutorials" - vimeo

We have a web based system that we are looking at replacing our existing "help system" from uploading flash videos directly to our website to instead "embedding" content we upload to our vimeo account. We have setup a vimeo pro account and these videos need to be "private" i.e. not accessible to the general public. Which API version should I use? And do you have any sample code in say PHP I could take a peek at with the functionality we are after

The Advanced and Simple API's will no longer receive new features, and soon you will not be able to create new apps for them.
Vimeo has moved towards a unified API, which you can read about at http://developer.vimeo.com/api. Make sure to use the api through api.vimeo.com, not vimeo.com/api/rest/v2.
Vimeo has an official PHP library, with some very basic examples that you can see at http://github.com/vimeo/vimeo.php

Related

Building Roku channel with vimeo as a feed

I'm sorry for bothering you guys with something as simple as this appears will be for you. I am trying to help develop a public Roku channel for an awesome minister I know who has 100's of videos. (hoping Naz Vanof or someone who knows a lot about this can help)
I attempted to find information on how to use Vimeo as a json feed provider and didn't find any tutorials. (the online help at Vimeo was no help).
First is there something that needs to be done for each video uploaded to my Vimeo account to prepare them to be used as json? I tried using the provided URL for my Vimeo account on the Direct Publisher feed link and it wouldn't accept it.
I've been searching for two days on this subject and not really getting anywhere and the only place I could see any related content was here (Naz). The videos I am using I have permission for from the developer but they are downloaded from Youtube through the Keepvid online program to my computer then uploaded to Vimeo. Is that an issue?
Sorry for the lack of knowledge but I am excited to get my feet wet on this and have a high aptitude in other fields, I'm just a total newbee in this field. starting two days ago I went through all the tutorials on Roku and did all the prep for establishing the developer account, and learned how to side load and alter channel templates, now I just need to know how to get my URL link to connect and to organize videos on Vimeo. Later I will get deeper with the Brightscript app. But what they have for the template for Direct Publisher would be perfect to get started.
Thanks and sorry again for this base level question.
Direct Publisher accepts two types of feeds, as described in the Direct Publisher Feed Specifications: their own custom JSON format (which is not something Vimeo offers I imagine, based on how new Direct Publisher is) and MRSS feeds (which Vimeo might offer, not sure). If Vimeo doesn't offer either of those, you likely won't be able to use Direct Publisher, unless you create your own in between API layer which transforms what Vimeo offers to what Direct Publisher needs.
According to other sources Vimeo does offer JSON feeds. And I did purchase Vimeo Pro but still could not access my files. I was wondering if the type of encoding on Youtube where I had to get the downloads to upload to Vimeo would interfere with the Direct Publisher feed? They don't support Youtube links so I used a Keppvid program to download from Youtube then upload to Vimeo. Vimeo accepted those downloads no problem. But my URL wouldn't work on Direct Publisher. I talked to Vimeo and they said my account URL should have worked. I'm stuck.
You need to compare the Vimeo feed to Roku's feed specification and figure out what the difference is that is causing it to not work, then load the Vimeo feed into a text editor and alter it to make it compatible. Alternatively and preferably, you would write a script that would do the conversion on your own server so you could have it run once a day and then deliver the feed from your server to Roku's server instead of directly from Vimeo.
The problem with using Vimeo is that housing your video in an external xml document, vimeo uses Ampersand in their URL. Sample:
https://player.vimeo.com/external/213601353.hd.mp4?s=71a24afbe4d4792806a08391263kjhisihe69fe2&profile_id=xxx
This needs to be modified to:
https://player.vimeo.com/external/213601353.hd.mp4?s=71a24afbe4d4792806a0839126c484c175269fe2&profile_id=174
Once you make this change the xml URL will be parsed properly. The URL was having the ampersand stripped which is why it may not have been working. I have tested this with all of our vimeo videos and they work properly now.
Hope this helps.

Can google script be used to make the list broadcast

Can google script be used to make the list broadcast api for you tube and the stream and basically can you make the broadcast samples using scripts i have made the other samples but it is unclear if scripts can be used to the broadcast. Also it appears that depending on the manor of which i access the scripts app I get different options. For instance if i access the the scripts app using google drive I can share and other stuff that is not available if i access the google drive though api and the regular free account. I wonder if there is a better way to access to get all the services? I think before the scripts service would not work for the broadcast. however it appears it has been updated is that because i have a credit card on file now? i notice i have more options now than before in scripts.
I found the answer yes you can make broadcast api from you tube ver (3) on google scripts as long as you have a credit card on file. That's cool google deserves to get paid. With out your card key elements are missing in scripts and everyplace else. Makeing it difficult if not impossible for hacks like me to get the api back on the internet. But with a credit card on file wow two clicks and its done no coding nada just change out the public api credential. I just wish this would have been told to me months ago. and please everyone forget about java, go, java-script and everything else if you want a web-service or web app from youtube api. Use in this order Python .php google scripts. But i did learn how to become a expert developer its called master card. this is my experience only and i still think its a great thing but if your not a genius use your card you will feel like one.

getting videos in google drive (and Microsoft onedrive) to show in a video tag?

I have a website that has a web page with a html5 video-tag, and the user can supply a URL, and it will play in the video-tag.
The webpage uses JavaScript commands that control the video-tag - for instance, it can pause the video, move to a different point in the video, etc.
It works fine with the cloud. Videos stored on Microsoft Azure can be used, for instance (Azure gives you a way to get a URL to any video on your cloud storage, and streams it too).
However, I have users that store videos on Google-drive, and also on Microsoft One-Drive.
From what I can see, I can play these videos, but only in a page (probably with Google's own player in it) on their site.
It seems that there is no way to get a URL to these videos that I can put in a video tag.
Without the ability to do that, I can't use the javascript commands that work with the html5 video-tag.
Is there any workaround?
Or am I missing something?
Thanks.
For playing videos that are stored in google-drive using your app:
you need oauth2 credentials to access the user's drive, but assuming you have the oauth part covered :
you can create a drive application as a google appengine app and deploy it in a part of your website.
enable the drive-sdk and set the open-url to your website (that you have verified)
-> basically this tells drive to redirect towards your website whenever the user clicks on the video (from his drive)
when drive redirects to your website a json file will be sent, you'll have informations such as fileId from there i think you can execute the method files().get() to retrieve the necessary information for you to play the video
I advise you to take a look at this course in codeschool.

Upload Video to Facebook from AIR app

Developing an AIR based app that captures video. The user will then be able to upload to facebook if they so choose.
Right now I am confused about the requirements in uploading videos to facebook.
Even though this is technically NOT a facebook application, will I need to create a Facebook application ID?
Will I also need to make use of the facebook-actionscript SDK?
I've read elsewhere that the API needs to launch the Facebook login within a web view.
Or are there alternatives in my case?
Even though this is technically NOT a facebook application, will I need to create a Facebook application ID?
Yes.
Will I also need to make use of the facebook-actionscript SDK? Or are there alternatives in my case?
Talking to the API works over HTTP – so you can use any technique that allows you to make HTTP requests.
But using a framework/SDK that already has methods for usual FB API stuff will be much simpler, than handling all that HTTP stuff yourself.

Incorporate Google Drive solution in existing Android app project?

I have an existing Android app project which has been already published on the Google Play, and now I would like to incorporate in my app the possibility to use the Google Drive possibilities in order to download *.jpg files directly to the sd card when the app is opened or load for the first time. Like this I liberate the internal memories of the phones where this app is installed (All the images are stored in the resources of the app actually which is >~ 20MB). I have read a lot of forums concerning the Google Drive SDK or API subjects and I can say that I'm a little bit lost on the manner to manage it for my present app. Some ideas or suggestions would be very very very appreciated.
Thank you very much).
Please see this question for the basics on how to integrate your Android app with Google Drive SDK: Access to Google Drive from self implemented Android application
In it, I reference a good Google+ tutorial on how to get started, and it's easy enough to take the concepts and apply them to an existing app. (That's how I did it too.) Before you get started, sign up for the Google APIs (https://code.google.com/apis/console/), get into the API Console, and turn on both the Google Drive API and Drive SDK. This'll make coding go a lot smoother. Let me know if you have any problems.
One addendum for your specific case relating to *.jpg files is you could set a MIME type for fetching strictly the pictures. It'd go something like this:
request = service.files().list(); // .setQ("mimeType=\"text/plain\"");
Unfortunately setQ is commented out because it would fail to return any results when I used it. However, you may have better luck with the image/jpeg MIME type.