播放MP3歌曲时不透露文件的路径 [英] Playing MP3 songs without disclosing the path of the file

查看:172
本文介绍了播放MP3歌曲时不透露文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用PHP开发一个购物车,我将以MP3格式销售歌曲。随着产品展示,我想提供游客/用户只听歌一次。所以如果我使用JW播放器来播放歌曲。播放器在网页的源代码中公开文件路径,他们可以直接下载文件。



我在找什么来播放这首歌不知道歌曲文件的路径。



我怎样才能避免这种情况?请指教。

谢谢

解决方案

系统。这样的东西不存在。
$ b $理由:
$ b $ ul

  • Alice想发送一个消息(MP3文件)到Bob

  • Alice不希望Eve获取消息(MP3文件)
  • Bob和Eve是同一个人



  • 这是DRM正在努力解决的问题。你所能做的就是尽量隐藏最终用户的事实。祝你好运...
    $ b

    (在上面的例子中,你可以用服务器替换Alice,用站点访问者和Eve替换Bob与一个用户想要下载文件而不付钱)。

    如果你接受,你不能有DRM系统,有更多的可能性:
    $ b


    • 将文件的一个片段发送给用户,直到他们付钱为止

    • 销毁/水印样本文件(例如,在播放15秒后,MP3文件包含录音这是该歌曲的演示版本,实际购买的歌曲将不包含此消息)。


    请注意,您必须将示例文件与您销售的实际文件不同,这是解决用户在付费之前获取实际文件的唯一方法。 p>

    I am developing a shopping cart in PHP where i will sell the Songs in MP3 format. With product display i would like to provide the visitors/users to listen the Song 1 time only. So if i use players like JW player to play the song. The player disclose the file path in the source code of the web page and they can download the file directly.

    What i am looking for it to play the song so that visitors does not know the path of the song file.

    How can i avoid this ? Please advice.

    Thanks

    解决方案

    You are asking for a DRM system. Such thing does not exist.

    Rationale:

    • Alice wants to send a message (MP3 file) to Bob
    • Alice does not want Eve to get the message (MP3 file)
    • Bob and Eve are the same person

    This is what DRM is trying to solve. All you can do is try to hide the fact from the end user. Good luck with that...

    (In the above example you can replace "Alice" with "server", "Bob" with "site visitor" and "Eve" with "an user that wants to download the file without paying for it".)

    If you accept that you can't have DRM system, there're more possibilities:

    • Send only a fragment of the file to the user until they have payed for it
    • Destroy/watermark the sample file (e.g. at 15 seconds into the playback, the MP3 file contains recording "This is a demo version of the song, actual purchased song will not contain this message".

    Note that you must have the sample file different from actual file you're selling. That's the only way to fix the problem of user getting the actual file before paying for it.

    这篇关于播放MP3歌曲时不透露文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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