如何通过asp.net从用户的网络存储中播放mp4视频文件 [英] How to play mp4 video files from the user's network storage via asp.net

查看:181
本文介绍了如何通过asp.net从用户的网络存储中播放mp4视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个asp.net项目,为用户添加和播放视频文件(.mp4)。可以将视频上传到任何Web服务器并从那里播放。但问题是我们如何播放位于用户网络存储或不是网络服务器的云存储的视频文件?是安装iis的唯一方法吗?什么是最便宜的方式?



提前谢谢

We have an asp.net project which adds and plays video files(.mp4) for users. It is ok to upload videos to any web server and play from there. But the problem is how can we play the video files which are located at the user''s network storage or cloud storage which is not a web server? Is the only way to install iis? What is the cheapest way?

Thanks in advance

推荐答案

这是解决方案;

C# Customizable Embedded HTTPServer [ ^ ]
Here is the solution;
C# Customizable Embedded HTTPServer[^]


You can use JW Player to play the video on demand or live stream.
Example if your video saved on AWS S3 bucket

<div id="myElement"></div>

<script>
    jwplayer("myElement").setup({
        file: "https://s3.amazonaws.com/TestBucket/Video/video.mp4",
        width: 640,
        height: 360
    });
</script>





欲了解更多信息,请点击此处 [ ^ ]


这篇关于如何通过asp.net从用户的网络存储中播放mp4视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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