KyroFrCode / moonlight-chrome-tizen-docker

Docker file in order to build the Moonlight application for Samsung TVs running under Tizen from my Github repository
149 stars 12 forks source link

Moonlight for Tizen - Dockerfile template

An easy method for building Moonlight for Samsung TV

Credits

Usage

  1. Enable developer mode on the TV (more information on official Samsung guide):

    • Go to Apps.
    • Press 12345 on the remote; a dialog should pop up.
    • Set Developer mode to On; fill in the IP of the Docker host.
    • Power off and power on the TV as instructed; go once again to Apps.
    • Depending on your model, a "DEVELOP MODE" or similar message might appear.
  2. Build the application within a Docker image:

    docker build -t moonlight-tizen .

    This will take a while.

    Note: If you are running Docker on a Mac with a silicon chip (M1/M2 etc), change the first line in Dockerfile to
    FROM --platform=linux/amd64 ubuntu:22.04 as base before building to ensure compability.

  3. Deploy the application to the TV:

    • Run and enter a container; the container will be removed automatically on exit:
      docker run -it --rm moonlight-tizen
    • Connect to your TV over Smart Development Bridge:
      sdb connect YOUR_TV_IP
    • Confirm that you are connected, take note of the device ID:
      sdb devices

      The device ID will be the last column, something like UE65NU7400.

    • Install the package:
      tizen install -n MoonlightWasm.wgt -t DEVICE_ID

      Moonlight should now appear in your Recent Apps - or similar page - on your TV.

    • Exit the container:
      exit
    • (Optional) Remove the Docker image:
      docker image rm moonlight-tizen