开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜