ASP.Net,C#Web应用程序,如何在客户端播放视频 [英] ASP.Net , C# Web Application, how to play video sitting on client side

查看:288
本文介绍了ASP.Net,C#Web应用程序,如何在客户端播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于云的ASP.Net,C#Web应用程序。我希望Web应用程序调用位于客户端专用网络上的视频。



客户端将视频存储在其专用网络中的文件服务器上。我想播放视频(通过UNC路径存储在客户端专用网络上的视频),当用户点击该链接时,路径(\ fileserver \videos \ xxxx.mp4)将作为超链接显示在页面上视频将在客户端PC上的任何兼容媒体播放器中播放。客户端PC和文件服务器位于同一网络上。基于云的应用程序托管在不同的网络上,除了通过网络之外,该网络没有指向客户端PC和文件服务器所在网络的链接。



我不知道想要将视频上传到网络服务器并将其流回,这很容易,因为带宽问题而有效。我只想存储视频的位置并通过Web应用程序调用它(URL /文件路径可以在页面上点击)



有没有在这种情况下,Web应用程序访问客户端文件/资源​​的方式我想播放视频。如果没有开箱即用的功能是有解决方案请帮助.....

I have a cloud based ASP.Net, C# Web Application. I want the web application to invoke videos sitting on the clients's private network to play.

The client will have videos stored on their file server which is in their private network. I want to play a video (via UNC path to video stored on the client's private network), the path (\fileserver\videos\xxxx.mp4) will be on the page as a hyper when a user clicks that link the video will play in whatever compatible media player on the client PC. The client PC and file server are on the same network. The Cloud based application is hosted on a different network which is has no link to network of where the client PC and File Server is except via web.

I don't want to upload the videos to the web server and stream them back which is easy and works because of bandwidth issues. I just want to store the location of the video and invoke it to play via the web application (URL/file path which can be clicked on the page)

Is there a way for a web application to access files/resources on the client side in this case i want to play videos. If there is no out of the box functionality is there a work around please help.....

推荐答案

原则上您的网页无法访问计算机中的资源或者它的网络...

您唯一可以尝试的是提供路径为 file:// protocol [ ^ ]但是由于本地安全问题,此类访问可能会被阻止...
In principal your web page can not access resources in the computer or its network...
The only thing you may try is providing the path as file:// protocol[^], however it's possible that such access will be blocked because of local security issues...


这篇关于ASP.Net,C#Web应用程序,如何在客户端播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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