Streaming non-youtube videos inside android app - android

Is there a way to stream non-youtube videos(videos that are not uploaded on youtube) inside android app? Similar to amazon, netflix and other video streaming apps? I am developing an app where the videos may not be necessarily available on youtube.

If the video file has a URL, you can pass it to the MediaPlayer. You may find the ExoPlayer library more powerful.
Not all video storage services will have such URL for you. They may require, just like YouTube, a special SDK, and often cost money.

Related

Using YouTube as hosting platform to embed videos with download functionality?

I need to embed videos in my android/ios app and I'm thinking about using Youtube as the hosting platform. Besides just playing the videos, it should be possible to download certain videos.
I know apps for downloading youtube videos are not allowed but in my case, a user cannot download any videos he wants, just the ones I embedded (from my youtube cannel). Would this use case be allowed in the app stores?
Also are there other disadvantages for using youtube as a hosting service to embed videos?

playing .mov files in android app

What are the ways to play .mov video formats in android application? Unfortunately, android does not support .mov video formats.
You can use the ExoPlayer component.
It's not an android component, but a Google third party component, so you could depend on them, will be stable.
I have used to play that kind of videos without problem
https://google.github.io/ExoPlayer
Hope it's helps

Rails Backend For Streaming Android Videos

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.

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

The most adaptable way to play YouTube Video in android application

I did google about this question and I found 4 possible ways to do it:
play the video with the following manner:
startActivity(newIntent(Intent.ACTION_VIEW,Uri.parse(uri)));
Get the RTSP link and play the video with VideoView
play the video using Flash
Using HTML5 iframe
I have an android 4.0 device and I am able to play YouTube videos using the first three methods. My question is: which method is the most adaptable to different version. If the answer is using HTML5, how can I do it. Thank you very much for your time.
The most allround way of doing it to open it with a URI parse. There is also a way of forcing the YouTube app to be called(sorry I think I read it someplace but I do not remember how) and show the video there. This means you do not get the option to chose to open the video in the browser.
The rest of the alternatives are only supported by some devices. (Flash is outdated, HTML5 is not supported on most devices). I you are going to do something else then using the buildt-in YouTube app I would recomend RTSP as the best option.

Categories

Resources