> ## Documentation Index
> Fetch the complete documentation index at: https://ogh.riturajbasak.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream Live to YouTube from Ogh

> Connect your Google account to Ogh and go live on YouTube — no Google Play Services or Google Sign-In SDK required.

Ogh's YouTube integration lets you broadcast directly to your YouTube channel
from your Android device. Once you connect your Google account, Ogh manages the
entire broadcast lifecycle for you: it creates the live stream and broadcast,
binds them together, and tears everything down cleanly when you stop. You do not
need to set up a stream key or ingest URL — Ogh resolves those in memory each
time you go live.

<Note>
  No Google Play Services or Google Sign-In SDK is required. Ogh authorizes
  through the system browser using the standard OAuth 2.0 Authorization Code
  flow with PKCE.
</Note>

## Connect your YouTube account

<Steps>
  <Step title="Open Settings > Platforms">
    From the Ogh Preview screen, tap the **Settings** icon, then tap
    **Platforms**.
  </Step>

  <Step title="Tap Connect next to YouTube">
    Tap **Connect** beside the YouTube entry to begin authorization.
  </Step>

  <Step title="Sign in and grant permission in your browser">
    Your system browser or a Custom Tab opens the Google sign-in page. Sign in
    to the Google account that owns the YouTube channel you want to stream from,
    then grant Ogh permission to manage YouTube on your behalf.
  </Step>

  <Step title="Return to Ogh">
    After you approve, Google redirects you back to Ogh automatically. Your
    channel name appears in Platforms to confirm the connection, and a YouTube
    destination is now available for your next session.
  </Step>
</Steps>

## What Ogh does with your Google account

When you connect YouTube, Ogh requests the scope
`https://www.googleapis.com/auth/youtube`. Ogh uses this permission exclusively
to:

* identify your YouTube channel;
* create and configure a live broadcast and ingestion stream before each
  session;
* bind the ingestion stream to the broadcast; and
* manage the broadcast lifecycle — transitioning it to live when you start and
  completing it when you stop.

Ogh does **not** use your Google account data for advertising, analytics,
profiling, or training AI models. Ogh does **not** transfer your data to any Ogh
server or third party. Ogh's use of Google API data adheres to the
[Google API Services User Data Policy](https://developers.google.com/terms/api-services-user-data-policy),
including its Limited Use requirements.

<Note>
  Your YouTube ingest credentials are resolved in memory immediately before each
  session and are never written to disk.
</Note>

## Stream metadata

Before going live, you can set the following details for your YouTube broadcast
in **Settings**:

| Setting     | Default    | Description                                                                |
| ----------- | ---------- | -------------------------------------------------------------------------- |
| Title       | `Ogh Live` | The title shown on YouTube for your broadcast.                             |
| Description | *(empty)*  | An optional description for your broadcast.                                |
| Privacy     | Private    | Controls who can see the stream: **Public**, **Unlisted**, or **Private**. |
| Latency     | Normal     | Stream latency mode: **Ultra Low**, **Low**, or **Normal**.                |

To update these, go to **Settings** and edit the stream details section before
you tap **Go Live**.

<Tip>
  Start with **Private** visibility while you verify your setup, then switch to
  **Public** or **Unlisted** for your actual audience.
</Tip>

## Disconnect YouTube

<Steps>
  <Step title="Open Settings > Platforms">
    Tap the **Settings** icon from Preview, then tap **Platforms**.
  </Step>

  <Step title="Tap Disconnect next to YouTube">
    Tap **Disconnect**. Ogh sends a revocation request to Google, then deletes
    your local tokens and account record. The YouTube destination is removed.
  </Step>
</Steps>

You can also revoke Ogh's access at any time from your
[Google Account connections page](https://myaccount.google.com/connections),
independently of the in-app Disconnect action.

## Troubleshooting

**Authorization fails or the browser does not open.**
Make sure your default browser is set and can reach the internet. If you are
using a browser that blocks third-party sign-in flows, try setting a different
default browser and tapping **Connect** again.

**The YouTube destination is missing after connecting.**
Return to Settings > Platforms and check whether your account still appears as
connected. If not, tap **Connect** to re-authorize.

**The broadcast is not visible on YouTube after going live.**
Check that the Privacy setting in Ogh's stream details is not set to **Private**
if you expect a public or unlisted broadcast.
