将默认下载位置设置为应用程序 [英] Set the default download location to an app

查看:90
本文介绍了将默认下载位置设置为应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个音乐应用程序,将其从声音云中的歌曲拉到应用程序中供用户播放和下载。但我有一些挑战

1.如何设置默认下载位置到我的音乐应用程序,如uc浏览器而不是SD卡或手机

2.如果问题1不能然后我可以实现如何防止用户在下载到他们的手机后转移或共享歌曲文件,

i需要保护歌曲不被盗版



提前致谢



我的尝试:



我已经在gdg中发布了问题lagos

Hi I am developing a music app that pull it's songs from sound cloud into the app for users to play and download. But i have some challenges
1. How can i set the default download location to my music app like uc browser instead of sd card or phone
2. if ques 1 cannot be achieved then how can i prevent users from transferring or sharing the song files after downloading to their phone,
i need to protect the songs from piracy

Thanks in advance

What I have tried:

I have posted the question in gdg lagos

推荐答案

默认下载位置是您在代码中设置的任何内容。您可以将文件写入几乎任何您想要的文件夹。



至于保护文件,你真的不能。没有办法阻止某人从手机上复制文件并共享它们。



唯一可以保护音频的方式(注意我没说文件 !是指您以您设计的格式对音频进行编码,并且只能在您自己的播放器中进行解码和播放,以便了解它。这不是一件容易的事。祝你好运。
There default download location is whatever you set in your code. You can write the files to practically any folder you want.

As for protecting the files, you really can't. There is no way to stop someone from copying the files off the phone and sharing them.

The only way you can protect the audio (notice I did not say "files"!) is if you encode the audio in a format you devise and can only be decoded and played in your own player that is written to understand it. This is not trivial to do. Good luck with that.


这篇关于将默认下载位置设置为应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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