Call mp. SetDisplay(holder) method on mediaplayer instance private void playVideo() { try { MediaPlayer mp = new MediaPlayer(); Uri mpVideo =Uri. FromFile(fvvVideoFile); try { mp.
SetDisplay(holder); mp. SetDataSource(ActivityMediaPlayer. This, mpVideo); mp.prepare(); } catch (IllegalArgumentException e) {e.printStackTrace();} catch (IllegalStateException e) {e.printStackTrace();} catch (IOException e) {e.printStackTrace();} }catch (Exception e) { Log.
E(TAG,"error: " + e.getMessage(), e); } }.
Call mp. SetDisplay(holder); method on mediaplayer instance private void playVideo() { try { MediaPlayer mp = new MediaPlayer(); Uri mpVideo =Uri. FromFile(fvvVideoFile); try { mp.
SetDisplay(holder); mp. SetDataSource(ActivityMediaPlayer. This, mpVideo); mp.prepare(); } catch (IllegalArgumentException e) {e.printStackTrace();} catch (IllegalStateException e) {e.printStackTrace();} catch (IOException e) {e.printStackTrace();} }catch (Exception e) { Log.
E(TAG,"error: " + e.getMessage(), e); } }.
Thanks Mohit, I tried this but no luck still. – Tushar Vengurlekar Apr 8 at 10:51.
Mp. SetDisplay(holder); add the above statement in public void surfaceCreated(SurfaceHolder holder) { // TODO Auto-generated method stub } This will solve the problem.
String FICHIER_BLOW = "testvideo. BufferedInputStream VideoReader = new BufferedInputStream(getResources().getAssets(). While( (len = VideoReader.
Uri mpVideo =Uri. = 0 && mVideoHeight! Xml version="1.0" encoding="utf-8"?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.