Closed Rossano95 closed 5 years ago
Thank your for raising a issue. I will try and get back to you as soon as possible. Regards @fgl27
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
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...
[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)
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
Find this folder... I don't know where it is on windows machine
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
put yours password, and now you must be able to click on finish.
Use that just created certificated as default and let me know.
Thank you. This worked. Now the only problem is that I can't set 1080p.
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.
I see the resolution in the app. But when i click ok the stream starts buffering and goes back to 720.
what stream? is yours internet enough? because the app automatic changes the resolution down, when the internet is not enough.
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.
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.
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.
all streams have that problem?
because no one ever had a problem like that.
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?
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
Just keeps buffering until it loads the 720. Also on videos. The clips are working. It's like a buffering issue.
change the buffer size to a higher number in settings, key A or red to open side panel then settings.
and try again.
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
are you shore you power off the TV, removing from the wall? because seems something very odd may solve on a reboot.
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.
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
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
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
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...
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.
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.
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:
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:
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:
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:
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
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
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.
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...
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.
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?
Yes. It's working. I tested also clips and videos. Thank you.
I let you know when you can try the release. in a few minutes...
Ok, thank you
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.
Now it's all working. The version is the right one. Thank you.
:+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.
Thank you, so now it's 60fps or not?
it's
Ok. So just to understand. The codec doesn't support 60 fps but it works anyway?
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
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?
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
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.
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
OK thanks.
I'll check and push later today, I let you know here.
The language is on release, test and let me know if any adjustment is needed.
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.
there is a key on the remote
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
off course that image is only a random example, what show is yours user content above the twitch icon.
Ok. I don't see the content. I can see the contents on Netflix, Prime Video ecc.
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
Ok, thank you. This is not a real issue. I just noticed that this didn't worked.
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