Rails Backend For Streaming Android Videos - android

I am currently building an app that will allow users to upload videos and view other users videos in a stream. Sort of like Vine. I have been using rails for over a year now but I am not sure how to go about implementing the backend for the android application.
My understanding of the situation is that I must use a json call to my rails api that will upload the video file to Amazon s3 or CloudFront. I then need to make the Amazon video file or url be stored or linked to a URL that the Rails app creates for the user.
After that, I would need to play the video (and other people's videos) back to the android application.
It looks like there are a lot of pitfalls to this. If anyone knows the correct way to go about doing this, I would be really grateful. Thank you.

Probably want to use a REST API.
Should host your videos on a CDN.
Can use VideoView to stream some types of videos on Android.

Related

What is the way to store android app resources on a server?

I'm interested in creating an android app that needs a lot of video clips.
To make the app weight not too heavy, I thought about storing the videos on a server and whenever the user wants to watch the video the app connects to the server and gets access to the video and the user can watch it (of course all this happens inside the application).
so how can i do it in android?
Thanks in advance to everyone
I do not know if you are conversant with web services, but i think the best way is to create a web service and communicate with your application. You will send a request each time a person wants to view that video and fetch it, it sometimes takes a while to load, basing on the algorithm you use, or even internet connectivity, but it is easier, especially with languages like php.
However,Your videos should be compatible with android.
This tutorial will help you see how to call videos by url.
I also admire this Website. It shows you how to perform storage and live streaming on both android and the server.

Video streaming from server to Android app

I have a server builded with Spring where users can upload images and videos.
Now I am building an Android app where users should watch these videos throught streaming, but I am little bit lost about how to handle this.
I have looking for information about how to do this, and I am not sure if I could do with a Spring REST method.
What is the best way to do this? I would appreciate any help.
Thanks in advance.

IOS/Android app uploading videos to YouTube?

I am developing an IOS/Andriod app where I want my users to be able to upload videos - these videos will later be used by the app. Since I don't want to spend a lot of money on data storage I was thinking of using YouTube as the placeholder of the videos.
Is is scenario supported by YouTube?
Are there any limitations for me to consider regarding this scenario?
Is it OK if my app uses only one YouTube account - which my app users share and use when they upload a video? Or do my app users I have to use a personal YouTube account to upload the videos?
Anything else I should think of which I might be missing here?
Thanks
Thomas
I am going to answer you about android because I know about how you can achieve this in Android apps.
Here's a simple step by step to learn how you can integrate Youtube in your android application. for doing this You will need to download the client libraries written in java. Download the library here
This scenario is supported by Youtube
It will be OK to use only 1 youtube account to upload videos to Youtube. but all users have to share that account
One thing you can consider to make sure not to upload very large files (more than 100MB). although it will upload but it can take much time.
It is possible to upload capture/gallery videos on your own channels, not possible to use like all users data storage.

Uploading a YouTube video from an Android application

I have a doubt about the ability to integrate youtube to my mobile application.
The mobile application should have a button for loading (by the user) video directly on youtube, on a dedicated channel. This channel will be created from my client. There is the possibility, through the bees, to integrate video upload directly to a specific youtube channel?
it's for android application.
Thanks a lot for the answer.
The most straightforward way to upload a video to YouTube in an Android application is to use the Intent exposed by the YouTube application. There's examples of doing this in other Stack Overflow questions, e.g. android youtube upload using intent
That being said, I wanted to point out that uploading videos into a single "master" account (which you seem to want to do, based on your question) isn't a good idea. This blog post explains why that is in more detail: http://apiblog.youtube.com/2012/02/video-uploads-from-your-sites-community.html

Android upload video using gdata to youtube?

In my application I need to upload a video to youtube from the gallery or a recording. I read
http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Uploading_Videos
and i have only youtube email account....
Which of the three approaches (browser based,direct,resumable) should I use?
and there are any source code??
You're going to need to use Direct Uploading because (I'm assuming) you're going to be receiving which video to upload via and Intent. Here's a link to a project that demonstrates how to (among other things) directly upload to youtube from android. It should be exactly what you need to get started. I think the code you're looking for can be found here.

Categories

Resources