如何从sql数据库访问视频到C#表单? [英] How to access Videos from sql database to C# form?

查看:141
本文介绍了如何从sql数据库访问视频到C#表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用C#.我使用路径将视频存储在sql数据库中,我想从sql数据库访问视频并以C#Windows形式显示.
我该怎么办,请帮忙!!!!

Hi,
I''m using C#. I store videos in sql data base using the path and I want to access videos from sql data base and display it in C# windows form.
How can i do that please help!!!!

推荐答案

一个简单的Google给了我这个:
-首先安装Microsoft Media Player SDK;
-在表单上,​​右键单击工具箱"上的任意位置(请注意),然后选择选择项目...".
-选择组件"标签
-查找Windows Media Player
-选中并选择确定,使其成为您的工具箱组件之一
-将其拖动到表格
-双击并添加此代码
axWindowsMediaPlayer1.URL = "directory of you video or music"
-如果视频是DVD,请下载Divx

阅读:
如何在C#中显示视频文件 [ ^ ]
C#中的DirectShow MediaPlayer [
A simple Google gave me this:
- First Install microsoft Media player sdk;
- on the form right click anywhere on the ToolBox(Pay attention to that) and select Choose Item...
- select the Component Tab
- find Windows media Player
- Check and select ok for it to become one of your toolbox component
- drag it to form
- double click and add this code
axWindowsMediaPlayer1.URL = "directory of you video or music"
- if the video is a dvd, download Divx

Read:
How to Show a video file in C#[^]
DirectShow MediaPlayer in C#[^]


您可以将它们存储为

这篇关于如何从sql数据库访问视频到C#表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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