需要在Linux中使用C#.NET和ASP.NET播放wav文件 [英] Need to play wav file using C#.NET and ASP.NET in Linux

查看:176
本文介绍了需要在Linux中使用C#.NET和ASP.NET播放wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在linux中运行的Web应用程序中工作.我需要播放wav文件.它在Windows操作系统中可以正常工作.但是我需要在Linux(使用Mono)中运行.我在网上搜索了两天.找到任何解决方案.请帮助我解决此问题.

Am working in web application which is run in linux.I need to play wav file.Its working fine in Windows OS.But i need to run in Linux(Using Mono).I search over net for two days.I cant find any solution yet.Please help me to solve this.

推荐答案

您不能使用mono或linux播放wav文件.您可以使用Windows Media Player控件,但仅在Windows中有效.最好的选择是使用Flash Media Player,我想Flash在Linux上?如果您不是通过将wwa嵌入网页中来通过其他方式播放wav,则您的代码也无法在Windows中运行,这似乎只是b/c您的服务器现在是您的客户端.
You can''t use mono or linux to play wav files. You can use the windows media player control, but it only works in windows. Your best bet is to use a flash media player, I assume flash is on linux ? If you''re playing a wav through any means other than embedding it inside a web page, then your code does not work in windows either, it only seems to b/c your server is your client right now.


在Linux上,您可以使用VLC(VideoLAN客户端),请参见 http://en.wikipedia.org/wiki/VLC_media_player [ ^ ], ^ ].

您也可以将其嵌入到Mono中使用,请参见以下讨论: http://go-mono.com/forums/# nabble-td2216492 [ ^ ].您也可以使用MPlayer.

查看VLC的.NET包装: http://wiki.videolan.org/.Net_Interface_to_VLC [ http ://vlcdotnet.codeplex.com/ [ ^ ].我几乎确定您也可以将这种包装用于Mono,也许只需很少的改动即可.

—SA
On Linux you can use VLC (VideoLAN client), see http://en.wikipedia.org/wiki/VLC_media_player[^], http://www.videolan.org/vlc[^].

You can also embed it it use in Mono, see this discussion: http://go-mono.com/forums/#nabble-td2216492[^]. You can also use MPlayer.

Look at the .NET wrapper for VLC: http://wiki.videolan.org/.Net_Interface_to_VLC[^], http://vlcdotnet.codeplex.com/[^]. I''m almost sure you can use this wrapper for Mono as well, perhaps with minimal adaptation.

—SA


这篇关于需要在Linux中使用C#.NET和ASP.NET播放wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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