Loading the player...

How to Play Video in Android Studio 1.4

  • Tutorial about how to Play an mp4 Movie using VideoView in Android Studio version.1.4.n0:00 Create New Project with Application name "Play Video"; Minimum SDK - API 9: Android 2.3 (Gingerbread).n0:44 Create New Directory in app - res with name "raw".n1:02 Copy a video you want to display, in new created folder, raw; I used in this example, a video with name "movie.mp4".n1:44 In file activity_main.xml, create a VideoView to display your video.n1:52 In file activity_main.xml, create a Button to play again video, on click.n1:57 Complete code in MainActivity.java (in onCreate).n3:05 Run the app with Emulator.n3:40 Enjoy the result!nAttention: the app is working only with Video with extension mp4. If you have an .avi movie or other extension, convert it on mp4 and add video to Android project.nFor more details click here: nandroid-coffee.com/tutorial-how-to-play-video-in-android-studio-1-4/

    Category : Компьютерные игры

    #how#play#video#android#studio#14

    0 Comments and 0 replies
arrow_drop_up