开发者

Splicer video rendering

开发者 https://www.devze.com 2023-03-23 12:12 出处:网络
I am using Splicer from Codeplex, but I have difficulty to compile my sample code. It returns me error because of

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 theWindowsMediaRendererimplements it. to correct the issue in the example replace theIRendererwithWindowsMediaRenderer`:

using (WindowsMediaRendererrenderer renderer = new WindowsMediaRenderer(timeline, outputFile, WindowsMediaProfiles.HighQualityVideo))
0

精彩评论

暂无评论...
验证码 换一张
取 消