Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by joshsagarfreelance · Apr 21, 2020 at 02:11 AM · Account ManagementContent

Uploading/Downloading Music Tracks

Hi there,

I'm wondering what would be the best solution for an app that

- Allows users to upload a song they created, and then have that song be available to all other users in the app and downloadable to them.

Would file management work for this, and if it does can you do the following

- Upload a json file containing all of the currently available songs (after being moderated by ourselves).

- Unity downloads that json file and shows a list of all the songs

- User clicks a 'play sample' button and then unity downloads the sample from the cdn and plays it.

- User decides to buy that song, unity downloads the real song from the cdn.

So the json would look something like this

{
    "Songs": {
        "song1": {
            "info": {
                "title": "song 1",
                "filename": "song1.mp3",
                "samplename": "song1sample.mp3"
            }
        },
        
        "song2": {
            "info": {
                "title": "song 2",
                "filename": "song2.mp3",
                "samplename": "song2sample.mp3"
            }
        }
    }
}

If the user buys the song, can the cdn then download the mp3 by searching for the song? Or how would I then find the song that the user has bought to download it?

Thanks

Comment

People who like this

0 Show 0
10 |1200 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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Apr 21, 2020 at 09:47 AM

What you are asking is more like a UGC system which PlayFab will offer in the future (currently in private preview), however, there is no ETA on that. Now back to the question, those features you mentioned above can be done using our CDN feature, please follow this Content Delivery Network quickstart and Admin/Client/Server API references to get started. And, as I see it, players may not have direct accesses to uploading/downloading songs, all these should be done from the server-side. Players can only make requests of uploading/downloading a certain song to the back-end server where you can perform some validations such as:

  1. Is the player requesting a sample song?
  2. Does the player own this song?
  3. Is the song name the player uploads duplicated?

…

Comment

People who like this

0 Show 0 · Share
10 |1200 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

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.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    preview image url 1 Answer

    Plan change schedule change,Pay as you go plan scheduled for 1 month later 1 Answer

    How to create admin user accounts? 1 Answer

    Weirdness with Master Player Identities / Linked Accounts 1 Answer

    Unicorn Battle iOS build returns "GetAccountInfo Timed out after 10 seconds." 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges