sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
408 stars 93 forks source link

How to get a preview of the current source #316

Closed SanicBTW closed 7 hours ago

SanicBTW commented 2 weeks ago

I'm currently trying out the library and I'm wondering if you can make it show a preview of what's happening in the recorder, I have only 2 ideas of how it would work but I don't know if IT could be good or not;

  1. Passing a stream that I can use to convert to bitmaps then show that bitmap on the application
  2. Having a recorder that doesn't save a file but instead pumps frames to a stream for usage

I really don't know if it could be possible but it would be a neat feature to select a preview of a source and display it, fancy for cool recorders using this lib

sskodje commented 1 week ago

Hi! I agree that it's lacking, but i'm working on a feature branch where you can add callbacks to get bitmaps. I'll push it public when i get it to a working state.

sskodje commented 7 hours ago

This is now added with release 6.3.0

SanicBTW commented 7 hours ago

Tysm!!