# Connecting Twitch via RTMP Presets

**RTMP (Real-Time Messaging Protocol)** is a protocol used to transmit video, audio, and data from the PRISM app to streaming platform servers, requiring both a stream URL and a stream key.

The PRISM app support a login-based method for Twitch. However, You may rarely experience login issues within PRISM app with various reasons. Most login failures are resolved within a few hours, you might want to connect temporary while than.

And also, especially for Twitch, you can choose a server where to broadcast when you connect via RTMP presets. The optimal server is automatically selected in most cases, but somtimes you may want to change it.

***

To add Twitch via RTMP presets, click the More button in the upper-left corner, then select **Add channels** in the popup menu.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2FvvROpkm8vcX7OlBn5Mb6%2FrtmpPreset0.jpg?alt=media&#x26;token=cdb1c95b-3e59-4086-8405-e349777efd33" alt=""><figcaption><p>Click the <strong>Add channels</strong> button.</p></figcaption></figure>

The **Add Channel** window will appear, showing various platform options. You can select Twitch for login-based connection method in usual, but this time we will select **Add Custom Channel**.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2FQh5Y0vmUdzDduxg3Wo4n%2FrtmpPreset1_2.jpg?alt=media&#x26;token=14f0c40e-32a4-48a0-b776-57351373757d" alt=""><figcaption><p>Select <strong>Add Custom Channel</strong>.</p></figcaption></figure>

The Custom Channel Information entry window will open. Click the **URL** dropdown menu, then select **Twitch**.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2FglCMjyVnB3GKPGrep1wf%2Frtmppreset2_2.jpg?alt=media&#x26;token=e8ac0518-31c5-425a-8ef3-95279396ecb0" alt=""><figcaption><p>Select <strong>Twitch</strong> at the <strong>URL</strong> dropdown menu.</p></figcaption></figure>

The stream URL will be automatically filled using the RTMP preset, but you must enter your own stream key from the Twitch website. Instructions on how to retrieve the stream key are provided below:

* [#getting-stream-key-of-twitch](#getting-stream-key-of-twitch "mention")

Also, note that you can select any server you want. The Auto option is selected by default, but you can change it to servers in various countries.

Once you’ve entered the stream key, click the **Save** button to complete the process.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2FErEZEua4s9MpXyGwdUy5%2FrtmpPreset2_3.jpg?alt=media&#x26;token=e9b886ff-4972-4b15-8b36-3a8f5c7e2632" alt=""><figcaption><p>Enter your own stream key from the Twitch website.</p></figcaption></figure>

The Twitch channel icon will appear in the upper-left corner. You can now start broadcasting to Twitch.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2F5yvVneL31H0FBMFIkkZ1%2FrtmpPreset3_2.jpg?alt=media&#x26;token=7f380467-9358-4a02-8603-56e6441812aa" alt=""><figcaption><p>You can now start broadcasting to Twitch.</p></figcaption></figure>

***

## Getting stream key of Twitch

The stream key is a unique code that connects PRISM app to the streaming platform's servers, allowing your stream to be transmitted to your channel.&#x20;

To get the stream key for Twitch, follow the instructions below:

{% stepper %}
{% step %}
**Go to the Twitch website and log in to your account.**

You can visit the website via the link below:

* <https://www.twitch.tv/>\ <br>
  {% endstep %}

{% step %}
**Click your profile image in the upper-right corner, then select Creator Dashboard.**

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2FrJqIDAswf5t9nCYzfeMe%2Ftwitch1.jpg?alt=media&#x26;token=31a2ee08-7185-4613-8bf3-09ae80c1bd3e" alt=""><figcaption><p>Select <strong>Creator Dashboard</strong></p></figcaption></figure>

<br>
{% endstep %}

{% step %}
**Unfold the Settings tab on the sidebar, select Stream tab.**

Locate the **Primary Stream Key** section, copy it, and paste it into the PRISM app.

<figure><img src="https://1019928184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlISC5rfB4Hnmbsjf8phq%2Fuploads%2F5C8IBAlKds1Y0q1UzwJO%2Ftwitch2.jpg?alt=media&#x26;token=95fbfc11-e65b-4789-8beb-7bc61de861b5" alt=""><figcaption></figcaption></figure>

{% endstep %}
{% endstepper %}

{% hint style="danger" %}
Be sure to keep your stream key private. It is a unique code that links your broadcast to your channel, and sharing it could allow others to stream on your channel without permission.
{% endhint %}

[..](https://guide.prismlive.com/desktop "mention"), [..](https://guide.prismlive.com/desktop/guides "mention"), [..](https://guide.prismlive.com/desktop/guides/streaming "mention"), [](https://guide.prismlive.com/desktop/guides/streaming/rtmp-streaming "mention")
