Comments (25)
@MrPhaze62 You'll be better off porting the actual moonlight-chrome rather than RE into this version (I think).
The problem here is that this version is using WebAssembly, TV's under 5.5 doesn't support Webassembly, while NaCl (which is used for the original moonlight-chrome) is supported up to 6.0 I believe.
I'm slowly looking into this (I managed to get to the loading spinner on emulator, but I don't think it means much).
Unfortunately tizen studio doesn't package NaCl extensions anymore, if you want to try you can install the TV extensions 6.0.
from moonlight-chrome-tizen.
@NegatioN
Well this is useful if we need to adapt things from NaCl to WebAssembly.
The current Moonlight-chrome should work without much effort on old tizen Tvs as it's already running NaCl
from moonlight-chrome-tizen.
Could you share a screenshot of what you can interact with ?
So far regarding what you're saying, it seems that it does not load the moonlight plugin, which could very well be an incompatibility issue with Tizen 3.0
from moonlight-chrome-tizen.
@naget09 @OneLiberty Where do i find the "config.xml"-File to change the value?
My TV is on Tizen-Version 5.0 and i cant install the app.
I got this message:
app_id[MoonLightS.MoonlightWasm] install failed[118, -19], reason: Parsing error :
TV: GQ55Q70RGTXZG
Year: 2019
from moonlight-chrome-tizen.
@daaash in the res
folder edit the config.xml
change this required_version="5.5"
to this required_version="5.0"
and it should do the trick.
Then build the app like normal.
Keep us informed, it might help other people
from moonlight-chrome-tizen.
@OneLiberty I tried to install the app via the Docker file from here.
I edited the config.xml file directly in the Docker-Container. Unfortunately, this did not work for me, but the problem is currently being discussed in the Docker repository aswell moonlight-chrome-tizen-docker.
If you have any other tips or solutions, please let us know!
from moonlight-chrome-tizen.
@daaash Maybe docker is still pulling from the repo and not from the cached file.
I've modified the file and made a dockerfile to try this. here it is
I've uploaded the modified code to transfer.sh, and the dockerfile is pulling from it. I've changed from 5.5 to 3.0, but again even if the install succeed , the app might not work.
PS : install the app with tizen install -n Moonlight.wgt -t <device_id>
(and not tizen install -n MoonlightWasm.wgt -t <device_id>
).
from moonlight-chrome-tizen.
@OneLiberty Thank you for your work, man! Apparently he realy tries to transfer old cached files, because with your Dockerfile Moonlight could now transfered to the TV.
However, the app gets stuck in the loading screen (screenshot). The app does not completly freeze, cause the loading bar keeps loading. Unfortunately nothing happens even after 10 minutes.
My TV has Tizen 5.0, and you specified 3.0 as the required version. That can not really be the problem, right? The Paramater is only for the installation?
Too bad, I thought you had solved the problem with this.
from moonlight-chrome-tizen.
@daaash No problem, always a pleasure to help
I don't think setting the required to 3.0 is the issue, it is more likely that 5.0 tizen tv or lower are incompatible, might be solvable by updating the code, but without knowing what broke, it will be hard to do.
Also, it seems that most [118, -19] errors are related to the required tizen version.
I didn't test the specific build i've sent you, it's pulled from this repo, you might want to test building (and modifying required version) from KyroFrCode repo just in case.
Edit : we might find informations on why it isn't working looking at the changes between 5.0 and 5.5 (like here or here)
from moonlight-chrome-tizen.
I too have that issue of the infinite 'loading moonlight plugin' as shown on that screenshot earlier but i'm on Tizen 4.0 with a TV from 2018, which i manually lowered the minium requirement as well, thought i'd point that out knowing im not alone with that issue.
from moonlight-chrome-tizen.
we might find informations on why it isn't working looking at the changes between 5.0 and 5.5 (like here or here)
I am trying to get a working install on a 2019 Samsung TV with Tizen 5.0 using the docker instructions after modifying the config.xm for version 5.0 l I'm stuck on the "loading Moonlight plugin..." screen.
Does anyone have a current link to the ndriqimlahu repo mentioned above? It and the transfer.sh Dockerfile are both dead links for me.
I've been reviewing the 5.0 / 5.5 version differences that OneLiberty helpfully linked above and I've summarized some of them below. I've started looking at the web engine specifications but it's a much longer document.
Tizen 5.0 uses the 5.5.0 C# Api version while Tizen 5.5 uses 6.6.0.
Tizen 5.0 does not support the @start or @initialization @t/@d/@r MPEG-DASH Attributes
I'm going to start looking into it to see if it's an issue with the C# API version - wouldn't know where to start with the MPEG-DASH attributes.
EDIT: The above general specification differences didn't lead anywhere. Between Tizen 5.0 and 5.5 the installed chromium version was updated from M63 to M69 I'm thinking there's something in that version change though nothing stuck out to me while looking into it.
I found an old issue from the moonlight chrome os project which also left you stuck on the same loading screen I tried modifying the manifest.json as described and rebuilding with no luck. The other suggestion was NaCl related so I guess that's what I'll be looking into next.
from moonlight-chrome-tizen.
I've just managed to install a tizen 5.0 emulator, but i'm struggling to build the app using tizen studio, did anyone managed to use tizen studio to build the app ? If so, could you describe some steps ?
This would help finding the problem with tizen 5.0 (and probably lower) as we could easily debug the app.
Also @evelynisthebest i think the repo that you talk about has been deleted or something. I might have a copy somewhere, but not one with the latest modifications.
If you want I can re-upload the dockerfile (i might want to use github time) but the only changes i've made was the required tizen version (from 5.5 to 3.0).
from moonlight-chrome-tizen.
I found an old issue from the moonlight chrome os project which also left you stuck on the same loading screen I tried modifying the manifest.json as described and rebuilding with no luck. The other suggestion was NaCl related so I guess that's what I'll be looking into next.
I am not an expert Tizen nor web applications in general. Furthermore, I did not found information about changes in WASM and NACL in the links given by @OneLiberty. But could it be that older TizenOS versions (<5.5) do not support WASM (Web Assembly)?
You can find information about the deprecation of NaCL on Samsungs websites:
Due to NaCl deprecation by the Chromium project, Tizen TV will continue its support for NaCl only until 2021-year products. Meanwhile, Tizen TV will start focusing on high-performance, cross-browser WebAssembly from 2020-year products.
Tizen 5.5 was also published 2020. The same year Samsung started to support WASM in Tizen.
The newest Gamestream implementation of Samsung requires WASM but there are commits in Samsungs history which changed the codebase to WASM (before it was NaCL I think): SamsungDForum@86881f5
It could be worth it to build upon this older commit to integrate NaCL again. But I am not sure if it is easier to integrate the NaCL code into this repository here or to integrate KyroFrCode's changes into the Samsungs version before commit SamsungDForum@86881f5.
I will start and try to do this sometime in the future but anyone feel free to do this of course.
from moonlight-chrome-tizen.
So im interested to see what happens with this, though my samsung TV is a ku6400, so from 2016 by all accounts, which looks like it is a Tizen 2.4 (https://developer.samsung.com/smarttv/develop/specifications/tv-model-groups.html). I will try the config hack to see if that sucessfully pushes the app to the TV, but I fully expect the same plugin loading issue on the TV.
Watching with interest.
(Was running SteamLink fine, so looking for a replacement)
from moonlight-chrome-tizen.
But could it be that older TizenOS versions (<5.5) do not support WASM (Web Assembly)?
Confirming from Samsung documentation that WebAssembly is only supported on 5.5 and above. The exact quote is "Samsung smart devices support WebAssembly from Tizen 5.5 (2020 models) onwards."
from moonlight-chrome-tizen.
any way to install on Tizen 5.0? :(
from moonlight-chrome-tizen.
any way to install on Tizen 5.0? :(
not at the moment, there are instances where you can lower the requirement to allow it to install on older tizen but as we've seen, it has issues.
But could it be that older TizenOS versions (<5.5) do not support WASM (Web Assembly)?
Confirming from Samsung documentation that WebAssembly is only supported on 5.5 and above. The exact quote is "Samsung smart devices support WebAssembly from Tizen 5.5 (2020 models) onwards."
Does this means they'd have to rebuild moonlight without WebAssembly support for older tizen versions from scratch?
from moonlight-chrome-tizen.
Does this means they'd have to rebuild moonlight without WebAssembly support for older tizen versions from scratch?
That's the idea right now as mentioned above this tizen moonlight repo here is branched from moonlight chrome os repo. @schneimo found the commit when the chrome repo migrated from NaCl to WebAssembly
The newest Gamestream implementation of Samsung requires WASM but there are commits in Samsungs history which changed the codebase to WASM (before it was NaCL I think): SamsungDForum@86881f5
I'm not sure if anyone has looked in detail yet if it would be easier to redo the tizen conversion to the old branch before the linked commit or rewrite the tizen branch as is back to NaCL. Holiday week for me right now 🦃 so I won't have a chance to take a look for another week or so.
from moonlight-chrome-tizen.
i uh tried somethin but am dum. ¯_(ツ)_/¯
tried to like, match/copy n paste it to the orignal linked here onto my forked repo that i've made, but i've yet to kinda try it out rn but am too lazy and i just know it isn't gonna work lol.
oh well, hopefully somebody smarter than me can actually do it.
from moonlight-chrome-tizen.
I might be introducing noise here, but there seems to be a developer guide for the reverse process of what we want (moving from NaCl to WebAssembly) to make Moonlight work on the "new" Tizen versions.
With a relevant fork of moonlight-common-c to follow.
Maybe that might be of use for someone looking into this.
from moonlight-chrome-tizen.
Still learning about all this. The following might be useless and is per my inquiry to Bing Chat. The developer.chrome webpage is dead though if you try to access it. I can only view archived versions of that page via wayback.
To convert a WebAssembly (WASM) file into Native Client (NaCl), you can use Emscripten¹. Emscripten is a toolchain that can compile C and C++ code to WebAssembly, asm.js, and NaCl. Here are the steps to convert a WASM file to NaCl:
1. Install Emscripten on your system.
2. Compile your C or C++ code to WebAssembly using Emscripten.
3. Use the emcc
command to generate a NaCl executable from the WebAssembly file.
Here's an example command to convert a WASM file to NaCl:
emcc -s WASM=1 -s SIDE_MODULE=1 -o my_module.wasm my_module.c
This command compiles the my_module.c
file to WebAssembly and generates a my_module.wasm
file. The -s WASM=1
flag tells Emscripten to generate a WebAssembly file, and the -s SIDE_MODULE=1
flag tells Emscripten to generate a WebAssembly module that can be loaded into NaCl. Finally, the -o
flag specifies the output file name.
Once you have the my_module.wasm
file, you can use the nacl-clang
command to generate a NaCl executable:
nacl-clang -o my_module.nexe my_module.wasm
This command generates a my_module.nexe
file, which is a Native Client executable that can be run in a NaCl environment.
Source: Conversation with Bing, 12/7/2023
(1) WebAssembly Migration Guide - Chrome for Developers. https://developer.chrome.com/docs/native-client/migration/.
(2) NaCl to WebAssembly Primer - Excellarate - Encora. https://www.encora.com/insights/nacl-to-webassembly-primer.
(3) How do I compile a C++ file to WebAssembly? - Stack Overflow. https://stackoverflow.com/questions/45146099/how-do-i-compile-a-c-file-to-webassembly.
(4) c++ - How to compile WebAssembly into regular assembly / native code .... https://stackoverflow.com/questions/56403837/how-to-compile-webassembly-into-regular-assembly-native-code-or-cpp-etc.
(5) undefined. https://github.com/fastly/lucet.
(6) undefined. https://github.com/WebAssembly/wabt/tree/master/wasm2c.
from moonlight-chrome-tizen.
One more post for today. I wonder if anyone from the thread posted below could be pinged for an assist? njibhu or jorys-paulin if they are still around in the githubs looks like they have some experience with related matters (not of Tizen, although of Moonlight NaCl and WASM). Others in the thread look like they have some NaCl / WASM experience as well.
ETA: I also found these additional resources:
and
"Moonlight for ChromeOS is a legacy client that depends on the deprecated NaCl runtime. It is receiving only basic bugfixes and little/no feature work."
https://github.com/moonlight-stream/moonlight-chrome
from moonlight-chrome-tizen.
My Tizen is 5.0 too :/
from moonlight-chrome-tizen.
Moonlight on Tizen 3.0 would be amazing! I can provide any help needed for testing since i'm having the same issue on my tv
from moonlight-chrome-tizen.
I might be introducing noise here, but there seems to be a developer guide for the reverse process of what we want (moving from NaCl to WebAssembly) to make Moonlight work on the "new" Tizen versions. With a relevant fork of moonlight-common-c to follow.
Maybe that might be of use for someone looking into this.
About SamsungDForum@86881f5
I think that's helpful but would be careful about calling it a reverse. I took a read through the code just to understand what was going on a bit. I'm a newb at this. The code is nice because it shows 4 files with Red section call outs for lines what were deleted and Green for sections that were added (often or always following a red section). I don't know if just undoing those things would make it work (or maybe would basically put the person back at the version that was originally used to create those 4 files). From a few weeks ago I remember reading something about Samsung like plugins that were used to make steam link work or something like that, so I don't know if similar would be needed for moonlight.
from moonlight-chrome-tizen.
Related Issues (20)
- Tizen Author certificate not matching HOT 2
- Keep failing with connecting with Tizen TV HOT 3
- ERROR or 118, 19 HOT 2
- Name resolution failed (error -2) using IPV6 host HOT 1
- Samsung Tizen TV's should be considered supported by Moonlight as Community supported Homebrew HOT 1
- Guide button on Controller should act as Guide button on Pc, not open tizen Os App Drawer/Menu HOT 1
- Unable to activate HDR stream on S90C HOT 6
- Failed to install Tizen application HOT 2
- Kodi
- ERROR: Failed to pair with PC upon entering the PIN HOT 28
- moonlight on TIZEN 5.0 (Samsung 2019) HOT 3
- Can I install app in game section? HOT 2
- I have an issue HOT 3
- Add Host Manually: Cannot select "CONTINUE" HOT 3
- Stream freezing over 30mbps bitrate in 4k (Samsung 2023) HOT 2
- Wonder how I can exit the app itself back to the Tv menu ?
- Wonder how I can exit the app itself back to the Tv menu ? HOT 2
- Wireless living-room keyboards not working properly HOT 5
- Sound clicks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonlight-chrome-tizen.