How to create video Player app in Android Studio | Android Firebase Video Streaming App | How to create Video Streaming App Android | How to create app like tik tok | How to earn money online

How to create video Player app in Android Studio


You can create video streaming app with videos url from firebase or any other website to create streaming app.

In this tutorial you will learn how you can create video app with use of Google free platform Firebase , you can upload videos on Firebase and then you can stream videos in you app easily . You need firebase account for it. 

Or you can use google account and sign in to Firebase , then you can use simple codes which are provided below

You need to change video url , and you will be able to play custom video inside your app from firebase. You can learn more by below video.


If you have any question , let me know in comments.

First Copy Paste this code in MainActivity.xml


<VideoView
android:id="@+id/video1"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>

Then Copy Below Code in .Java Activity

VideoView videoView = (VideoView)findViewById(R.id.video1);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
Uri uri = Uri.parse("https://video-bom1-2.xx.fbcdn.net/v/t42.1790-2/147105709_114596460608144_4594280420615694180_n.mp4?_nc_cat=108&ccb=3&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImxlZ2FjeV9zZCJ9&_nc_ohc=ec4vx227iXQAX_xiray&_nc_ht=video-bom1-2.xx&oh=3e37fcfb467b9e2370d4ad896bcaa1b6&oe=60241BF4");
videoView.setMediaController(mediaController);
videoView.setVideoURI(uri);
videoView.start();

Replace video url with your video url

and add these permissions to your android manifest file
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


Download This App Source Code

Click Here To Download


Youtube Video Tutorial Link

https://youtu.be/sdZoRKkGZLo


Keywords

How to create video Player app in Android Studio

How to create a video Player app in Android Studio 

Firebase Music Streaming App

Android Firebase Video Streaming App 

How to create Video Streaming App Android 

How to create a Video Streaming App

How to create Video Streaming App in Android Studio

How to create my own video streaming app

How to create an app like tik tok

How to create app like tik tok

How to earn money online

Post a Comment

4 Comments