Video Uploading to a specific channel on a Rails 4 app - ruby-on-rails

I am trying to figure out how to let users of my app post a video file on my site that is then posted to my site's video channel. At this point I don't care if I use you tube or vimeo. I'm struggling to figure out how to do this in either platform.
My struggle with the vimeo gem is that the documentation doesn't tell me where to put anything. I don't understand how to read the instructions beyond installing the gem.
My problem with you tube is that all the tutorials I can find want to start from the point where you add a link to content that is already posted.
Does anyone know where to find resources for how to setup you tube or vimeo video uploading, with instructions that tell you where to put bits of code inside an app?
It's not enough for me to say:
"First, instantiate the Base class:
base = Vimeo::Advanced::Base.new("consumer_key", "consumer_secret")"
I don't now what that means. Am I supposed to make some kind of initialiser to put this line into?
Does anyone know how to upload video files, to a rails 4 app, and have the app post the video to a specific channel?

Even if there was a way to make this work, you'd need to have a lot of trust in your users, as YouTube and Vimeo are quite strict with handling copyright and other "harmful" content (see YouTube Guidelines). On YouTube your channel might even get banned by uploading three videos that "cross the line" and Vimeo says "Upload only videos you created yourself." in their Guidelines.
Are you really willing to take the risk of having your presumably big channel banned only because one user decides to upload some copyright infringing videos?

Related

How to put a direct download link at my website for My YouTube channel videos

At my website, I am using the thumbnails of the videos listed at my YouTube channel. So the users of my website can click on the thumbnails and video start download automatically from YouTube channel. I tried many softwares and copied their download link and put to my website but after sometime the link didn't worked at all, may be because YouTube change some parameters in the URL.
So is there any way to offer one click direct download from YouTube, or any other like Vimeo, dailymotion,etc. I tried already the vimeo and I am able to get the direct download but the same problem as the url doesn't work after sometime on other ip, so my users are not able to download and they redirect to vimeo website.
I will appreciate if you could help me.
With YouTube it's absolutely not possible via the official API. There are certain third-party scripts in existence that may be able to download videos off YouTube anyways (cf. e.g. this SO question) but be advised that this is against the YouTube terms of service and thus illegal.
With Vimeo it's a little bit different, to my understanding. Video owners can opt to allow users to download their videos, but I think this is only through the player. Vimeo won't provide you with a download link, with this exception.
This is not what these services were designed for anyways. They are social media platforms, not video hosters.

How do YouTube downloaders access the videos?

I did find this answer but it uses YouTube's APIv2, and is now outdated as stated in the answer.
YouTube's terms of use state that you can't use another player or download videos, so it makes sense they've excluded it from the API.
Knowing that, how do online YouTube downloaders, or third party Android apps (that allow to turn the screen off while they keep playing music for example) access those videos?
I'm trying to access a video to stream it inside unity for example (by the way there's a couple of unity assets that do it too), and I'd like to learn how they do it.

Record Video and sharing it in ios app

In my app I want to give the user the option to record a video and share it. What is the easiest way to achieve this? (I have been trying to add video recording for days now and keep hitting dead ends). Can anyone offer some help?
To allow functionality to record videos within your app, please go to the Apple documentation for UIImagePickerController for taking pictures and movies
UIImagePickerController Class Reference Link
Once you have your video, sharing it is a little more difficult as unlike text or images, the movie file sizes can often be very large and may have to rule out simple sharing via email, text-message etc.
The best way to share in this case, would be to connect to an external API, like YouTube, where you can upload the video from the app. Here's a link to YouTube documentation for this
YouTube API Documentation Link
I suggest these as good places to start, as this is what you are asking for.
Hope this helps

How to protect MP4 video online but still be playable/accessible on iPad/iPhone devices

I have MP4 videos that people log in online to access. I need the videos to be playable/accessible on an iPad/iPhone, but still have some very basic protection on them. How can I do that?
I'm aware that putting the videos in a htaccess password-protected folder makes them inaccessible to iPad users, and even using htaccess to block hotlinking/direct-linking causes the videos to be inaccessible to an iPad user, even if the videos are in the same directory the users are currently in.
I understand that the videos can be downloaded by anyone using a Downloader plugin, and I'm not trying to have unrealistic bullet-proof security, I just don't want someone to be able to link directly to my videos saying, "Hey, you can watch those videos she's selling for free by clicking here:
ww w.mysite.com/private/video1.mp4 (that's not a real link, just an example)
I would think a lot of people have similar issues (wanting to protect online video in some way but still have them playable on an iPad/tablet/iPhone). Any suggestions would be greatly appreciated!

include existing youtube video in my own youtube account

Is it possible to add to my youtube account a video I liked in youtube without having to upload it?
This is for an application i´m developing... I´m looking for something similar to share on twitter feature.
But any help is welcome!
Thanks
You can add it as a favourite, as Yuliy has said, or you can create yourself a channel, add a playlist to that channel, then add the video in a similar way to the playlist.
Doing it this way means you can 'see' it from the API(getplaylists, getplaylist)... But, if the original author decides to take the video down, then of course it will disappear from your channel page as well (or more likely say 'this video has been removed by the user').
You cant keep a 'copy' of the video like this.

Resources