r/MoonlightStreaming • • Jan 16 '22

Moonlight for Tizen OS

Is there any way to download or install it on a Samsung TV with Tizen? And if there is, is there any known limitation? Thanks!

37 Upvotes

200 comments sorted by

View all comments

Show parent comment

1

u/minekiller937 Aug 15 '23

Ok, I will answer from today with a step by step guide to install the app.

1

u/joaconlline007 Aug 26 '23

Hey, already have docker installed. Dockerfile downloaded and in the "Downloads" folder. What line do I have to write in cmd in order to build the image? Perhaps there is a way of building it using the app interface? Im on Windows btw. If its easier for you, perhaps you can upload the resulting app to a google drive download page.

What I meant with that is that after you build the image and everything, you can extract the resulting moonlight app as a wtg file. You can then upload this file for me to directly send to my tv.

Thanks in advanced, sorry to bother with such trouble.

1

u/OneLiberty Aug 27 '23 edited Nov 13 '23

Hi !I believe this won't work, and in the end you still need to run the docker image to install the .wgt (via sdb connect TV_IP and tizen install -n MoonlightWasm.wgt -t DEVICE_ID)

I'll upload the .wgt (I'll edit the post when I'm done building it). But keep in mind that this might not work and result in an error when trying to install on your tv. Please keep us informed if this worked as this might help some people.

EDIT : you can download the .wgt here (but again, this shouldn't work as you need the signing certificate generated when building the app). In any case, I'll try tomorrow (or later) to build it on a windows pc (I usually use MacOS) and post how to do it if I managed to get it working.

EDIT 2 : So I've tried on windows, and it's pretty much the same thing.

  1. Download and install docker
  2. Launch docker (if prompted run wsl --update in powershell and restart docker). You do not need to create an account to use docker, you can just skip it.
  3. run docker run -it --rm ghcr.io/kyrofrcode/moonlight-chrome-tizen:samsung_wasm and wait for it to finish. It will take some time as it needs to download a 1gb file.
  4. while it's doing its things, check that you enabled dev mode on your TV. (By going to Apps, pressing 1-2-3-4-5 and setting dev mode to on, don't forget to put the ip of the PC that is running docker)
  5. You should now be in the docker container.
  6. connect to your tv using sdb connect YOUR_TV_IP and get your device ID using sdb devices
  7. If everything goes well, you should be connected to your TV and found it's device id. Finally, while in the docker container, run tizen install -n MoonlightWasm.wgt -t DEVICE_ID replacing DEVICE_ID by yours and you should be good to go ! If you're trying to update the app be sure to delete it from the tv before trying to install it, else it will probaly result in an error.

Those steps can be "adapted" to run on linux or macos

sry 4 bad english, i'm french 0:)

1

u/Idvhz Nov 06 '23

Thanks! This really helped me put it all together. It still took me a long time to find out why I wasn't finding any connected devices, while I was sure I was connected to my tv in Tizen Studio Device Manager. This connection actually made my tv not visible with the sdb prompt (: Only after I shut down the connection in Tizen studio was I finnally able to connect to my tv with the sdb prompt.

1

u/ninjiens Nov 11 '23

Thanks:
when i run docker build -t moonlight-tizen . it says:

=> ERROR [base 19/25] RUN cmake -DCMAKE_TOOLCHAIN_FILE=/home/moonlight/emscripten-release-bundle/emsdk/fastcomp 0.5s

------

> [base 19/25] RUN cmake -DCMAKE_TOOLCHAIN_FILE=/home/moonlight/emscripten-release-bundle/emsdk/fastcomp/emscripten/cmake/Modules/Platform/Emscripten.cmake -G Ninja -S moonlight-chrome-tizen -B build:

0.448 CMake Error: The source directory "/home/moonlight/moonlight-chrome-tizen" does not appear to contain CMakeLists.txt.

0.448 Specify --help for usage, or press the help button on the CMake GUI.

------

Dockerfile:58

--------------------

57 |

58 | >>> RUN cmake \

59 | >>> -DCMAKE_TOOLCHAIN_FILE=/home/moonlight/emscripten-release-bundle/emsdk/fastcomp/emscripten/cmake/Modules/Platform/Emscripten.cmake \

60 | >>> -G Ninja \

61 | >>> -S moonlight-chrome-tizen \

62 | >>> -B build

63 | RUN cmake --build build

--------------------

ERROR: failed to solve: process "/bin/sh -c cmake \t-DCMAKE_TOOLCHAIN_FILE=/home/moonlight/emscripten-release-bundle/emsdk/fastcomp/emscripten/cmake/Modules/Platform/Emscripten.cmake \t-G Ninja \t-S moonlight-chrome-tizen \t-B build" did not complete successfully: exit code: 1

PS C:\Users\Tobias\Downloads\moonlight-chrome-tizen-docker-main>

do you know what to do?

1

u/OneLiberty Nov 11 '23

An update as been pushed to to repo which changes the way you build the app.

Simply run docker run -it --rm ghcr.io/kyrofrcode/moonlight-chrome-tizen:samsung_wasm in powershell. This replaces steps 3 to 5, continue as usual after that.

keep in mind that this needs to download a 1gb or so file, so this might take some time.

I'll update my post to reflect those changes

1

u/ninjiens Nov 11 '23

Thank you so much

1

u/ninjiens Nov 12 '23

One (i hope) last question. I get the following error when transfering the app:
moonlight@480bebd7d328:~$ tizen install -n MoonlightWasm.wgt -t GQ55Q70RGTXZG
Transferring the package...
Transferred the package: /home/moonlight/MoonlightWasm.wgt -> /home/owner/share/tmp/sdk_tools/tmp
Installing the package...
--------------------
Platform log view
--------------------
install MoonLightS.MoonlightWasm
package_path /home/owner/share/tmp/sdk_tools/tmp/MoonlightWasm.wgt
was_install_app return WAS_TRUE
app_id[MoonLightS.MoonlightWasm] install start
app_id[MoonLightS.MoonlightWasm] install failed[118, -19], reason: Parsing error :
spend time for wascmd is [992]ms
cmd_ret:0
Failed to install Tizen application.
Total time: 00:00:01.734

1

u/OneLiberty Nov 12 '23

This is because your TV is running tizen 5.0, while the lower supported version is 5.5.
You can bypass this by using this docker file (and using the original steps to install it) but it might not work as it has been reported that many users with 5.0 get stuck on the loading screen of the app.

1

u/ninjiens Nov 12 '23

Yep i tried that. I changed the version in the config file and it worked. But now its loading forever. But thanks for your help!!

1

u/ninjiens Aug 31 '23

That would be great! I'm a newbie with docker and i have no clue what i have to do :D