Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
0
Question by Nedgoom · May 11, 2017 at 10:11 AM · wwwaudioclipstreamingurl

Stream Audio from a URL?

Now that GetAudioClip is obsolete in 5.6, how can I play music in my game from an external URL?

There's this... https://docs.unity3d.com/ScriptReference/WWWAudioExtensions.GetAudioClipCompressed.html

...but no examples of how to use it in script (C#)

I'm guessing this is some sort of WWW thing, but documentation is pretty much non-existent for 5.6

And please don't say "Asset Bundles", I've just killed 48 hours working on that

thanks

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by DAVcoHL · Jun 06, 2017 at 03:24 PM

I discovered this thread while looking for a way to stream audio from the web into a Unity app - I'm not sure if you're still working on this?

As I understand it, the WWW classes are deprecated. Any new code should be written using the UnityWebRequest API. Here are the docs for downloading an Audio Clip Networking.UnityWebRequest.GetAudioClip.

However I have yet to discover how to stream (rather than just download) an audio clip.

Hope that helps!

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 akshay_shah · Jul 04, 2017 at 05:49 AM 0
Share

When you say WWW classes are deprecated, can you please point to where it has been written so? I am also trying to get audio strea$$anonymous$$g to work and using WWW right now to download data. However the documentation at https://docs.unity3d.com/ScriptReference/WWW.html does not say anywhere that the class is obsolete or deprecated.

avatar image
0

Answer by vasupol11 · Sep 13, 2017 at 04:47 AM

I had the same question and I answered it here, the key is the progress at .01 (1%), time to wait until it starts streaming adjust it to .1 or higher for better results.

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 gevasaf · Feb 08, 2018 at 08:05 PM 0
Share

Can't get it working on unity 5.6, nor on unity 2017.3

avatar image
0

Answer by Mayank516 · May 14 at 01:38 AM

I have used below plugins for streaming audios on iOS and Android and they work out of the box. Developer is also very helpful. Provided support when ever was required.

Android : https://assetstore.unity.com/packages/tools/integration/audio-stream-in-android-196464

iOS : https://assetstore.unity.com/packages/tools/audio/audio-stream-in-ios-182585?_ga=2.24775930.1161846723.1651972514-784483838.1626851333

Comment
Add comment · 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

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

109 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 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 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 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 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

Can we stream audio from a URL instead of download and then play? 2 Answers

Streaming audio with UnityWebRequest 0 Answers

Update url constantly to show updated data? 0 Answers

Differentiate movie and audio file on game object 1 Answer

Streaming video as MovieTexture 2 Answers


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