Splicer video rendering
I am using Splicer from Codeplex, but I have difficulty to compile my sample code.
It returns me error because of
using (IRe开发者_StackOverflow中文版nderer renderer = new WindowsMediaRenderer(timeline, outputFile, WindowsMediaProfiles.HighQualityVideo))
It returns me " used in a using statement must be implicitly convertible to 'System.IDisposable' ". It caused me not be able to compile my program.
Why there's this problem and how to solve this problem? Thanks for help!
IRenderer
does not implement IDisposableinterface, where the
WindowsMediaRendererimplements it. to correct the issue in the example replace the
IRendererwith
WindowsMediaRenderer`:
using (WindowsMediaRendererrenderer renderer = new WindowsMediaRenderer(timeline, outputFile, WindowsMediaProfiles.HighQualityVideo))
精彩评论