In previous posts I have shown you either how to use the Unity However,the new (third) kid on the block seems to be UnityWebRequest. In fact, the player just disappears before you even can get to it. You will notice the Ogg and the WAV file playing nicely. If you choose the second option, you will need to attach an XBox One controller to you PC, to steer the cursor and click on the buttons. To hear them, either build the app or just hit the play button. But it will attempt to use one of three different audio formats – the well-known MP3, Ogg Vorbis, and WAVE audio format (aka ye good ole’ WAV). They will all attempt to play on of my ringtones – an excerpt from the Doctor Who theme song (one is a nerd or one is not). If you open the project in Unity, you will not see one but three floating players, next to each other. You can just jump to there if you want to skip all my mumbling. The floating part in ‘floating player’ should be taken in the most literal way possible: This post will be 2-part: the first part concentrates on the actual technique of downloading and playing audio files, the second part will explain the ‘floating audio player’ I built to make this easily demonstrable. But to be clear: this will work with any backend that hosts files. Oh, and by the way – for us Microsoft geeks “back end” equals to “ Microsoft Azure” – if it’s not for the competitive pricing, then for the way Microsoft makes it easy for developers to get going (heaven knows this was quite different in the early days). In fact, what I will be describing is not even Mixed Reality specific – the principle can be used in any Unity app, although the code that sits around to demonstrate the workings definitely only works for Mixed Reality. This is highly useful if you want to change used media, use different files for like instructions depending on some factor. In the past, I have written about accessing all kinds of services from HoloLens and Mixed Reality apps, But apart from mere data, you can download all kind of media from external sources and use those in you Mixed Reality apps. Downloading audio files from Azure blob storage and playing them in Mixed Reality appsĪll but the most trivial apps have some kind of back end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |