Searched refs:mediaPlayer (Results 1 – 7 of 7) sorted by relevance
130 public void onPrepared(MediaPlayer mediaPlayer) { in onCreate()131 int width = mediaPlayer.getVideoWidth(); in onCreate()132 int height = mediaPlayer.getVideoHeight(); in onCreate()138 mediaPlayer.start(); in onCreate()145 public void onVideoSizeChanged(MediaPlayer mediaPlayer, int width, int height) { in onCreate()346 abstract void useAsSinkForJava(MediaPlayer mediaPlayer); in useAsSinkForJava() argument363 void useAsSinkForJava(MediaPlayer mediaPlayer) { in useAsSinkForJava() argument364 mediaPlayer.setDisplay(mSurfaceHolder); in useAsSinkForJava()384 void useAsSinkForJava(MediaPlayer mediaPlayer) { in useAsSinkForJava() argument387 mediaPlayer.setSurface(s); in useAsSinkForJava()
53 public void setAsSourceFor(MediaPlayer mediaPlayer) throws IOException { in setAsSourceFor() argument55 mediaPlayer.setDataSource(mContext, mUri); in setAsSourceFor()57 mediaPlayer.setDataSource(mPath); in setAsSourceFor()
227 MediaPlayer mediaPlayer = new MediaPlayer(); in prepare() local228 mediaPlayer.setAudioStreamType(audioStreamType); in prepare()229 dataSource.setAsSourceFor(mediaPlayer); in prepare()230 mediaPlayer.prepare(); in prepare()234 mDuration = mediaPlayer.getDuration(); in prepare()236 mediaPlayer.release(); in prepare()
398 MediaPlayer mediaPlayer = new MediaPlayer(); in getOutputVideoProperty() local400 mediaPlayer.setDataSource(outputFilePath); in getOutputVideoProperty()402 mediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in getOutputVideoProperty()404 mediaPlayer.prepare(); in getOutputVideoProperty()406 mOutputDuration = mediaPlayer.getDuration(); in getOutputVideoProperty()409 mOutputVideoHeight = mediaPlayer.getVideoHeight(); in getOutputVideoProperty()410 mOutputVideoWidth = mediaPlayer.getVideoWidth(); in getOutputVideoProperty()411 mediaPlayer.release(); in getOutputVideoProperty()414 mediaPlayer.release(); in getOutputVideoProperty()
549 MediaPlayer mediaPlayer = new MediaPlayer(); in onUtteranceCompleted() local551 mediaPlayer.setDataSource(mSampleFile.getPath()); in onUtteranceCompleted()552 mediaPlayer.setAudioStreamType(AudioManager.STREAM_BLUETOOTH_SCO); in onUtteranceCompleted()553 mediaPlayer.prepare(); in onUtteranceCompleted()556 mediaPlayer.release(); in onUtteranceCompleted()557 mediaPlayer = null; in onUtteranceCompleted()560 if (mediaPlayer != null) { in onUtteranceCompleted()561 mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in onUtteranceCompleted()574 mediaPlayer.start(); in onUtteranceCompleted()
116 <pre>MediaPlayer mediaPlayer = MediaPlayer.create(context, R.raw.sound_file_1);117 mediaPlayer.start(); // no need to call prepare(); create() does that for you129 MediaPlayer mediaPlayer = new MediaPlayer();130 mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);131 mediaPlayer.setDataSource(getApplicationContext(), myUri);132 mediaPlayer.prepare();133 mediaPlayer.start();</pre>138 MediaPlayer mediaPlayer = new MediaPlayer();139 mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);140 mediaPlayer.setDataSource(url);[all …]
3978 MediaPlayer mediaPlayer = new MediaPlayer(); in onPlaySoundEffect() local3982 mediaPlayer.setDataSource(filePath); in onPlaySoundEffect()3983 mediaPlayer.setAudioStreamType(AudioSystem.STREAM_SYSTEM); in onPlaySoundEffect()3984 mediaPlayer.prepare(); in onPlaySoundEffect()3985 mediaPlayer.setVolume(volFloat); in onPlaySoundEffect()3986 mediaPlayer.setOnCompletionListener(new OnCompletionListener() { in onPlaySoundEffect()3991 mediaPlayer.setOnErrorListener(new OnErrorListener() { in onPlaySoundEffect()3997 mediaPlayer.start(); in onPlaySoundEffect()