流媒体服务器或 http 服务器

编程入门 行业动态 更新时间:2024-10-13 04:24:49
本文介绍了流媒体服务器或 http 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在考虑使用媒体服务器来构建我们的本地媒体服务的可能性.

We’re taking in mind the possibility of using a media server in order to build our on-premise media service.

我们只关注视频和音频点播用例.直播目前不在我们的范围内.

We’re only focusing at Video- and Audio-on-Demand use-case. Live stream is out of our scope right now.

我的意思是,我们需要提供性能良好的预注册视频和音频.

I mean, we’re need to serve pre-registered videos and audios with a good performance.

我们已经使用过 ant 社区服务器,但我们还没有完全弄清楚一些问题.我们测试了两种情况:

We’ve played with ant community server, but we’ve some issues we’re not quite figure out. We’ve tested two scenarios:

  • 提供托管在直接 http 服务器 (httpd) 上的视频
  • 在蚂蚁服务背后提供视频.

我们研究了浏览器如何下载视频,我们惊讶地发现视频使用相同的策略提供:使用 http 部分内容 (206).

We’ve look at how videos are downloaded by browser and we’ve surprised to see that videos are served using the same strategy: using http partial content (206).

相关代码:

<head> <link href="vjs.zencdn/7.6.6/video-js.css" rel="stylesheet" /> <!-- If you'd like to support IE8 (for Video.js versions prior to v7) --> <script src="vjs.zencdn/ie8/1.1.2/videojs-ie8.min.js"></script> </head> <body> <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup="{}" > <source src="localhost:5080/LiveApp/streams/378475861251583275889765.mp4?accessToken=null" type="video/mp4" /> </video> <video id="my-video2" class="video-js" controls preload="auto" width="640" height="264" data-setup="{}" > <source src="localhost:8080/video.mp4" type="video/mp4" /> </video> <script src="vjs.zencdn/7.6.6/video.js"></script> </body>

那么,我想到了下一个问题:如果(ant 和 http 服务器)行为相同,为什么我们需要 Ant 服务?

So, next question comes at mind: why do we need an Ant service if both (ant and http server) behaviors are the same?

推荐答案

如果您使用 Ant Media Server,您可以更好地控制您的结构.请查看以下 AMS 安全文档 -> github/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation

If you use Ant Media Server, you have more control in your structure. Please review AMS Security docs in follows -> github/ant-media/Ant-Media-Server/wiki/Stream-Security-Documentation

基本上,您可以在带有 REST 服务的 AMS 中使用上传/删除/计数等功能.请在此处检查 AMS REST 服务 -> antmedia.io/rest/ 另外,您可以在您的 VoD 文件中播放 MP4 和 HLS.

Basically, you can use upload/delete/count, etc. abilities in AMS with REST Services. Please check AMS REST services in here -> antmedia.io/rest/ Also, you can play with MP4 and HLS in your VoD files.

希望能帮到你.

更多推荐

流媒体服务器或 http 服务器

本文发布于:2023-07-14 10:20:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1104090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   流媒体   http

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!