Closed UnknownCoder807 closed 8 months ago
KSOptions.yadifMode 不支持实时修改。但你可以实时修改videoFilters里面的filter。这样就可以实现实时效果了。
How can I do that inside a Button() ?
if let index = videoFilters.firstIndex(where: { $0.hasPrefix("yadif=mode=")}) { videoFilters[index] = "yadif=mode=1:parity=-1:deint=1" }
Thanks, how do I access videoFilters? it's not found.
通过ksoption
Thanks, that works.
I would like to offer my users the option to change deinterlace filters in real time.
I offer yadif1x and yadif2x and I set it at playback with
KSOptions.yadifMode = 0
orKSOptions.yadifMode = 1
Is it possible to have this change happen in realtime, like changing the aspect ratio does?
thanks.