Coder Social home page Coder Social logo

Local file casting issues about catt HOT 17 CLOSED

skorokithakis avatar skorokithakis commented on August 29, 2024
Local file casting issues

from catt.

Comments (17)

skorokithakis avatar skorokithakis commented on August 29, 2024

Hmm... "Connection reset by peer" generally means that the client saw some error and aborted the request. I'm not sure what that error could be, though. We might be sending something wrong.

When you play the file from a DLNA server, does it go through your Chromecast? I don't think the Chromecast can do DLNA, can it?

from catt.

theychx avatar theychx commented on August 29, 2024

When you play the file from a DLNA server, does it go through your Chromecast? I don't think the Chromecast can do DLNA, can it?

DLNA uses http, so yes.

from catt.

theychx avatar theychx commented on August 29, 2024

Oops, closed by github magic.

from catt.

theychx avatar theychx commented on August 29, 2024

@skorokithakis Could it be that the file is borked somehow, and that the DLNA-server is somehow mitigating this? Have you had issues with local file casting?

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

I didn't have any issues when testing it, but most of my casting is online, so I haven't tested it extensively, I'm afraid. I can test when I get home.

from catt.

theychx avatar theychx commented on August 29, 2024

@skorokithakis Any progress?

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Ah, sorry, completely forgot. Looks like we made a booboo:

  File "/home/stavros/.local/lib/python3.6/site-packages/pychromecast/discovery.py", line 114, in discover_chromecasts
    stop_discovery(browser)
UnboundLocalError: local variable 'browser' referenced before assignment

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Err, that's pychromecast code. The previous exception is:

    listener, browser = start_discovery(callback)
  File "/home/stavros/.local/lib/python3.6/site-packages/pychromecast/discovery.py", line 88, in start_discovery
    ServiceBrowser(Zeroconf(), "_googlecast._tcp.local.", listener)
  File "/home/stavros/.local/lib/python3.6/site-packages/zeroconf.py", line 1696, in __init__
    socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(i))
OSError: [Errno 105] No buffer space available

but it just seems that we need to show "no Chromecasts found" or something like that.

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

It just fails immediately, which suggests to me that there's some sort of interface error.

from catt.

theychx avatar theychx commented on August 29, 2024

I'm a bit confused now, how does this relate to local file casting? (and how did you get that traceback?)

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Sorry, this is just what I got when trying to cast a local file (it's just what catt cast dies with), it fails when discovering Chromecasts. It's not very relevant to this bug, but I got blocked by it in testing this bug. I will investigate further!

from catt.

theychx avatar theychx commented on August 29, 2024

@skorokithakis While working on the server stuff, I discovered what causes (at least some of) the issues with the current script. I made this branch, in case you want to push the fix to python 2 users.

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Ah, hmm. I can branch from 0.5.5 into a py2 branch and issue a 0.5.6 release from that code (which won't contain your py3 removal code), but it's going to get harder to backport things after that, as releases are going to be weird. It's still early enough that we can do this, though.

from catt.

theychx avatar theychx commented on August 29, 2024

Quick question (my git-foo is on a fairly low level):
My branch DOES contain the py2 compat code. I checked out from the 0.5.5 tag, and then fixed http_server.py, and then created a new branch, made the commit, and then pushed this branch to github. Did I misunderstand something?

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Oh, no, I was just saying that we may want to keep a py2-compat branch around to work on/backport things. The main problem is that we can't really have two release "paths", one for py2 and one for py3, so we can't really say "0.6.0 dropped python2 compatibility, but 0.6.1 reinstated it again because we wanted to make some bugfixes, and then 0.6.2 drops it again".

I'll just release 0.5.6 from your branch now, thanks.

from catt.

theychx avatar theychx commented on August 29, 2024

Makes sense.

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Alright, after a lot of failures, I did manage to release 0.5.6. Unfortunately, there won't be a tag and release on Github, as we don't have a commit to tag, but it's out! Thank you!

from catt.

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.