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()
226 for (mediaPlayer in mediaPlayers.values) { in <lambda>() method227 val view = mediaPlayer.view?.player in <lambda>()228 if (mediaPlayer.isPlaying && mediaContent.indexOfChild(view) != 0) { in <lambda>()340 for (mediaPlayer in mediaPlayers.values) { in <lambda>() method341 updatePlayerToState(mediaPlayer, immediately) in <lambda>()389 for (mediaPlayer in mediaPlayers.values) { in <lambda>() variable390 val controller = mediaPlayer.mediaViewController in <lambda>()421 private fun updatePlayerToState(mediaPlayer: MediaControlPanel, noAnimation: Boolean) { in <lambda>()422 mediaPlayer.mediaViewController.setCurrentState( in <lambda>()451 for (mediaPlayer in mediaPlayers.values) { in <lambda>() method[all …]
253 MediaPlayer mediaPlayer = new MediaPlayer(); in onPlaySoundEffect() local256 mediaPlayer.setDataSource(filePath); in onPlaySoundEffect()257 mediaPlayer.setAudioStreamType(AudioSystem.STREAM_SYSTEM); in onPlaySoundEffect()258 mediaPlayer.prepare(); in onPlaySoundEffect()259 mediaPlayer.setVolume(volFloat); in onPlaySoundEffect()260 mediaPlayer.setOnCompletionListener(new OnCompletionListener() { in onPlaySoundEffect()265 mediaPlayer.setOnErrorListener(new OnErrorListener() { in onPlaySoundEffect()271 mediaPlayer.start(); in onPlaySoundEffect()
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()
413 MediaPlayer mediaPlayer = new MediaPlayer(); in getOutputVideoProperty() local415 mediaPlayer.setDataSource(outputFilePath); in getOutputVideoProperty()417 mediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in getOutputVideoProperty()419 mediaPlayer.prepare(); in getOutputVideoProperty()421 mOutputDuration = mediaPlayer.getDuration(); in getOutputVideoProperty()424 mOutputVideoHeight = mediaPlayer.getVideoHeight(); in getOutputVideoProperty()425 mOutputVideoWidth = mediaPlayer.getVideoWidth(); in getOutputVideoProperty()426 mediaPlayer.release(); in getOutputVideoProperty()429 mediaPlayer.release(); in getOutputVideoProperty()
5245 private MediaPlayer mediaPlayer; field in MediaPlayer.ProvisioningThread5253 UUID uuid, MediaPlayer mediaPlayer) { in initialize() argument5255 drmLock = mediaPlayer.mDrmLock; in initialize()5256 onDrmPreparedHandlerDelegate = mediaPlayer.mOnDrmPreparedHandlerDelegate; in initialize()5257 this.mediaPlayer = mediaPlayer; in initialize()5320 succeeded = mediaPlayer.resumePrepareDrm(uuid); in run()5325 mediaPlayer.mDrmProvisioningInProgress = false; in run()5326 mediaPlayer.mPrepareDrmInProgress = false; in run()5338 succeeded = mediaPlayer.resumePrepareDrm(uuid); in run()5343 mediaPlayer.mDrmProvisioningInProgress = false; in run()[all …]
339 public boolean onError(MediaPlayer mediaPlayer, int what, int extra) { in onError() argument