Comments (17)
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.
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.
Oops, closed by github magic.
from catt.
@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.
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.
@skorokithakis Any progress?
from catt.
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.
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.
It just fails immediately, which suggests to me that there's some sort of interface error.
from catt.
I'm a bit confused now, how does this relate to local file casting? (and how did you get that traceback?)
from catt.
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.
@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.
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.
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.
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.
Makes sense.
from catt.
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)
- playlist not working
- Choose audio track when video contains multiple audio tracks
- catt scan unable to find devices HOT 10
- Catt cast_site with automatic scrolling?
- [Feature Request] Give the option to transcode videos that are being casted on the fly.
- IP TV
- pychromecast v13 HOT 1
- [Feature request] Mute/Unmute feature HOT 4
- CATT stopped working(generated code out of date) post home assistant update with not resolution on rollback
- catt is not compatible with the latest release of Home Assistant (2023.5.0) HOT 3
- New pip package for latest changes HOT 7
- share an entire monitor?
- Casting to Google TV HOT 1
- Cant cast local files HOT 2
- Using `cast_site` to cast a HA dashboard to a Nest Hub. Command to change the view on the hub?
- Not able to cast local video file
- not working with Google Nest Audio Stereo Set
- Cast Local File in ChromeOS Crostini Linux VM: Not Working HOT 4
- Command "catt save" throws "KeyError: volume_level"
- Update catt package (0.12.11) on PyPI to match newest commit on Github HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catt.