Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Android MediaPlayer debug messages

When using MediaPlayer I get the following lines of debug messages in LogCat constantly repeating:

02-13 14:30:52.090: V/MediaPlayer(21345): getVideoWidth
02-13 14:30:52.090: V/MediaPlayer-JNI(21345): getVideoWidth: 480
02-13 14:30:52.090: V/MediaPlayer(21345): getVideoHeight
02-13 14:30:52.090: V/MediaPlayer-JNI(21345): getVideoHeight: 360
02-13 14:30:52.100: V/MediaPlayer-JNI(21345): isPlaying: 0

My buffer soon fills up and I miss my other important messages. Is there anyway to disable this? Doing an exclusive filter in LogCat doesn't work because the buffer is still filled up in the background.

like image 337
pilcrowpipe Avatar asked Feb 13 '13 05:02

pilcrowpipe


People also ask

How do I turn off Media Player on Android?

The feature is as simple as tapping and holding on the media card of any app then choosing Dismiss. Playback stops and the controls go away.

What is Media Player Android?

MediaPlayer Class in Android is used to play media files. Those are Audio and Video files. It can also be used to play audio or video streams over the network.

What method is used to call media?

mediaPlayer. start(); mediaPlayer. pause(); On call to start() method, the music will start playing from the beginning.

Which method is used to bring the media player to prepared state?

To go to the preparing state from initialized state, you can call the prepareAsync() method which transfers the object to preparing state and when the preparation is done then the onPrepared() method of the OnPreparedListener interface is called and the object is transferred to the prepared state.


2 Answers

You can remove it by adding ^(?!MediaPlayer) to logcat filter Log Tag (regex) field: https://www.evernote.com/l/ABjh04WocVlGBp_wUBuQyefZIc_9aa8WP8QB/image.png

like image 187
Aki Nishanov Avatar answered Oct 08 '22 21:10

Aki Nishanov


I've also searched a solution to this problem and it seems that it is not possible at all... As you can see, no method is available.

like image 41
isabelle Avatar answered Oct 08 '22 23:10

isabelle