Question: After upgrading to Unity 5.6.0B1, in the UNITY editor of Windows 10, there is no audio for video playback.
Solution:
The problem originated from the order of operation. To successfully play videos and audio, you must follow the following code order:Code after the correction:
The key step is to set the audio output mode and the audio track configuration before preparing the video
. This ensures that the audio can be played correctly. Failure to exclude other problems:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
Card "is preparing video"? After calling , wait for 5 seconds, and then exit the cycle.
Can't play the video from the URL? Make sure the URL is correct and supports the video format.
Unswerving video format:The above is the detailed content of Why Isn't My Unity Video Playing Audio After Upgrading to 5.6.0b1?. For more information, please follow other related articles on the PHP Chinese website!