SharpCap.ShowNotification() API Changes (CancellationToken Added)

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
Eyeke2
Posts: 6
Joined: Thu Mar 14, 2024 4:08 pm

SharpCap.ShowNotification() API Changes (CancellationToken Added)

#1

Post by Eyeke2 »

I'm encountering issues with the SharpCap.ShowNotification() function after the December 23, 2024 update. The API now requires a new CancellationToken parameter, which is breaking existing scripts.

Any guidance or examples to adapt my scripts to the updated ShowNotification() API would be greatly appreciated!

Thank you!
User avatar
admin
Site Admin
Posts: 14836
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: SharpCap.ShowNotification() API Changes (CancellationToken Added)

#2

Post by admin »

Hi,

that wasn't supposed to happen - it's an optional parameter with a default value set on that API (like about 5 parameters before it), but apparently for some reason the Python runtime is getting confused and not handling it right. I will fix it for the next update, so you won't need to do anthing except wait until Monday.

cheers,

Robin
Post Reply