12

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.

pilcrowpipe
  • 2,528
  • 6
  • 29
  • 41

4 Answers4

9

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

Aki Nishanov
  • 1,147
  • 9
  • 10
1

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.

hichris123
  • 10,145
  • 15
  • 56
  • 70
isabelle
  • 29
  • 3
1

It's impossible because most of than are logged by C++ implementation. As you can see here, MediaPlayer is a kind of C++ wrapper to call native methods through Java.

E.g. seekTo(int).

Idemax
  • 2,712
  • 6
  • 33
  • 66
1

You could also consider increasing your log level to Debug. Most of the noisy logging MediaPlayer spits out is logged as verbose.

Dennis
  • 779
  • 9
  • 14