Giter Site home page Giter Site logo

Comments (6)

hensm avatar hensm commented on July 18, 2024

I would have guessed that this isn't explicitly configurable, but that the Android devices are just waiting for a change in playback status before showing a notification. Meaning there's nothing special to do to support this.

What are you casting that doesn't trigger a notification?

I haven't got an Android device to test this on, so I'm not sure how helpful I can be. I can try a VM, I suppose.

from fx_cast.

Batcastle avatar Batcastle commented on July 18, 2024

I wouldn't think they are waiting for a change in playback status. If you get rid of the notification, it comes back after some time. This leads me to conclusion that it has something to do with packets. And since I know when devices are casting, they send out a packet occasionally that keeps the network alive it would make sense if the packet that keeps the network alive also has the info shown in the notification (it shows what app or website is casting).

To answer your question, I was casting from vrv.co . It shows the notification on it's mobile app and when casting from a chromium-based browser. That notification pops up with all android apps that cast that I have tried.

from fx_cast.

hensm avatar hensm commented on July 18, 2024

The Chromecast advertises itself to other devices via mDNS. The playback status and current app (or status line?) are contained within a TXT record (st, rs). Waiting for a change in playback status is just waiting for an mDNS update.

In any case, if the same app is exhibiting different behaviour on Chrome than Firefox, that’s a bug, so I’ll take a look.

from fx_cast.

Batcastle avatar Batcastle commented on July 18, 2024

Oh okay. That makes sense.

I will try it with other websites too to see if the same issue is occurring elsewhere and report back later. Just to make sure it isn't just VRV doing that.

from fx_cast.

Batcastle avatar Batcastle commented on July 18, 2024

Notification does not pop up when casting either YouTube or Netflix as well.

from fx_cast.

hensm avatar hensm commented on July 18, 2024

Did some testing on an Android phone. Haven't been able to get cast notifications to show up under any circumstance, even for Chrome-initiated cast sessions. No luck with the VM, either. No configuration issues as far as I can tell.

I think I'm probably wrong about how Android devices pick up the playback state, since the device broadcasted device state state is identical for fx_cast and Chrome. Still doesn't really make much sense, I have no idea.

You could try with some other desktop applications with cast support (VLC, WebTorrent, etc...) and see what happens there. WebTorrent uses the same implementation (node-castv2), I think, so it would be interesting to know if that works. Also, I did find someone reporting the same problem with pychromecast.

I'll leave this issue open, and probably come back to it in the future if I can get way to test this, but nothing I can do right now.

from fx_cast.

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.