# iOS Audio PTS

Based on OvenMediaEngine Enterprise Team research, 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 HLS on iOS.

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 *(*&#x50;TS) 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
<?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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ovenmediaengine-enterprise.gitbook.io/guide/features/workflow-integration-and-external-system-connectivity/ios-audio-pts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
