Searched refs:mediaPlayer (Results 1 – 9 of 9) sorted by relevance
38 final MediaPlayer mediaPlayer = new MediaPlayer(); in playSound() local39 mediaPlayer.setAudioStreamType(AudioManager.STREAM_NOTIFICATION); in playSound()41 mediaPlayer.setDataSource( in playSound()44 mediaPlayer.prepare(); in playSound()45 mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in playSound()55 mediaPlayer.seekTo(0); in playSound()56 mediaPlayer.start(); in playSound()
100 public void onPrepared(final MediaPlayer mediaPlayer) { in VideoThumbnailView()102 mVideoWidth = mediaPlayer.getVideoWidth(); in VideoThumbnailView()103 mVideoHeight = mediaPlayer.getVideoHeight(); in VideoThumbnailView()104 mediaPlayer.setLooping(loop); in VideoThumbnailView()110 public void onCompletion(final MediaPlayer mediaPlayer) { in VideoThumbnailView()116 public boolean onError(final MediaPlayer mediaPlayer, final int i, final int i2) { in VideoThumbnailView()
68 public void onPrepared(MediaPlayer mediaPlayer) { in onFinishInflate()69 mediaPlayer.setLooping(true); in onFinishInflate()74 public boolean onInfo(MediaPlayer mediaPlayer, int what, int extra) { in onFinishInflate()
23 public FakeMediaUtil(final MediaPlayer mediaPlayer) { in FakeMediaUtil() argument24 mMediaPlayer = mediaPlayer; in FakeMediaUtil()
223 MediaPlayer mediaPlayer = MediaPlayer.create(mContext.getApplicationContext(), in createMediaPlayer() local225 mediaPlayer.setSurface(surface); in createMediaPlayer()226 mediaPlayer.setLooping(true); in createMediaPlayer()227 return mediaPlayer; in createMediaPlayer()
487 MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.beep_boop); in createMediaPlayer() local488 mediaPlayer.setLooping(true); in createMediaPlayer()489 return mediaPlayer; in createMediaPlayer()
75 public void onPrepared(MediaPlayer mediaPlayer) { in onBindViewHolder()76 mediaPlayer.setLooping(true); in onBindViewHolder()
182 final MediaPlayer mediaPlayer = new MediaPlayer(); in initEffectsPreferences() local183 final int session = mediaPlayer.getAudioSessionId(); in initEffectsPreferences()194 mediaPlayer.release(); in initEffectsPreferences()211 final MediaPlayer mediaPlayer = new MediaPlayer(); in initEffectsPreferences() local212 final int session = mediaPlayer.getAudioSessionId(); in initEffectsPreferences()250 mediaPlayer.release(); in initEffectsPreferences()
651 public void onCompletion(MediaPlayer mediaPlayer) { in onCompletion() argument