Is it possible to grant access, via a policy, only to Vimeo api to download the private content into my bucket?
I am trying to create a videos platform with RoR 5 and I am using paperclip to upload the videos to my S3 account. To avoid incompatibility problems with the videos I want use Vimeo to transcode and hosting them (I think is a better option than the transcoding service in cloud).
So I have to use the Vimeo API to upload the videos to my Vimeo account and more specifically the option "Automatic (“pull”) uploads"
Developer / API Upload Videos
where I need to pass "A url to a video file accessible by Vimeo's servers.", a S3 url in my case. The problem is that I want to have private content in my S3 bucket, but so the vimeo API can't access to the video url.
According to AWS S3 documentation, this is possible. Follow this link for details:
Restricting Access to a Specific HTTP Referrer. However, I am not sure that api.vimeo.com is the name of the Vimeo server that pulls videos.
Related
i tried to automate video upload to my YouTube channel using YouTube data API v3, everything works perfectly except that the videos are uploaded as private and locked that way.
i know it is a restriction by design and the scope verification requires privacy policy page and a domain which i don't own as an individual. Making it internal is not an option neither, since it requires organization and google workspace.
how can a normal user be able to automate uploads using youtube data API.
Youtube's api ToS state that we must allow a user to upload a video to their own account or to our youtube application account. What would be the proper process for doing this? The code snippets refer to using one's own account (e.g. api key and secret key). Will these work for uploading to the user's account?
Well, if you want users to upload video on your channel, what they need is your OAuth token. This SO question also have an information about your problem.
This documentation will explain you on how to obtain an OAuth access token. It contains sample code that you can copy/follow.
For more information, you can check these tutorials:
How to Authenticate & upload videos to YouTube Channel in PHP
PHP server-side YouTube V3 OAuth API video upload guide
Yesterday got a enquiry from a client to build a portal similar to LMS(Learning Management System) for uploading and watching videos.
Features:
Admin can upload the videos
Registered Users who have valid subscription can view these videos on the portal and not directly at Youtube or Vimeo
My Question:
Can Youtube or Vimeo be used for hosting these videos?
Videos should be accessible only from the portal and not be listed in Youtube or Viemo public directory.
Does Youtube or Viemo have some paid/premium plan for this?
I can't speak on behalf of YouTube, but I can answer your question as it relates to Vimeo. I'd also assume that the same holds true for YouTube.
You can check out this link which shows the Vimeo video privacy options. But you could easily prevent people from seeing it on Vimeo if you use password or people I choose.
Then through the Vimeo api you could use the admin's Vimeo account credentials to request the videos specifically if your users have a valid subscription. If you use the admin Vimeo account client id and secret then you can request all the video's on that account (if it's a PRO account).
To clarify, requesting videos for the currently authenticated account through the API requires a Pro membership. Setting the privacy does not require PRO (at least not all of them do).
Yes. According to this documentation, when uploading (or updating) a video in YouTube, you can specify access controls for that video. You can indicate whether a video can be listed in YouTube search results or displayed in any other way unless the user has a URL that links directly to the video. The permission for this setting will be denied if the video is either unlisted or private. If you set the value to denied for a public video, then that video will become an unlisted video.
Here's an example from GitHub that uses statuses such as "public", "private" and "unlisted".
Does Youtube or Vimeo have some paid/premium plan for this?
Yes, Vimeo Plus plan would be enough.
Videos should be accessible only from the portal and not be listed in
Youtube or Viemo public directory.
Go to settings -> videos -> upload defaults
For privacy select 'Hide from vimeo.com'
And where it asks 'Where can your videos be embedded?' Enter your site domain (to prevet other sites from emddeing your video).
Now you can upload your videos and embed them to your site.
Can Youtube or Vimeo be used for hosting these videos?
Vimeo would be a good fit for your requirements, YouTube not so much the best privacy setting for a video would be 'unlisted' so videos won't be appearing in search results they can be played directly on YouTube.
We are proposing to use the YouTube API for a community video portal. When using the Upload API and the Player API ... I have the following queries ...
Can I store all the videos in my own Server, instead of storing on YouTube?
Will the uploaded videos on my site also appear on youtube.com automatically? Can I restrict the display of our videos on the YouTube site, as these come through a Pay wall?
Are there any restrictions to the number of videos being uploaded using the API?
Rregards
I have completed uploading videos to YouTube from my website, that's for particular user account only (means all videos uploaded to single user account). Now I want that user come to my site enter their YouTube username and password and selected video will be upload to their account.
Till now what i have done is i have uploaded videos to my own account with my developer key. But now i want that if any user uploads video to YouTube then it uploads to his/her account. I am not able to find out the way because it may possible that they don't have developer key which is required to upload. So i need help in this.
I have seen API but I am not able to work out help for this. Anyone can help me in this?
Thanks!
You need to use the OAuth 2.0 API documented here: https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2 to obtain the credentials you need.
Using the credentials you create a link to Google's authorization service which your customers follow. On that page they can either allow, or deny, access to their YouTube account to your service. Assuming permission is granted, the service will redirect to the "callback" location URL you provided along with a pair of access tokens. You can then use these tokens to upload videos to YouTube and the videos will appear in the customer's account as they they had uploaded them.
It would be helpful if you could be more specific about what you are asking.
This is the youtube API for uploading videos:
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_uploading_videos.html