如何禁用Android MediaPlayer调试消息

pil*_*ipe 11 android messages media-player logcat

使用MediaPlayer时,我在LogCat中不断重复以下调试消息:

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
Run Code Online (Sandbox Code Playgroud)

我的缓冲区很快就会填满,我想念我的其他重要信息.反正有禁用此功能吗?在LogCat中执行独占过滤器不起作用,因为缓冲区仍在后台填充.

小智 8

您可以通过添加^(?!MediaPlayer)到logcat过滤器Log Tag (regex)字段来删除它:https://www.evernote.com/l/ABjh04WocVlGBp_wUBuQyefZIc_9aa8WP8QB/image.png