ASP.NET MVC音频流 [英] ASP.NET MVC Audio Streaming

查看:99
本文介绍了ASP.NET MVC音频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,该程序将音乐曲目从服务器流式传输到多个客户端.我们正在使用MVC3来构建应用程序.我正在寻找一种开放源代码库或相对简单的自定义解决方案,该解决方案可与MVC很好地配合使用,从而可以将音乐流式传输到每个客户端.我正在与之合作的所有开发人员对于MVC还是相当陌生的,所以我们在从应用程序的流媒体方面入手时有些茫然.

还有一件事,同步是一个问题,因为每个客户端都需要能够为所有其他客户端全局播放/暂停/停止音乐.

在此方面为我指明正确方向的任何帮助将不胜感激.谢谢.

解决方案

您是否看过IIS的流畅流扩展...

http://www.iis.net/download/smoothstreaming

这里是论坛上的一条评论,说只有音频也是可以的:

最近发布的IIS Smooth Streaming Client 1.0 SDK支持AudioOnly流.有两种选择 创建仅音频流(EE4不支持此流,但其他编码器可能) 创建带有虚拟视频的流,并将客户端上的PlaybackMode设置为AudioOnly.这将确保没有视频下载发生,因此额外的带宽成本. (注意:该模式需要在xaml中或在设置源之前提前设置). 来源: http://forums.iis.net/t/1167802.aspx

也请检出: http://learn.iis.net/page.aspx/792/adaptive -流式比较

我没有经验,但是它应该可以跨平台运行(当然有例外)=)...

查看其他一些讨论和链接: http://expression.microsoft.com/en-us/gg574359 http://learn.iis.net/page.aspx/854/apple-http-live-streaming-with-iis-media-services http://forums.iis.net/t/1187099.aspx http://forums.iis.net/p/1183024/2003234.aspx

HTH

I'm developing a web app that streams music tracks from a server to multiple clients. We are using MVC3 to build the application. I'm looking for an open source library or relatively simple custom solution that works well with MVC that we could use to stream the music to each client. All of the developers I'm working with are still fairly new to MVC, so we're kind of at a loss where to start with the streaming aspect of the app.

One more thing, synchronization is an issue because every client needs to be able to globally play/pause/stop the music for all other clients.

Any help pointing me in the right direction on this would be appreciated. Thanks.

解决方案

Did you look at the smooth streaming extension for IIS...

http://www.iis.net/download/smoothstreaming

Here is a comment from the forum that says audio only is also possible:

The recently released IIS Smooth Streaming Client 1.0 SDK has support for AudioOnly stream. There are two options Create a stream that is audio only (EE4 does not support this but other encoders might) Create a stream with a dummy video and set PlaybackMode on the client to AudioOnly. This would ensure there is no video download happening so extra bandwidth cost. (Note: the mode needs to be set early on - in xaml or before you set the source). source: http://forums.iis.net/t/1167802.aspx

check out also: http://learn.iis.net/page.aspx/792/adaptive-streaming-comparison

EDIT: I have no experience but it should work cross platform (with exceptions of course) =)...

See some additional discussions and links: http://expression.microsoft.com/en-us/gg574359 http://learn.iis.net/page.aspx/854/apple-http-live-streaming-with-iis-media-services http://forums.iis.net/t/1187099.aspx http://forums.iis.net/p/1183024/2003234.aspx

HTH

这篇关于ASP.NET MVC音频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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