Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding filters has no effect #1040

Open
chfeizy opened this issue Nov 29, 2021 · 0 comments
Open

Adding filters has no effect #1040

chfeizy opened this issue Nov 29, 2021 · 0 comments

Comments

@chfeizy
Copy link

chfeizy commented Nov 29, 2021

const dummyInput = byOS({
[OS.Windows]: () =>
osn.InputFactory.create('dshow_input', 'video', {
audio_device_id: 'does_not_exist',
video_device_id: 'does_not_exist',
}),
[OS.Mac]: () =>
osn.InputFactory.create('av_capture_input', 'video', {
device: 'does_not_exist',
})
});
let settingsF={
cx: -209,
cy: 145,
limit_size: false,
loop: true
}
const obsFilter2 = osn.FilterFactory.create("scroll_filter", 'filter', settingsF || {});
console.log("obsFilter2");
console.log(JSON.stringify(obsFilter2));
dummyInput.addFilter(obsFilter2);
obsFilter2.update(settingsF);

use the osn-0.19.9-release-osx.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant