Search Issue Tracker
By Design
Votes
0
Found in
2018.2.11f1
2018.3.0a1
2019.1.0a1
2019.2.0a1
Issue ID
1109254
Regression
No
Audio is downloaded completely instead of being streamed while using DownloadHandlerAudioClip.streamAudio
To reproduce:
1. Open project
2. Enter the Play Mode
Reproducible with: 2018.3.3f1, 2019.1.0a14, 2019.2.0a1
2017.4 does not support streamAudio
Actual results: DownloadHandlerAudioClip.streamAudio fails and instead downloads the full audio clip
Expected results: DownloadHandlerAudioClip.streamAudio should be able to stream audio
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
Resolution Note:
The users placed DownloadHandlerAudioClip.GetContent in a try-catch that hides the reason: "Cannot get content from an unfinished UnityWebRequest object"
Instead, user should do downloadHandler.audioClip, which will return an audio clip.
Note, that it is strongly recommended to wait for request.downloadedBytes to become greater than zero before accessing audioClip property, our audio system requires to know the size of the audio file when creating audio clip (when we already have downloaded some bytes, we already received Content-Length header and know the size).