# iOS Audio PTS

OvenMediaEngine Enterprise Team은 iOS 환경에서 Audio를 재생 할 때, 아래와 같은 조건에서 Audio 끊김 현상을 발견했습니다:

* RTMP Protocol로 Audio Stream을 수신하는 경우.
* Audio only (Video 없이 Audio만 있는 Stream)로 전송하는 경우.
* Encoding 없이 (Passthrough) 원본 Audio를 사용하는 경우.
* iOS에서 HLS로 재생하는 경우.

이 문제는 RTMP의 `timebase`와 연관이 있으며, 이를 해결하기 위해 RTMP의 PTS *(Presentation Timestamp)*&#xB97C; 사용하지 않고, OvenMediaEngine이 자체적으로 계산 및 생성한 PTS를 시스템이 사용할 수 있도록 설정해야 합니다.

## Generate Audio PTS 설정하기

아래와 같이 `Server.xml`에서 `<Providers><RTMP><GenerateAudioPTS>` 값을 `true`로 설정하여 Generating Audio PTS 기능을사용할 수 있습니다:

```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/ko-kr/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.
