# RTMP Connection Failed

{% hint style="danger" %}
The RTMP connection for streaming has failed or the live platform is not receiving RTMP data. Please make sure your RTMP address is valid or you have streaming permission
{% endhint %}

We will inform you about situations where the RTMP connection for streaming fails or the live platform does not receive RTMP data.

***

The PRISM app captures video from the smartphone camera, encodes it into video data, and streams it to the live platform using the RTMP protocol.

The process of transmitting video to the live platform via the RTMP protocol begins with a connection between the PRISM app's RTMP streaming engine and the live platform's RTMP data receiving server.

This error occurs when the PRISM app's RTMP streaming engine fails to establish a connection with the RTMP data receiving server.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2F8IQfZUain2UsEp7RbzZP%2F5003_01_n.jpg?alt=media&#x26;token=bbbdfbc6-ab63-4d79-a81e-1a95d6edb5b7" alt=""><figcaption><p>Android error code: 5003</p></figcaption></figure>

\
This error can arise due to several factors, including:

1. **An issue with the RTMP address (most common)**
2. **A problem between the PRISM app’s streaming engine and the live platform**
3. **Restrictions on the streamer’s live streaming rights on the platform**
4. **Network environment or connection issues**

***

## 1.  An issue with the RTMP address (most common)

This issue can be further divided into two cases:

**(1) Invalid RTMP address format**

An RTMP address consists of an RTMP Stream URL and an RTMP Stream Key.

For example, if the RTMP Stream URL is `rtmps://prismlive.com/rtmp/` and the RTMP Stream Key is `2twt-wwvu-gxqa-e97d`, the RTMP address is formed as follows:\
`rtmps://prismlive.com/rtmp/2twt-wwvu-gxqa-e97d`

In general, RTMP addresses cannot contain spaces or include web protocol references such as `https://`.

If this error persists, please verify that the RTMP address is in the correct format.

**(2) Valid RTMP address format, but the address does not exist**

Even if the RTMP address is correctly formatted, the connection may fail if the address does not correspond to an actual RTMP server.

For example, consider the following YouTube RTMP address:\
`rtmp://a.rtmp.youtube.com/live2/prismlivestudio`

While the format is correct, the actual YouTube RTMP Stream Key consists of a random character sequence, like this:\
`rtmp://a.rtmp.youtube.com/live2/2twt-wwvu-gxqa-e97d`

If this error persists, please check whether the RTMP address you are using is valid.

***

## 2. Issue between the PRISM app's streaming engine and the live platform

In some cases, even when a valid RTMP address is used, the PRISM app’s RTMP streaming engine may fail to connect to the live platform's RTMP data receiving server.

The PRISM app’s RTMP streaming engine has successfully connected to major live platforms such as Facebook, YouTube, and Twitch. However, since anyone can set up their own RTMP data receiving server, some platforms may not fully comply with RTMP standards.

If the issue lies with the live platform rather than the PRISM app, resolving it may require changes on the platform's side. As a result, troubleshooting can be difficult and time-consuming.

***

## 3. Restrictions on the streamer’s live streaming rights on the platform

Most live platforms manage streamer permissions for live streaming. Depending on their policies, they may impose restrictions when necessary.

If your streaming rights are restricted, your live broadcast may not appear on the live platform, even if you attempt to stream using a valid RTMP address.

Since this issue is handled internally by the live platform, you should contact the platform’s customer support to resolve it.

***

## 4. Network environment or connection issues

The connection between the PRISM app’s RTMP streaming engine and the live platform’s RTMP data receiving server depends on network conditions. If the network environment is unstable or insufficient, the RTMP connection may fail.

If this error persists, check your network status and ensure a stable connection for live streaming.

On the other hand, if the issue is with the network environment on the RTMP server’s side, the connection will still fail. Unfortunately, this is beyond the PRISM app’s control.

***

## 5. Outages on Streaming Platforms

Facebook, YouTube, Twitch, and Kick are major platforms where a large number of live streams are created. Nevertheless, outages can occasionally occur even on these platforms. In some cases, the issue may be limited to specific components related to live streaming, such as RTMP servers or API servers.

Depending on the scale of the outage, it may or may not be officially disclosed to the public, and the duration of each incident can vary.

Unfortunately, when such platform-side issues occur, there is nothing the PRISM app can do to address them directly. Therefore, if streaming through the PRISM app is not functioning properly, it is recommended to check the status of the streaming platform as well.

***

These are the five main causes of this error and possible solutions.

***

* Android error code: 5003


---

# 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://guide.prismlive.com/mobile/guides/error-solution/streaming/rtmp-connection-failed.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.
