public void updateVisualizer(byte[] bytes) { mBytes = bytes; invalidate(); }
public void onWaveFormDataCapture(Visualizer visualizer, byte[] bytes, int samplingRate) { mVisualizerView.updateVisualizer(bytes); }
public VisualizerView(Context context) { super(context); init(); }
@Override protected void onDestroy() { super.onDestroy(); releaseMediaPlayer(); doCleanUp(); }
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this.getApplication(), MediaPlayerDemo_Audio.class); intent.putExtra(MEDIA, LOCAL_AUDIO); startActivity(intent); } };
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this, MediaPlayerDemo_Video.class); intent.putExtra(MEDIA, LOCAL_VIDEO); startActivity(intent); } };
public void onPrepared(MediaPlayer mediaplayer) { Log.d(TAG, "onPrepared called"); mIsVideoReadyToBePlayed = true; if (mIsVideoReadyToBePlayed && mIsVideoSizeKnown) { startVideoPlayback(); } }
@Override protected void onDestroy() { super.onDestroy(); releaseMediaPlayer(); doCleanUp(); }
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this.getApplication(), MediaPlayerDemo_Audio.class); intent.putExtra(MEDIA, RESOURCES_AUDIO); startActivity(intent); } };
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this, MediaPlayerDemo_Video.class); intent.putExtra(MEDIA, STREAM_VIDEO); startActivity(intent); } };
public void onPrepared(MediaPlayer mediaplayer) { Log.d(TAG, "onPrepared called"); mIsVideoReadyToBePlayed = true; if (mIsVideoReadyToBePlayed && mIsVideoSizeKnown) { startVideoPlayback(); } }
public void updateVisualizer(byte[] bytes) { mBytes = bytes; invalidate(); }
public void onWaveFormDataCapture(Visualizer visualizer, byte[] bytes, int samplingRate) { mVisualizerView.updateVisualizer(bytes); }
public VisualizerView(Context context) { super(context); init(); }
@Override protected void onPause() { super.onPause(); releaseMediaPlayer(); doCleanUp(); }
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this.getApplication(), MediaPlayerDemo_Audio.class); intent.putExtra(MEDIA, LOCAL_AUDIO); startActivity(intent); } };
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this, MediaPlayerDemo_Video.class); intent.putExtra(MEDIA, STREAM_VIDEO); startActivity(intent); } };
public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { Log.v(TAG, "onVideoSizeChanged called"); if (width == 0 || height == 0) { Log.e(TAG, "invalid video width(" + width + ") or height(" + height + ")"); return; } mIsVideoSizeKnown = true; mVideoWidth = width; mVideoHeight = height; if (mIsVideoReadyToBePlayed && mIsVideoSizeKnown) { startVideoPlayback(); } }
@Override protected void onPause() { super.onPause(); releaseMediaPlayer(); doCleanUp(); }
public void onClick(View v) { Intent intent = new Intent(MediaPlayerDemo.this, MediaPlayerDemo_Video.class); intent.putExtra(MEDIA, LOCAL_VIDEO); startActivity(intent); } };