# Create Live Streams

1. [Backend](#backend)
2. [Attach Live Stream Attachment](#attach-live-stream-attachment)
3. [Frontend](#frontend)
4. [Delete Live Streams](#delete-live-streams)

***

#### Backend

1. Navigate to **Media > Live Streams > Add New**
2. Enter live stream details such as Name, Region and and other relevant options.
3. Click the "Add new" button.

<figure><img src="/files/g3gUW6EUgT5uxFYBC4oB" alt=""><figcaption></figcaption></figure>

After successfully creating the live stream, the page will refresh and display the RTMP URL and Stream Key.

<figure><img src="/files/QhgmtAw9QjCSOgF5JsUK" alt=""><figcaption></figcaption></figure>

***

#### Attach Live Stream Attachment

1. Go to Posts (or any other post type where you want to display your live stream).
2. Create a new post or edit an existing one.
3. Open the Media Library using the Gutenberg block or the Classic Editor and insert the live stream attachment you just created.
4. Save changes

<figure><img src="/files/rC3pgMj5QC3FL4OnFyyL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/i3iFO0r869vmOwD18Wf9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0uaHoA3VIz3WIS5Kv1j9" alt=""><figcaption></figcaption></figure>

***

#### Frontend

{% hint style="info" %}
Creating live streams directly from the frontend form is only supported by the [StreamTube](https://1.envato.market/qny3O5) theme.
{% endhint %}

{% hint style="info" %}
Enable [WebHook](/dyntube-stream/webhook.md) to receive live update from DynTube.
{% endhint %}

{% hint style="info" %}
Enable [Sync](/dyntube-stream/sync-and-import.md) to synchronize records with your WordPress website.
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=oA4fRDDIAOM>" %}

1. Click the Cloud icon in the header.
2. Click the "**Go Live**" link.

<figure><img src="/files/pm3s4wPrl0oixQNa2twt" alt=""><figcaption></figcaption></figure>

You will be redirected to your frontend dashboard, where you can create a live stream post just like regular video posts in StreamTube.

After you successfully create a live stream, the page will reload, and the RTMP URL and Stream Key will appear in the "**Live Credentials**" box.

<figure><img src="/files/zGgjeVTtUEjgcpFL7j2A" alt=""><figcaption><p>Frontend Live Stream Form</p></figcaption></figure>

***

#### Delete Live Streams

{% hint style="danger" %}
Deleting live streams works the same way as deleting an attachment post in WordPress. When you delete a live stream attachment, it will also be removed from DynTube.
{% endhint %}


---

# 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://phpface.gitbook.io/dyntube-stream/live-stream/create-live-streams.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.
