简体   繁体   English

Xamarin.android上的捕获屏幕获取黑屏-使用Libvlc

[英]Capture screen on Xamarin.android get black screen - using Libvlc

I am using LibVLCSharp to play video , and trying to capture the screen. 我正在使用LibVLCSharp播放视频,并尝试捕获屏幕。 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. api 23安卓6。

Any one have a solution/example please? 有人有解决方案/示例吗?

OK so i managed to figure it out, i managed to use the libvlc takesnapshot method. 好的,所以我设法弄清楚了,我设法使用了libvlc Takesnapshot方法。 Apparently it didn't work because of a bad filename i gave, so the image wasn't saved. 显然由于我给的文件名错误而无法使用,因此未保存图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM