How to play youtube, vimeo, amazon s3 bucket in Android Native Player? - android

How to play youtube, vimeo, amazon s3 bucket video in Android Native Player?
I want play embedded video and simple video url like(.mp4, .m3u8) both in Android native player so, is there way to play video on same.

Now, I am using better approach, when i want to play Youtube video then i am using youtube player provided by youtube Api.
Other third party embedded url parse as per given standard.
For Native Player, I use customize media player.

Related

How can I play each type of video in a view in android

I am working on an android application and my application is having a functionality to upload multiple type of videos in app. The videos can be from any sources like Youtube, Vimeo or can be uploaded from device. So, I want to play each type of videos in my application whether they are uploaded from any type of resources.
If I use VideoView, it supports only some of the extensions and it can't play youtube and viemo uploaded videos as well. I have to use Webview to play youtube and vimeo videos.
Is there any view which can play all type of videos or can someone help me in creating a video player view which can play each type of video.
I don't have much idea about videoview, please help me if anyone know about this so that I can create a view which can play all type if video formats.
Thanks a lot in advanced.
There seems no universal video player for all video sources/types.
The Android built-in VideoView can play rtsp and HLS streams, take a look at Android: How to play RTSP or HLS video streams
To play rtmp video streams in Android, you can use a number of libraries such as Vitamio: refer to Android: How to play RTMP video streams
The VideoView used to be able to play youtube videos, but now you cannot. You need to use YouTube Android Player API now. Refer to Android development: Play Youtube video in your app, “Can’t play this video” and troubleshooting instead.

Load 360 degree video on youtube using VrVideoView (Google VR SDK)?

I want to load a 360 degree video, which is on youtube, in an native android app using VrVideoView (Google VR SDK).
Looking at the android api reference here, it doesn't seem to be supported,
but it seems to be available for iOS version?
Is there anyway to do this on android? Thanks
You can't play YouTube videos in custom video player because of YouTube content policy.
Even if you get video stream URL, your application will be rejected from Google Play.
The only thing you can do is to use Android YouTube player API
In the case of a 360 YouTube video it is 'Mono 360 uses a single pano.'
You can solve this problem by changing VrVideoView.Options
VrVideoView.Options options = new VrVideoView.Options();
options.inputType = VrVideoView.Options.TYPE_MONO;
videoWidgetView.loadVideoFromAsset("<your local youtube video>", options);
if you are not integrated sdk yet here is the .
link
for more info link

How can i play FLV videos in my android app

i'm developing a news mobile site. I need to be able to play flv videos in my app. How to include a flv player and play flv videos in it. I want to know anyway that i can play flv videos that are in the web.
for example i need to play videos in a format such as in this link
http://www.fortunagate.com/adaderana_apps/video_player.php?video=http://derana.lk/content/video/SriGauthamaSambuddha24-15thJune2014.flv
Android version before 2.1 not supported flash, but from 2.1 and later support flash for more info refer this link

How should I make my mobile website support video playing in iphone, android?

I want to develop a mobile version of my website, in which I need to embed youtube video/ upload my own flv file and play it in my website, How should I implement this? Should I develop an Flash player by myself? How can I make iPhone play my flv files/Youtube ?
Thanks in advance!
You can upload your videos on youtube and add them to your website using iframe:
<iframe src="http://www.youtube.com/embed/VIDEO_ID"
width="yourwidth" height="yourheight"></iframe>
It will automatically switch to the HTML5 player if the device doesn't support flash.

How to stream videos from any url in android application?

I want to use media player to play videos from any url. I found that, youtube video can be played using rtsp url, but no other videos, like vimeo video, can be played in app. Is there any method to do it?
Unfortunately Vimeo doesn't provide support for RTSP, you could use flash to this end since Android support flash, and can be easily add with a WebView and simple HTML
Also, please keep in mind that playing Vimeo videos through a non-Vimeo player usually constitutes a violation of their TOS.

Categories

Resources