4

I am using the flutter video_player package in my app. It is continuously printing logs. How can I disable it? I have already tried the solution from here, but it does not work

Preventing ExoPlayer used via video_player in Flutter from spamming the logs

enter image description here

ali262883
  • 349
  • 3
  • 16

2 Answers2

0

There isn't any official soultion yet. You might want to try filtering the console like this

Mahesh Jamdade
  • 17,235
  • 8
  • 110
  • 131
0

Unfortunately there appears no easy solution for this for now, but for the *nix users, this following trick might be a handy alternative.

# ripgrep  
flutter run --hot --track-widget-creation | rg -v "Codec|Audio|Video|Buffer|Exo"

# awk 
flutter run --hot --track-widget-creation | awk  '!/Codec|Audio|Video|Buffer|Exo/ {print}'
altunyurt
  • 2,821
  • 3
  • 38
  • 53