在C#应用程序中以SplashScreen形式使用电影文件 [英] use Movie file in SplashScreen Form in C# Application

查看:60
本文介绍了在C#应用程序中以SplashScreen形式使用电影文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在我的C#应用​​程序中添加SplashScreen表单,我想在SplashScreen中使用电影文件,实际上,SplashScreen只是显示电影文件.
我该怎么做?
该电影文件很重,显示文件后,程序是否负责从该电影文件中清除RAM还是我?
请引导并帮助我!
非常感谢!

Hi,
I want to Add SplashScreen Form in My C# Applicatio & I want to use a movie file in SplashScreen,In fact,The SplashScreen is just showing movie file.
How can I perform this?
This movie file is heavy,after showing file,Is the program responsible to clean RAM from this movie file or me?
Please Guid & Help me!
Thanks very much!

推荐答案

您可以使用DirectX AudioVideoPlayback播放电影.播放完成并丢弃Video对象时,将释放包括视频数据在内的对象.检查链接以获取更多信息:
http://msdn.microsoft.com/zh-我们/library/windows/desktop/bb324497%28v=vs.85%29.aspx [
祝你好运!
You can use DirectX AudioVideoPlayback for showing a movie. When playback is done and the Video object is discarded, it will be released including the video data. Check the link for more info:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb324497%28v=vs.85%29.aspx[^]

As a side note, you might want to reconsider doing this because, as you already mentioned yourself, is quite heavy. Some users might not be able to use your application if video playback fails and the application crashes. I would certainly add a "safe" mode which is just a command line argument "/nosplash" which will skip the splash screen.

Good luck!



非常感谢!
我在系统上安装了DirectX9,但看不到"Microsoft.DirectX.AudioVideoPlayback"
在我的参考中,并且我的控制面板中没有"DirectX9",
&当我再次安装它时,系统提示我:"DirectX9现在已经存在!"
我使用的是C#2005,我的系统是Windows 7(64位),但是我的程序平台是86x.
怎么了?
Hi,
Thanks very much!
I installed DirectX9 on My system,but I can''t see "Microsoft.DirectX.AudioVideoPlayback"
in My refrence & I don''t have "DirectX9" in My control panel,too
& while I install it again,system seid me:"DirectX9 is exeist now!"
I work by C# 2005,My system is Windows 7(64bit),but my program platform''s is 86x.
what''s the wrong?



我无法解决我的问题,
有谁可以帮我?
谢谢.
Hi,
I couldn''t solve My problem,
Who Can I help me?
Thanks.


这篇关于在C#应用程序中以SplashScreen形式使用电影文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆