embedding music

J_J

Is it possible to embed a music file from google drive? I'm having issues with my game being over the size limit, but I'm confused about how I host files elsewhere and put them into the game. Would it be easier to host some of the animations on google drive, and all the music in game?


It is not something I have done, but the big issue is whether everyone has access to the file. If they do not, they will not hear it. I guess it is also possible Google will object; might be worth checking their rules.

Let us know how it goes. If it works, this is a good idea.


It should work fine.

(EDIT: forum being a pain with the links. I removed the https:// from the beginning)

Note that when you share a file on Google Drive, it will give you a link which looks something like:

  • drive.google.com/file/d/(big ID here)/view?usp=sharing

This link is to the Drive player/viewer applets, not the file itself. But once you have the file's ID, you can put it into a link which looks like:

  • docs.google.com/uc?id=(your file's ID here)&export=open

That should work fine in Quest.
(unless they've changed it since the last time I used it)
Remember to set the file's visibility to "anyone who has the link"


J_J

Thank you!
What is the code I put around this so that it is embedded?


@J_J
Did you check KV's audiolib?
That's what I'm using for the game you beta tested. I host the files at one of my web hotels and implement them into the game using the lib. It's super easy and works like a charm!


J_J

YES! It was super helpful. It seems like the problem is that I couldn't get the files to play from my google drive, not just in Quest, in general they weren't working. I ended up going the opposite direction and hosted my animation online and put the music files directly into Quest. I'm not sure if that's the best option, but I was able to get it to work. Thankfully I only use music during the dream sequences so it's not a ton.

...also, how is your game going? I can't wait to play more :P


@J_J
Ah, I see. Well as long as it's within the size limit I guess it doesn't really matter which way one goes =)

Well... it's not really going at all. Still some music left to do. I could probably finish it during a weekend but just haven't been able to find the time :( I'll let you know when it's up though!


That's strange. I'm curious why it works for me but not for you. Could you give an example link of one of the files that won't play?

(I know you got it working, but I don't like unanswered puzzles)


J_J

I'm gonna let it go for now, but I think it was a google problem. I couldn't get the music to play off my drive at all.


J_J

mrangel I'm going to email you a link so I'm not posting the music publicly. I realized, if I'm embedding something from online, then someone can no longer just play my game on their desktop. Is this true?


if I'm embedding something from online, then someone can no longer just play my game on their desktop. Is this true?

Most people these days seem to have an always-on Internet connection, so it wouldn't be an issue. But if someone with the desktop version of Quest plays the game without an active Internet connection, any remotely-hosted music files or animations wouldn't play.

If you care about those players, then it would probably be good to ensure that the game contains all the files necessary for the game to be playable (any images that contain clues to puzzles, character pictures if they contain necessary information, and so on) and make sure they files they'll be missing are things that are are only important for flavour/atmosphere. And maybe provide a link to a version which includes all the files, hosted somewhere there isn't such a size limit.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums