0

I am using LibVLCSharp to play video , and trying to capture the screen. I am getting black screen , like the surface-view cant be captured. tried many different capture methods , non of them works. api 23 android 6.

Any one have a solution/example please?

Silentbil
  • 1
  • 2
  • This sounds like you app might have the SecureFlag enabled to prevent you from capture screenshots. https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE double check that this isn't set – Andres Castro Sep 09 '19 at 18:37
  • libvlc has its own snapshot feature. Would it be enough for your use case? – cube45 Sep 09 '19 at 20:41
  • it didnt work for me so i gave up , but now its working (see my post). thanks! – Silentbil Sep 10 '19 at 19:16

1 Answers1

0

OK so i managed to figure it out, i managed to use the libvlc takesnapshot method. Apparently it didn't work because of a bad filename i gave, so the image wasn't saved.

Silentbil
  • 1
  • 2