Generating Audio PTS | 0.17.2.3+

When you play audio in an iOS environment, audio dropouts may occur under the following conditions:

  • Receiving an audio stream via the RTMP protocol.

  • Transmitting audio only without video.

  • Using the original audio without encoding like passthrough.

  • Playing using Legacy HLS on iOS.

Based on our research through OvenMediaEngine, we found that these issues are related to the timebase of RTMP. To resolve this, you need to configure the system to use the Presentation Timestamp (PTS) calculated and generated by OvenMediaEngine instead of the PTS provided by RTMP.

Generating Audio PTS Settings

You can enable the Generating Audio PTS feature by activating the <GenerateAudioPTS> value to true in the Server.xml under <Providers><RTMP>, as shown below:

<?xml version="1.0" encoding="UTF-8"?>
<Server version="8">
  ...
  <VirtualHosts>
    <VirtualHost>
      <Applications>
        <Application>
          <Providers>
            ...
            <RTMP>
              <GenerateAudioPTS>true</GenerateAudioPTS>
            </RTMP>
          </Providers>
        </Application>
      </Applications>
    </VirtualHost>
  </VirtualHosts>
</Server>

Last updated