Hi sskodje. Hope doing well.
When I capture YouTube videos with ScreenRecorderLib with the overlay option, it halts or freezes the capturing video. But when I click anywhere on my screen, the video capturing becomes smooth. Below is my sample C# code to use the overlay option.
string WatermarkPath10 = Path.Combine(AppContext.BaseDirectory, "Resources", "Watermark10.png");
if (!File.Exists(WatermarkPath10))
{
MessageBox.Show("Overlay image not found!");
return;
}
var overlays = new List();
overlays.Add(new ImageOverlay
{
AnchorPoint = Anchor.BottomLeft,
SourcePath = safeWatermark,
Offset = new ScreenSize(0, 0),
Size = new ScreenSize(320, 25),
Stretch = StretchMode.UniformToFill,
});
var opts = new RecorderOptions
{
SourceOptions = new SourceOptions
{
RecordingSources = CreateSelectedRecordingSources()
} ,
OverlayOptions = new OverLayOptions()
{
Overlays = overlays,
}
Regards
Terhana
Hi sskodje. Hope doing well.
When I capture YouTube videos with ScreenRecorderLib with the overlay option, it halts or freezes the capturing video. But when I click anywhere on my screen, the video capturing becomes smooth. Below is my sample C# code to use the overlay option.
string WatermarkPath10 = Path.Combine(AppContext.BaseDirectory, "Resources", "Watermark10.png");
if (!File.Exists(WatermarkPath10))
{
MessageBox.Show("Overlay image not found!");
return;
}
var overlays = new List();
overlays.Add(new ImageOverlay
{
AnchorPoint = Anchor.BottomLeft,
SourcePath = safeWatermark,
Offset = new ScreenSize(0, 0),
Size = new ScreenSize(320, 25),
Stretch = StretchMode.UniformToFill,
});
var opts = new RecorderOptions
{
Regards
Terhana