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

# Using VLC with dweOS

> This guide is to help you setup streaming from dweOS to VLC Player.

<Warning>
  dweOS does not officially support streaming to VLC. The following steps are for Windows only.
</Warning>

<Steps>
  <Step title="Check dweOS">
    After following the dweOS setup, continue to next steps.

    <Note>
      Note down the port(s) being streamed to.
    </Note>
  </Step>

  <Step title="Install VLC Player">
    <Card title="Download VLC Player" icon="video" href="https://www.videolan.org/">
      Click here to download VLC Player for Desktop on your Laptop/PC.
    </Card>
  </Step>

  <Step title="Create the SDP file">
    First, create a new text document in Windows and paste the following in depending on the codec being streamed:

    ## **H264**

    ```
    v=0
    m=video {PORT} RTP/AVP 96
    c=IN IP4 0.0.0.0
    a=rtpmap:96 H264/90000
    ```

    ## **MJPEG**

    ```
    v=0
    m=video {PORT} RTP/AVP 26
    c=IN IP4 0.0.0.0
    ```

    Ensure that the `{PORT}` field has been replaced with the port dweOS is streaming to.

    Then save the document as an SDP file, ensure the file has the extension `.sdp`
    <Tip>Sometimes Windows hides the extension, so names end up as `{filename}.sdp.txt` under the hood. Setting your File Explorer to `View > Show > Filename name extensions` will show you the real extension and
    allow you to change it through renaming.</Tip>
  </Step>

  <Step title="Configure Firewalls">
    To ensure that VLC can receive the stream, you must allow it through Windows Firewall.
    Sometimes attempting to open the SDP file with VLC Player is enough for Windows to ask to allow it through,
    but in the event it doesn't here are the steps to allow VLC through.

    <Steps>
      <Step>Press the Windows key or the Windows button on screen and type `Firewall`, then select **Windows Defender Firewall**.</Step>
      <Step>On the left side of the window that opens, select **Allow an app or feature through Windows Defender Firewall**.</Step>
      <Step>Under *Allowed apps and features*, find **VLC media player** and check all the boxes.</Step>
      <Step>Pressing **OK** from here should allow VLC Player through.</Step>
    </Steps>
  </Step>

  <Step title="Setup Stream">
    From here, if dweOS is streaming toward your IP and the ports have been set correctly such that the port dweOS is streaming to and the port set in the SDP file match, you can do either of the following:

    <Steps>
      <Step>Right-Click the SDP file you created.</Step>
      <Step>Select `Open With`.</Step>
      <Step>If `VLC media player` is in the dropdown, select that, otherwise select `Choose another app` and select `VLC media player`.</Step>
    </Steps>

    **OR**

    <Steps>
      <Step>Open VLC Player.</Step>
      <Step>Select `Media` then `Open File...`.</Step>
      <Step>Select the SDP file you created.</Step>
    </Steps>

    Wonderful! You should now see the stream within VLC Player.
  </Step>
</Steps>
