J
J
Jamal Aklambekov2020-11-29 15:08:31
Unity
Jamal Aklambekov, 2020-11-29 15:08:31

How to play audio in unity video player?

UPD: It's worth experimenting with the formats. OGV format is played without dancing with tambourines
UPD 2: when playing via URL (by the way, dropbox to help), only setting audioOutputMode = Direct

worked
I made a UI for the player. When you press play, the video starts, it is prepared, all the settings are set correctly (all possible videoPlayer.controlledAudioTrackCount = 1 and videoPlayer.EnableAudioTrack(0, true)). Video starts but no sound. I have a progress bar, like a normal player, and now if you click on it or drag it, the sound appears. But how is it related? This happens both in the editor and in the build.

Tell me, please, where to look, where to look?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question