-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Specify the correct mimetype when casting local files #96
fix: Specify the correct mimetype when casting local files #96
Conversation
@theychx more fun for you! ANother PR for you to code review. |
30257bd
to
3e01ffa
Compare
Hmm, the problem with having this PR on top of the other is that you may have to redo any changes in the previous one. Hopefully it'll work out, we'll see what git thinks! |
Don't worry! than I'll rebase this one and you can merge this one as well. this one is incredibly simple: 3e01ffa |
@skorokithakis Is this worth the extra dependency? |
Two extra dependencies, no? |
|
Thd The other dependenxy is But in the end of the day the latter is not necessary. All Chromecast supported formats are here : https://developers.google.com/cast/docs/media so I can make a big IF to do the samw thing. Probably only on Monday, though... |
@marcosdiez The point is, even if you implemented the magic stuff yourself (which would be silly), the only real benefit to merging this, is users gaining the ability to cast local image files. Which I think most users would not expect |
I personally think it's really fun to cast images... |
3e01ffa
to
c31394f
Compare
I rebased. Now we don't use that mime library. Instead I infer. |
c31394f
to
5a62ead
Compare
f26ce46
to
87c2d3a
Compare
rebased. flake8 is happy about it as well! |
This looks good to me! @theychx? |
As for the usefulness of this, I think it's more of a "set the correct mimetype" fix, with an added side-effect of allowing casting of audio/image files. I'm not opposed to that, really... |
Hey, give me an opinion... what else could we do with the Chromecast. I am wondering if there is a use to that. Maybe a marquee ? I don't know |
A picture frame would be really fun, maybe we can make a small site that takes a Flickr album or whatever and shows the photos one by one, and the Chromecast can cast that. That'd be a nice screensaver/idle display. |
Casting of audio files is already working, as chromecast devices do not care about mime-types being correct (for audio/video). I'm not a fan of latching random functionality onto |
@theychx Hmm, do you think that this PR adds random functionality? Looking at it, it just sets the correct mimetype to the file being cast. It feels to me like it's rounding out the casting function by adding the complete set of mimetypes that the Chromecast supports, do you disagree? |
I'm obviously not opposed to setting the correct mime-type. |
Those wouldn't be implemented in |
Are you okay with merging this PR, by the way? |
Yeah, it's cool. |
Thank you, merged! |
To make your weekend even more fun, here is a small PR to make
catt
cast images as well :)yes, I am very optimistic you will soon merge my other PR so I not separating this one, for it will cause conflicts