从SQL数据库检索视频 [英] Retrieve video from SQLdatabase

查看:123
本文介绍了从SQL数据库检索视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在从事一个主要使用动画作品的项目.其中一些在C#中.我在编写用于显示视频的代码时遇到问题.视频的路径存储在SQL数据库中.
有人可以帮我吗?

谢谢.

Hi,

I am working on a project that uses animation work mostly. Some of them is in C#. I am facing issue in writing code for displaying a video. The path of the video is stored in the SQL database.
Can someone help me please?

Thanks.

推荐答案

您需要更具体.您要针对哪种技术?Windows窗体,ASP.NET,WPF或Silverlight?
You need to be more specific.Which technology are you targeting-Windows forms, ASP.NET, WPF or Silverlight?


如果您正在谈论Web应用程序,则可以使用 Windows Media Player主动X控件来实现它.

您需要使用对象标记来执行此操作.由于将从数据库中获取路径,因此使用字符串生成器创建对象标记可能会很好.标签准备就绪后,将其插入html页面.
If you are talking of Web application then one of the ways you can achieve it using Windows Media Player active X control.

You need to use object tag to do so. Since the path is going to be fetched from database, probably creating he object tag using string builder would be good. Once the tag is ready inject the same in the html page.


您需要Windows窗体的Windows Media Player ActiveX控件,ASP.NET的Adobe Flash Player或Silverlight以及WPF/的MediaElement控件. Silverlight.
You need Windows media player ActiveX control for Windows forms, Adobe flash player or Silverlight for ASP.NET and MediaElement control for WPF/Silverlight.


这篇关于从SQL数据库检索视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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