Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by aman_jha · Sep 02, 2014 at 02:22 PM · c#androiddownloadmusic

Android Downloading Packages Online

Hey Unitarians!

In my Android game, I want to add music, but I realize that music takes a lot of mb, and android users like APKs with the least size possible. So, I wanted to add a feature where my users can download music files online if they wish.

How would I do this? I want it so that when my users click the button, the app permanently downloads the music files (where should I store them? Dropbox?) and then puts the music files in a folder. Then I want my system to play whatever files are in that folder. How would I do this?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by kacyesp · Sep 02, 2014 at 02:27 PM

This link seems to have some pretty good answers: http://stackoverflow.com/questions/7357270/save-audio-and-video-file-in-sql-server-database

Good question by the way. I didn't think music files would be a big deal in terms of space.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aman_jha · Sep 02, 2014 at 03:00 PM 0
Share

They are :). $$anonymous$$ost of the music files I choose are 2-4 mb, and that adds directly to the apk file size. Thanks for the link!

avatar image aman_jha · Sep 02, 2014 at 03:03 PM 0
Share

Ok I read it (I'm a pretty fast reader lol). So I can store audio files in there, but how would I use Unity to download those files? I don't know how to connect Unity to a SQL Server, and if it's even possible.

avatar image kacyesp · Sep 02, 2014 at 03:10 PM 0
Share

It's totally possible! Just google around and you'll find answers. If you're coding in Javascript, here's a little tutorial to get you started: http://forum.unity3d.com/threads/starting-my-mmo-with-sql-server-in-javascript.77447/ Even if you're not coding in javascript, I would still take a look to get a basic idea.

avatar image aman_jha · Sep 02, 2014 at 03:28 PM 0
Share

That looks awesome! I'm assu$$anonymous$$g I can use this in the free version? Because I can't use AssetBundles because it's pro, so this seems like the workaround. I'll get cracking!

avatar image kacyesp · Sep 02, 2014 at 06:01 PM 0
Share

lol of course it's free. By the way, if you got the answer you were looking for, you can accept the answer :)

Show more comments
avatar image
0

Answer by Gizmoi · Sep 02, 2014 at 02:30 PM

Depending on how much music you are thinking of, I'd recommend packing them into the game.

Alternatively you can download music at run-time using Asset Bundles. But this is a Pro Only feature.

You could create these at build-time and upload them to your web server. Then at run-time download or load from cache with WWW.LoadFromCacheOrDownload

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aman_jha · Sep 02, 2014 at 03:00 PM 0
Share

Is there no way I could do this without Pro?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How To Call Health Script From Another Script ? 1 Answer

Multiple Cars not working 1 Answer

Downloading file in android background 0 Answers

screenshot 0 Answers

How to know which code depends on System.dll in mono C#? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges