fgl27 / smarttv-twitch

Twitch client for Samsung Smart TVs 2015 and newer models, in doubt read the README bellow
GNU General Public License v3.0
171 stars 18 forks source link

Tizen Certificate Manager not working #4

Closed Rossano95 closed 5 years ago

Rossano95 commented 5 years ago

When I click finish at the end of the creation of the certificate the app just don't do anything. I tried to make another certificate with Samsung instead of Tizen and when I Run as > 1 Tizen wen Application I get a fail.

The TV is a UE50NU7090 Tizen Studio 3.0

auto-comment[bot] commented 5 years ago

Thank your for raising a issue. I will try and get back to you as soon as possible. Regards @fgl27

fgl27 commented 5 years ago

I have created a certificate in the past just as described in https://github.com/fgl27/smarttv-twitch#generate-a-certificate

But I tried to create a new one today and it's just like you wrote.

I also try this https://developer.samsung.com/galaxy-watch/develop/getting-certificates/create And I was able to create one, in the past that type did not allow to install the app, but I selected it and it allow me to install, so please try and report.

BTW in this step "7. At the Next step, a Samsung Account sign-in pops up" use yours full email and password same as you use on the TV the one that has developer status enable from https://github.com/fgl27/smarttv-twitch#account-and-downloads

Rossano95 commented 5 years ago

I did everything. After I press run as I get a "Different Profile" alert. I click yes and the problem is the same.

This is the log:

Launching the Tizen application...

If you want to see the detailed information,

please set the logging level to DEBUG in Preferences and check the log file in 'C:\tizen-studio-data\ide\logs/ide-20190104_123042.log'.

[Initializing the launch environment...] RDS: Off Target information: UE50NU7090 Application information: Id(qY6HyNzLIR.TwitchTv), Package Name(qY6HyNzLIR), Project Name(BasicUI) [Transferring the package...] Transferred the package: wgt stream -> /home/owner/share/tmp/sdk_tools/tmp/BasicUI.wgt [Installing the package...] install qY6HyNzLIR.TwitchTv package_path /home/owner/share/tmp/sdk_tools/tmp/BasicUI.wgt was_install_app return WAS_TRUE app_id[qY6HyNzLIR.TwitchTv] install start app_id[qY6HyNzLIR.TwitchTv] installing[7] app_id[qY6HyNzLIR.TwitchTv] installing[10] app_id[qY6HyNzLIR.TwitchTv] installing[13] app_id[qY6HyNzLIR.TwitchTv] installing[15] app_id[qY6HyNzLIR.TwitchTv] installing[18] app_id[qY6HyNzLIR.TwitchTv] installing[21] app_id[qY6HyNzLIR.TwitchTv] installing[23] app_id[qY6HyNzLIR.TwitchTv] install failed[118012] spend time for wascmd is [1443]ms cmd_ret:0 An exception occurred (Installing the package... > Fail) An exception occurred Unexpected stop progress... (4.026 sec)

fgl27 commented 5 years ago

The problem is to create a normal certificate is to create a autor. Try again to create a profile using...

back to Tizen Studio > Tools > Certificate Manager > + > select/click Tizen >

but on create a new author use "select existing..." because when you use https://developer.samsung.com/galaxy-watch/develop/getting-certificates/create you already created one

screenshot from 2019-01-04 10-30-43

Find this folder... I don't know where it is on windows machine

screenshot from 2019-01-04 10-29-52

the folder to look for in linux has this name "SamsungCertificate" and inside must have the previously created certificated, and inside must have author.p12 file chose that

screenshot from 2019-01-04 10-29-57

put yours password, and now you must be able to click on finish.

Use that just created certificated as default and let me know.

Rossano95 commented 5 years ago

Thank you. This worked. Now the only problem is that I can't set 1080p.

fgl27 commented 5 years ago

1080p must be available on the streams so you can use, some streams don't have that.

just check in twtch.tv for the stream and you will see that what is in the website is on the app in relation to available resolutions/qualities.

if you see more resolution on the site then the app, tell me the stream so I can check.

Rossano95 commented 5 years ago

I see the resolution in the app. But when i click ok the stream starts buffering and goes back to 720.

fgl27 commented 5 years ago

what stream? is yours internet enough? because the app automatic changes the resolution down, when the internet is not enough.

Rossano95 commented 5 years ago

This is the stream: https://www.twitch.tv/goeasytwitch

I have 200mbps so I think it's enough. I can see it on my pc without any issues. Also on the original app for tizen. I installed this for the chat and the better interface.

fgl27 commented 5 years ago

1080p just fine to me, you must have some network problem there, the app will not change the resolution unless it can't open because internet related issue, you can try to use a cable in case you are in wifi or just a simple reboot of the tv by unplugging it from the wall.

Rossano95 commented 5 years ago

Now I am using the cable. It seems that I can't watch 60fps contents. Also in 720. It's stange. I don't think that it's a connection issue. The internet is really fast.

fgl27 commented 5 years ago

all streams have that problem?

because no one ever had a problem like that.

Rossano95 commented 5 years ago

Yes, all of them. Is there a way to see if there is an error? Like a log or something like this. Maybe is the TV that has some incompatibilities?

fgl27 commented 5 years ago

video and clips also have the same resolution as the streams.

Do they also have this problem?

what happens when you press enter after select 1080p60, it start buffer and plays then buffer again, or it never plays? just keeps buffering until it loads the 720

Rossano95 commented 5 years ago

Just keeps buffering until it loads the 720. Also on videos. The clips are working. It's like a buffering issue.

fgl27 commented 5 years ago

change the buffer size to a higher number in settings, key A or red to open side panel then settings.

and try again.

Rossano95 commented 5 years ago

It's the same. I tried all the settings. It only takes longer to go back to 720. Only 720, not even 720 60 fps

fgl27 commented 5 years ago

are you shore you power off the TV, removing from the wall? because seems something very odd may solve on a reboot.

Rossano95 commented 5 years ago

I unplugged again. It's the same. But is there any log? So I can see if it's an error? Like codecs or something like that. The TV is pretty new and with the original app the streaming is working.

Rossano95 commented 5 years ago

This is the console log. I started a debug from tizen studio.

https://fgl27.github.io/smarttv-twitch/release/githubio/css/font-awesome.min.css Failed to load resource: net::ERR_NETWORK_CHANGED https://fgl27.github.io/smarttv-twitch/release/githubio/css/master.css Failed to load resource: net::ERR_NETWORK_CHANGED master.js:1 language is it_IT master.js:1 InitScreens place holder VM36:1 Entering setDisplayRect VM36:1 adding listener VM36:1 Entered AVPlayManager.prepareAsync() webapis.min.js:1 [productinfo.js] isUDPanelSupported begin webapis.min.js:1 [productinfo.js] isUDPanelSupported end [object Object] webapis.min.js:1 [productinfo.js] isUDPanelSupported message data true webapis.min.js:1 [productinfo.js] getFirmware begin webapis.min.js:1 [productinfo.js] getFirmware end [object Object] webapis.min.js:1 [productinfo.js] getFirmware message data T-KTSUDEUC-1007.1 webapis.min.js:1 [productinfo.js] getModel begin webapis.min.js:1 [productinfo.js] getModel end [object Object] webapis.min.js:1 [productinfo.js] getModel message data UNU7090 index.html:1 Failed to decode downloaded font: https://fgl27.github.io/smarttv-twitch/release/githubio/css/fonts/BabelStoneHan.woff index.html:1 OTS parsing error: OS/2: Failed to read version 5-specific fields webapis.min.js:1 [network.js] addNetworkStateChangeListener success webapis.min.js:1 [network.js] listenerId 0 webapis.min.js:1 [webapi.js] cbArr length: 1, then remove Callback! VM36:1 adding listener VM36:1 Entered AVPlayManager.prepareAsync() master.js:1 Cannot read property 'setPreviewData' of undefined jquery.min.js:2 GET https://api.betterttv.net/2/channels/faker 404 () send @ jquery.min.js:2 ajax @ jquery.min.js:2 p.(anonymous function) @ jquery.min.js:2 getJSON @ jquery.min.js:2 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:434 loadEmotes @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:433 load @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:322 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:637 k @ jquery.min.js:2 fireWith @ jquery.min.js:2 ready @ jquery.min.js:2 D @ jquery.min.js:2 jquery.min.js:2 GET https://api.frankerfacez.com/v1/room/faker 404 () send @ jquery.min.js:2 ajax @ jquery.min.js:2 p.(anonymous function) @ jquery.min.js:2 getJSON @ jquery.min.js:2 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:450 loadEmotes @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:449 load @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:322 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:637 k @ jquery.min.js:2 fireWith @ jquery.min.js:2 ready @ jquery.min.js:2 D @ jquery.min.js:2 VM36:1 adding listener VM36:1 Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents. (anonymous) @ VM26:1 VM36:1 adding listener VM36:1 Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents. (anonymous) @ VM26:1 VM36:1 adding listener VM36:1 Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents. (anonymous) @ VM26:1

fgl27 commented 5 years ago

what original app?

the player used here is the samsung default player, same used on original fork https://github.com/nikitakatchik/smarttv-twitch

you can't log using the release you need to download the source so fallow this...

yes you can log, but will only show a error if there is a error, with I doubt that will shows as errors because they causes crashes and this behavior is simple is just a timeout as took too long to open then the quality goes down.

To see the logs download the source https://codeload.github.com/fgl27/smarttv-twitch/zip/master and install that making a new app in tizen, then when is time to install click on the lady bug icon (top left under file)

it will install the app in debug mode, it will open on the computer a window from the default browser click in console to see the logs

screenshot from 2019-01-04 12-52-08

After the app finished load it will request you to press OK, then after you see the above screen you can press the B or green key, to force reload the app, it will make all the app show all initialization the logs then if see this

screenshot from 2019-01-04 12-54-32

is because all the logs are be display, from that you can try to open some streams.

It will probably not log anything help full, but then I check where I can put extra logs so we can see where it is not working...

is a slow process unless you know how to code, as I can't simulate the problem here and I need to guess what to do on most situations and request you to test and test and test...

Rossano95 commented 5 years ago

This is the only error that I see:

Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents.

fgl27 commented 5 years ago

I need to see all the log the full text and screen shot, that means nothing to me. let it log until it starts to play from the correct app version.

I need to see where it happens se the log it show the lines of where it happens, that is way you need to install the source as above and log that the release can't be use for logging is not ready for it.

Rossano95 commented 5 years ago

This is the log:

Main.js:200 language is it_IT Screens.js:6 InitScreens place holder VM63:1 Entering setDisplayRect VM63:1 adding listener VM63:1 Entered AVPlayManager.prepareAsync() webapis.min.js:1 [productinfo.js] isUDPanelSupported begin webapis.min.js:1 [productinfo.js] isUDPanelSupported end [object Object] webapis.min.js:1 [productinfo.js] isUDPanelSupported message data true webapis.min.js:1 [productinfo.js] getFirmware begin webapis.min.js:1 [productinfo.js] getFirmware end [object Object] webapis.min.js:1 [productinfo.js] getFirmware message data T-KTSUDEUC-1007.1 webapis.min.js:1 [productinfo.js] getModel begin webapis.min.js:1 [productinfo.js] getModel end [object Object] webapis.min.js:1 [productinfo.js] getModel message data UNU7090 Main.js:732 Tizen Version: 4.0 | TV: UNU7090 | FW: T-KTSUDEUC-1007.1 index.html:1 Failed to decode downloaded font: https://fgl27.github.io/smarttv-twitch/release/githubio/css/fonts/BabelStoneHan.woff index.html:1 OTS parsing error: OS/2: Failed to read version 5-specific fields webapis.min.js:1 [network.js] addNetworkStateChangeListener success webapis.min.js:1 [network.js] listenerId 0 SmartHub.js:40 Cannot read property 'setPreviewData' of undefined webapis.min.js:1 [webapi.js] cbArr length: 1, then remove Callback! Play.js:634 Play_onPlayer:

http://video-weaver.mil01.hls.ttvnw.net/v1/playlist/CrUDAASs3y12bue7uEVqLsB…XzLynFKa5SzTep2KdoymdBkp_ISEHxrYf40C-XX1Y5ku8yssb8aDMSuQRmdHkWUeLSMrA.m3u8

VM63:1 adding listener VM63:1 Entered AVPlayManager.prepareAsync() jquery.min.js:2 GET https://api.betterttv.net/2/channels/faker 404 () send @ jquery.min.js:2 ajax @ jquery.min.js:2 p.(anonymous function) @ jquery.min.js:2 getJSON @ jquery.min.js:2 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:434 loadEmotes @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:433 load @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:322 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:637 k @ jquery.min.js:2 fireWith @ jquery.min.js:2 ready @ jquery.min.js:2 D @ jquery.min.js:2 jquery.min.js:2 GET https://api.frankerfacez.com/v1/room/faker 404 () send @ jquery.min.js:2 ajax @ jquery.min.js:2 p.(anonymous function) @ jquery.min.js:2 getJSON @ jquery.min.js:2 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:450 loadEmotes @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:449 load @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:322 (anonymous) @ ?theme=bttv_blackchat&channel=faker&fade=false&bot_activity=true&prevent_clipping=false:637 k @ jquery.min.js:2 fireWith @ jquery.min.js:2 ready @ jquery.min.js:2 D @ jquery.min.js:2 Play.js:634 Play_onPlayer:

http://video-weaver.mil01.hls.ttvnw.net/v1/playlist/CrUDAASs3y12bue7uEVqLsB…XzLynFKa5SzTep2KdoymdBkp_ISEHxrYf40C-XX1Y5ku8yssb8aDMSuQRmdHkWUeLSMrA.m3u8

VM63:1 adding listener VM63:1 Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents. (anonymous) @ VM26:1 Play.js:634 Play_onPlayer:

http://video-weaver.mil01.hls.ttvnw.net/v1/playlist/CrMDJ_7DBl0qyQ9bISdPR4g…VYK6HEud8X7dGGtTJ9MX58_GO5EhD28dSATvHgaoBgmpcSriLPGgwFC2ISrsd_ABUcU4A.m3u8

VM63:1 adding listener VM63:1 Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents. (anonymous) @ VM26:1 Play.js:634 Play_onPlayer:

http://video-weaver.mil01.hls.ttvnw.net/v1/playlist/CrMD8AuZKp19q-hExO6XL6X…5klNtRQRSrMncT2aNrAiq6damFEhAi7-7yjGujuSebYeCwStDlGgz-OhBQzpaIFUF7OpU.m3u8

VM63:1 adding listener VM63:1 Entered AVPlayManager.prepareAsync() VM26:1 ########## exception (anonymous) @ VM26:1 VM26:1 DOMException: Failed to execute 'open' on 'Document': Can only call open() on same-origin documents. (anonymous) @ VM26:1

fgl27 commented 5 years ago

download the source https://codeload.github.com/fgl27/smarttv-twitch/zip/master again extract and replace the folder /app/specific/ from the folder where you have the tizen app, them log

Rossano95 commented 5 years ago

Now it's working. I don't know. I had to reinstall twice because the first time the chat didn't work. It's possible that there's a problem with Tizen Studio 3.0? Thank you for your help. If you find the cause let me know.

fgl27 commented 5 years ago

What work? the one instaled from release of the one instaled from the source aka this link https://codeload.github.com/fgl27/smarttv-twitch/zip/master?

if is the one from this link https://codeload.github.com/fgl27/smarttv-twitch/zip/master

try a 1080p video, because I only change how the live player loads the stream not the video to have a way to check what is what...

Rossano95 commented 5 years ago

This works: https://codeload.github.com/fgl27/smarttv-twitch/zip/master Now the only thing that is not working is the user. When I put my username it becomes testtwitch27.

fgl27 commented 5 years ago

yes that is a test app not supposed to be used, you need to use the release, but the release doesn't gets the update until I know they are safe to use.

is video 1080p60 working or not so I can update the release?

Rossano95 commented 5 years ago

Yes. It's working. I tested also clips and videos. Thank you.

fgl27 commented 5 years ago

I let you know when you can try the release. in a few minutes...

Rossano95 commented 5 years ago

Ok, thank you

fgl27 commented 5 years ago

OK try the released, that version auto update it self to check if did open the about, Red or A key then about and APP version must be 4.0.1.010419-01, if that is not the version just hold the return key, the app will force close and when you reopen it it will self update.

then try 1080p60 live/videos/clips and tell me the result if all OK I explain the issue and close.

Rossano95 commented 5 years ago

Now it's all working. The version is the right one. Thank you.

fgl27 commented 5 years ago

:+1:

The samsung support for 4k content was enable https://developer.samsung.com/tv/develop/guides/multimedia/4k-uhd-video

For some reason on my TV it just work OK, on yours it crashes on 60fps as you showed. Technically it doesn't supports H.264 60 fps as described there, and technically that is the codec used by twitch.

But way doesn't crash on all TV? (rhetorical)

This TV OS is really bad, as twitch doesn't have 4k content, I will keep this disable, until the day we can evaluated the codec used by twitch in relation to the supported one.

Rossano95 commented 5 years ago

Thank you, so now it's 60fps or not?

fgl27 commented 5 years ago

it's

Rossano95 commented 5 years ago

Ok. So just to understand. The codec doesn't support 60 fps but it works anyway?

fgl27 commented 5 years ago

not what I was toking about. I share the link for the 4k support video playback of the TV https://developer.samsung.com/tv/develop/guides/multimedia/4k-uhd-video

with only support 60 fps if the codec is HEVC (H.265) but twitch is using H.264 BP/MP/HP for all content 60 or 30 fps doesn't matter the resolution

With that 4k support enable it crashes on yours TV trying to play H.264 BP/MP/HP 60 fps as the max fps of that codec when 4k is enable is 24, disabling the 4k support all OK

the content from twitch is not in 4k anyway so way keep it enable?

the day twitch enable full 4k support I recheck this featuring. will play even disable but may have some improve when enable for a supported codec

Rossano95 commented 5 years ago

Ok, I understood. Thank you. I am translating the app in Italian. When I think it's ready I will send it to you. Can you insert the translation even if it's not complete or perfect?

Rossano95 commented 5 years ago

This is translated in Italian. But when I try to test the app I get an error, maybe I touched something that I had not to: [flbtxFhd64] app/languages/en_US.js:125: Uncaught SyntaxError: Unexpected identifier [flbtxFhd64] app/specific/Main.js:186: Uncaught ReferenceError: en_USLang is not defined

en_US.zip

fgl27 commented 5 years ago

change this

\ "

to this

\"

no spaces after the slash, line 125, 126 and 136 have that

after you tested you need to share a file named it_IT.js

just that I make the it work on the app you don't need to translate all, but don't included untranslated variables just delete the line, if ins't perfect I don't mind you can make fixes later no rush.

Rossano95 commented 5 years ago

Now it should be pretty much OK. The only way to check everything is to use the app. Maybe someone will notice an error and wil tell us. Tell me when I can try the language on the release version. Thank you for your time.

I have not modified the first line where it says function en_USLang() { it_IT.zip

fgl27 commented 5 years ago

OK thanks.

I'll check and push later today, I let you know here.

fgl27 commented 5 years ago

The language is on release, test and let me know if any adjustment is needed.

Rossano95 commented 5 years ago

Perfect. I think that it's pretty good. Can you explain me how the smart hub preview for the first user works? I don't see the contents when on the app.

fgl27 commented 5 years ago

there is a key on the remote

control

call smart hub, it show the user content when pressed above the app icon on the app menu of the TV this bellow is the smart hub Live

off course that image is only a random example, what show is yours user content above the twitch icon.

Rossano95 commented 5 years ago

Ok. I don't see the content. I can see the contents on Netflix, Prime Video ecc.

fgl27 commented 5 years ago

I notice this already in tizen 4.0 before, but I can't test I don't have a TV, from yours log there is this

SmartHub.js:40 Cannot read property 'setPreviewData' of undefined

the variable in't undefined works OK on my TV, I duno of way that happens, and because of that no preview is loaded. I thinking on how to address this I let you know if I have something to test

Rossano95 commented 5 years ago

Ok, thank you. This is not a real issue. I just noticed that this didn't worked.