Tutorial How To Play Video from PC in Android Studio
Easy tutorial how to play your video from pc, offline, in Android Studio version 3.1.3, using MediaController widget.
Create new project with Application name: My video; Minimum SDK: API 14 – Android 4 (IceCreamSandwich).
In app->res->layout-> create New Directory: rawand copy-paste a video from your computer, with name: movie.mp4.
In app->res->layout->activity_main.xml write the code:
Run app in mobile device or Emulator (API 27–Android 8.1) and watch your video in format portrait or landscape.
Follow YouTube VideoTutorial:
Download project with Source Code from here:
https://android-coffee.com/wp-content/uploads/projecs/Myvideo.7z
Please subscribe here to our YouTube channel. Thank you!
Check next tutorials to learn all about Android.
For furtherquestionsleave a message.
Leave a Reply