视频从数据库中的路径上传和播放 [英] Video Uploading and playing from Path in the Database

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

问题描述

.Net中有一些问题,我想与您讨论,可能是您有解决方案,我想建立一个电影网站,但是问题是我不想上传完整的视频在数据库中,我想将视频URL保存在数据库中,然后直接从该路径获取并播放视频.但是我不知道该怎么编码...

请帮我!并使用适当的代码进行解释,以便我轻松理解正确的内容.
谢谢您

I have some problem in .Net, which I want to Discuss with you, may be you have solution for me, I want to make a movies website, but the Problem is that I don''t want to upload a complete videos in the database, I want to save video URL in Database and then directly get and play video from that path. But I don''t know how to code that...

Please help me! and Explain it with Proper Code, so It will easy for me to understand Properly.
Thanks You

推荐答案

使用正确的代码进行解释
你自己尝试了什么吗?

步骤:
1.提供用于选择视频的浏览控件
2.选择后,将视频的链接保存在数据库中,以便以后需要时可以访问它.
3.每当您要播放视频时,都从数据库中检索视频路径
4.使用视频路径作为视频播放器的源.


现在,逐步进行操作,学习如何做.如果遇到任何特定问题,请尝试发布.
Explain it with Proper Code
Did you try anything by yourself?

Steps:
1. Provide a browse control for video selection
2. Once selected, save the link of the video in database such that you can access it at later point of time when needed.
3. Whenever you want to play video, retrieve the video path from database
4. Use the video path as a source to video player to play it.


Now, move step by step, learn on how to do it. Try and post if you face any specific issue.


这篇关于视频从数据库中的路径上传和播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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