Search Unity

Question Music has glitch when VideoPlayer.Prepare invoked on iOS/OSX

Discussion in 'Audio & Video' started by Harrison_Chen, Mar 6, 2021.

  1. Harrison_Chen

    Harrison_Chen

    Joined:
    Apr 21, 2017
    Posts:
    3
    Recently I tried to use Unity VideoPlayer to play video in my game and it works pretty good.

    However, when we ported our game on iOS (iPad Gen5), and OS X (macbook 13inch 2018),

    the looping background music get a tiny glitch sound when the VideoPlayer.Prepare method was invoked,

    is that any audio thread problem of unity? (our video file has audio channel)

    Or maybe I lost some setting of audio or video?

    Please help me if anyone get some idea.:(

    BTW, we used "Auto" in video codec, is that auto transcode to H.264?