将 wav 文件传输至嵌入式 Windows Media Player (wmp)

发布于 2024-09-26 04:59:29 字数 259 浏览 5 评论 0原文

我对 wav 文件(位于 IIS 中的虚拟目录中)和使用嵌入式 Windows Media Player 流式传输到 ASP.NET 网页有一些疑问。

  1. wav 文件是流式传输还是播放要等到整个文件下载到客户端?

  2. 如果 wav 文件不进行流式传输,有哪些选项可以做到这一点?

  3. 出于安全目的,我们需要防止(或至少使其尽可能困难)某人将文件保存到其本地计算机。这是否可能以及如何实现?

I have some questions about wav files (located in virtual directory in IIS) and streaming to an ASP.NET web page with an embedded Windows Media Player.

  1. Is the wav file streamed or does playback wait until the whole file is downloaded to the client?

  2. If wav files are not streamed what are some options to do so?

  3. For security purposes we need to prevent (or at least make it as difficult as possible) for someone to save the file to their local computer. Is this possible and how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

橪书 2024-10-03 04:59:29

IIS 提供的媒体文件可以使用 渐进式下载(如果比特率受到限制),这不是真正的流式传输,但对于大多数用途来说已经足够了。但是,媒体文件存储在客户端的计算机上,就像任何其他临时 Internet 文件一样,因此如果没有任何 DRM,这可能不适合您。

Media files served by IIS can be served using progressive download if the bit rate is throttled, which is not true streaming but good enough for most purposes. However the media file is stored on the client's machine just like any other temporary internet file, so without any DRM in place that might not be an option for you.

绝情姑娘 2024-10-03 04:59:29

好的,简短地回答你的问题。音频是流式传输的。它绝对不会保存到客户端的计算机上。
然而,让我们在理想的情况下,声音不仅流式传输到客户端的计算机,而且客户端无法通过右键单击直接从网站上的任何位置保存声音;用户可以用麦克风录制声音。好吧,那是个笑话。但用户可以很容易地从他的计算机上录制流媒体声音。


互联网上有许多免费的应用程序允许用户录制流媒体声音。我以前已经做过很多次了。 (互联网上的现场广播)。它拾取音频数据,然后将其保存到一个文件中,然后可以播放以供以后使用。它的质量也非常好。总会有办法做某事。
尽量不要在这上面花太多时间。

编辑:意识到您的网络上有一个嵌入式媒体播放器。现在想要流式传输数据。

好的,这是您问题的解决方案。很多公司都这么做。

如果您想流媒体(而不是让他们下载),您需要
安装 Windows Media 服务。可以轻松嵌入 Windows Media Player
进入网页。

要进行真正的流媒体以及对流媒体的真正控制,您需要一个
流媒体服务器。它只能安装在服务器操作系统上,例如 Win 2003
服务器,但不是 XP Pro。

您只需要将音频剪辑 url 传递给以下控件即可
处理播放。如果它是客户端控件,您可以随时调整
将参数传回时通过一些服务器端代码
客户端,换句话说,在服务器端动态创建目标代码。

如果文件位于其他站点,则不需要流媒体服务器
由于服务器无法控制它。另外,一个典型的
窗口媒体文件将采用流格式,并且可以执行一些操作
可以处理流文件,例如开始/停止/暂停,但它不能
快进,因为它缺乏对流的控制级别。

这是一个可能对您有帮助的链接。它是一个许可工具:
http://www.mediasoftpro.com/

我希望这会有所帮助。

PK

Ok to answer your question in short. The audio is streamed. it definitely isn't saved onto the client's computer.
However let's in an ideal situation, where the sound is not only streamed to the client's computer but the client cannot save the sound directly by right click and save from anywhere on the site; the user can record the sound with a microphone. ok that was a joke. But the user can record the streamed sound very easily from his computer.

The
re are many applications available on the internet for free that allow users to record streamed sounds. I've done this before many a times. (live radio on the internet). It picks up the audio data and then saves it into a file which can then be played for later use. Its very good quality as well. There will always be a way to do something.
Try not to spend too much time on this.

EDIT: realised that you have an embedded media player on your web. and want to stream data now.

Ok here is a solution to your problem. A lot of companies do this.

If you want to stream media (as opposed to having them download it) you'll need
to install Windows Media Services. Windows Media Player can easily be embedded
into web pages.

To do the true streaming, and real control of the streaming, you'll need a
streaming media server. It'll only install on a server OS such as Win 2003
servers but not XP Pro.

You should only need to pass the audio clip url to the control that is
handling the playback. If it's a client-side control, you can always tweak
the parameters through some server-side code when passing it back the
client, create the object code dynamically server-side in other words.

If the file is on another site, you shouldn't need a streaming media server
due to the fact the server doesn't have control over it. Also, a typical
window media file will be in a streaming format and can do some things you
can do with a streaming file such as start/stop/pause, but it cannot do
fast-forwards since it's lacking that level of control on the stream.

Heres a link that may help you. its a licensed tool:
http://www.mediasoftpro.com/

I hope this helps.

PK

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文