Coder Social home page Coder Social logo

Comments (35)

javierpz avatar javierpz commented on July 17, 2024 1

goo.gl/4xjQFR

Inside you have the java files with the code.

I am also dev but I haven't installed the sdk and I have very little time to fix it by myself, but I can test and see what could happen.

Thank you

from smarttubelegacy.

chudoga avatar chudoga commented on July 17, 2024 1

An error occurs when I cast the screen to Mi TV 4a
TV 6.17.730
phone 16.08.35
MiPlay
IMG_20210308_140229
Screenshot_2021-03-08-14-01-28-916_com google android youtube

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

Casting depends solely on the firmware abilities. I can't see a way of fixing such behavior on unsupported devices.

Some source of thinking may be the next resources, but there are some drawbacks...
https://github.com/fraunhoferfokus/peer-dial
https://github.com/node-on-mobile/node-on-android

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

I am trying to cast from the YouTube app of my phone to a fire tv stick, latest model, and it doesn't work. The app shows the fire stick but it never finish the connection.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz Is casting problem observed on the 720 or 1080 versions?

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

Hello @yuliskov

First of all thank you for your work. I think it's awesome.

About the problem, it happens with the two modes. When I try to cast, your app launches YouTube on the fire stick but without login and without casting the video. And the phone says that it is connecting but it never connects. I can do any test you want. Thank you!!

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

Thanks for the your kind words.

So, at least, my app is able to lunch. It's not bad. Maybe there is something that I can do.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz Hi, friend. Check, the latest update.

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

@yuliskov Hi! The latest version is 6.12.20 published three days ago, which is the version I was trying. I smell a new version today haha

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

Hi! Still it doesn't work, same behavior. YouTube is launched on the fire TV stick and YouTube on the phone says "Connecting to..." until timeout error. It happens with three devices and with the official app works. Thank you.

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

The cast functionality of today release 6.12.24 is broken, after upgrade the phone doesn't list the device. Before the upgrade it didn't worked for me, but at least I was able to see the device. Thank you.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz thanks for the reply. I tried to do the same things as described in the amazon doc. Its pity that it didnt worked out.
https://developer.amazon.com/docs/fire-tv/dial-integration.html

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

Hi! I am trying to see what's wrong with that, and I think I have seen something. I think the latest release have a new mistake, you change on whisperplay.xml the dialid from "YouTube" to "SmartYouTubeTV". That's why the YouTube app doesn't recognize the casting service.

I have decompiled the official app from Amazon and I can see what it does. It's pretty similar to what you do, but they add the locale settings to params, e.g. "https://www.youtube.com/tv?hl=US_US&{{DIAL_PARAMS}}"

I will send to the link to the decompile code.

Thank you

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz first let me thank you for the your efforts. I've changed app name intentionally. It's is stated in Amazon's manual. OK. As there no changes then I'll revert old name and slightly change the url.

BTW: I've registered new name in the dial site (scroll down first table).
http://www.dial-multiscreen.org/dial-registry/namespace-database

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

I think the problem with the new dialid is that YouTube app on the phone is searching that dialid. Use your own dialid makes sense if you also have a client that use it, but that's not the case. I could be wrong, but that's what I have understood on docs. Thank you for your efforts and time!

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz maybe you're right. I'll revert dialid to YouTube. Thanks.

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

Hi!

I installed the Sdk and debugged your app. I think I have found the problem. When the app launches, it start youtube without cast parameters, just youtube tv. Then if you cast from YouTube, the new URL with the token ID and the parameters sent from the phone are ignored because the app doesn't reload the web page, just open the page previously loaded, without parameters.

In intenthandler, on onNewIntent method the activity is always ACTION_MAIN, so the execution never does nothing in this method.

You can try it even without debug, just launch the app, open YouTube settings, or a video, or something and then push home button to exit to launcher. Then if you cast from your phone, the YouTube will open again but in the previously state, on the YouTube settings page or the selected page, ignoring the new URL generated with the parameters.

Also I have tried the URL generated directly in my pc browser and it works, so the problem is not the URL, the problem is it always ignore the new URL.

You should force to reload page with the new URL everytime it receives parameters by Dial.

Thank you!

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz very interesting observations. I'll check them out!

from smarttubelegacy.

doktormerlin avatar doktormerlin commented on July 17, 2024

I can confirm that the Casting feature does not work from the YouTube App to Smart YouTube TV (stable)

Glad to hear that this is worked on. @yuliskov This is for both 720p and 1080p

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

Hello,

I have applied a fix to the code, so I hope it will work after the next release. But there are still one issue about cast from phone: when you cast the first video from the phone, it will not start until you push play button with the remote control of the device. Then you can play/stop and play other videos without problem with the phone. The problem is only the first time you cast a video.

I don't know where are the problem. Any idea?

Thank you!

from smarttubelegacy.

botioni avatar botioni commented on July 17, 2024

The play isu is ther iven if you send a lonk from another app . it is noth releted to the cast roblem
Thanks for your work !!!

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

Then you can play/stop and play other videos without problem with the phone. The problem is only the first time you cast a video.

@javierpz I have no clue. Seems that xwalk version (1080) doesn't have this problem.

from smarttubelegacy.

doktormerlin avatar doktormerlin commented on July 17, 2024

The cast feature is working now.

However there seems to be one minor bug with it.

First is language, my Fire TV is set to German. If you cast from your phone the language in the App is English (always from casting, not from starting through the App Drawer)

from smarttubelegacy.

EarlyMon avatar EarlyMon commented on July 17, 2024

53685ced - 720 launcher, Fire TV Stick

App appears to restart on cast from phone (youtube splash screen appears first, I don't remember if that's normal - I don't have a complaint about that part, just sharing what I see) - TV pops up a toast message correctly identifying my phone as the casting source - TV then displays the correct YouTube title and a time line going from 0:00 to 0:00

Tapping the play icon on the phone does nothing, phone says still connecting

Please let me know if I can provide other information and MANY THANKS for the nice work on this app and your attention to detail!

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@doktormerlin could you post a screens with english ui?
@EarlyMon some screens also would be good.

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

@doktormerlin I think that issue is because we add the parameter hl=Us-us. We should remove it and then it will work.

@EarlyMon this issue seems to be the same as I described before. If you press the play button directly on your device with a remote controller or something, it will start playing and after that, it will work with your phone. It seems that with 1080p mode doesn't happens.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@javierpz seems that you're right! Thanks again.

from smarttubelegacy.

doktormerlin avatar doktormerlin commented on July 17, 2024

With the newest update the language works fine and also the splash screen reappearing seems fixed - great work!

from smarttubelegacy.

javierpz avatar javierpz commented on July 17, 2024

I have added a fix that will prevent the reload of the entire site when another device connects to cast. With this fix, it's possible to connect more than one device without rebooting every time a device tries to connect.

Please @yuliskov check if you see it right. All parameters will be addead after the hash, so it will never reload the entire page, it will just process the parameters after the hash.

Thank you!

from smarttubelegacy.

EarlyMon avatar EarlyMon commented on July 17, 2024

The latest update fixed the reloading so I don't think that screens from me are still required, please correct me if I am wrong.

@javierpz - I misunderstood your first description but of course you are correct, tapping the remote play button on 720p starts the player.

If that can't be corrected, maybe some notes about it on the smartyoutubetv.github.io page would be beneficial and prevent reports about it.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

@EarlyMon agree with you. I think its time to add 'Known bugs' section to the site.

from smarttubelegacy.

Drakemaster avatar Drakemaster commented on July 17, 2024

Since the last update most things work on FireTV. If the app is active and if the app is not opened, I can cast videos but if you put the running app in background, it's not working. I am able to cast, the app is opening but the video won't be casted.

from smarttubelegacy.

doktormerlin avatar doktormerlin commented on July 17, 2024

Some bugs that happen with Cast from phone right now:

  1. When the Fire TV is in Screensaver mode, the video starts without disrupting the screensaver (you need to press a button on the remote to see the video again)
  2. Sometimes when opening the app, it starts the last video you casted (even after the Fire TV was shut down)
  3. This is not a bug, but maybe it would be possible to not show the update dialogue when using cast from phone? It's a bit annoying to search for the remote to hide that menu or download the update. I don't want to completely disable update notifications though

from smarttubelegacy.

jmgraeffe avatar jmgraeffe commented on July 17, 2024

For me (Fire TV Stick, stable release), the cast from phone works but it does not sync the time and I can't pause/resume/volume-control from phone. I know it's probably a lot of work but it would be so cool to have it working again. Thanks for your awesome work!

The latest release on GitHub does work in terms of casting from phone, but there is no video output for me unfortunately. And tbh I am a little bit confused about your versioning. The stable version is newer than the last test release on GitHub?

from smarttubelegacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.