流服务器或HTTP服务器

编程入门 行业动态 更新时间:2024-10-13 06:14:26
本文介绍了流服务器或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.

我希望能为您提供帮助.

I hope, I could help you.

更多推荐

流服务器或HTTP服务器

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

发布评论

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

>www.elefans.com

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