Sunday, 15 February 2015

videoview - load video with multiple resolution android -


I want to play a video from the raw folder, but the problem is that I have many resolutions for it and I do not have the most Also, I know to choose the best one, I want to handle the problem which appears when the video is not fit on the screen and I want it to be shown at full width and cut from top and bottom.

This is my current implementation, but this video is not fit on the screen. I do not even want it to be extended.

  Private Zero PlayNentro () {Uri Uri = Uri.pars ("android.resource: //" + Utils.getContext (). GetPackageName () + "/ raw /" + R. Aare.Video3); MVideoView.setVideoURI (URI); MVideoView.start (); MVideoView.setOnCompletionListener (this); } @ Override Public Wide On Combination (mediaplayer mp3) {this.finish (); Beginners (new intent (this, main activity category)); Android: layout_height = "wrap_content" android: id = "@ + ID /  Intro_video "/>  


No comments:

Post a Comment