Code Monkey home page Code Monkey logo

Comments (5)

systemcrash avatar systemcrash commented on June 5, 2024 2

@LewdNeko wonder whether we can update this. Have you tried master recently?

from airplay2-receiver.

TheSpookyCat avatar TheSpookyCat commented on June 5, 2024 1

Yes, this was actually how I did it the first time around. I had a lot of trouble encoding/decoding between bytes and string. For example, utf-8 won't work for the public key, you need utf-16. For the identifier, you need to use utf-8. For the permissions bit, I just forced a string conversion and reassembled with an if/else 😂

Base64 encoding would've been the smarter choice, and I'd be happy to PR this in. I will also include an override for the mDNS name, so that it is announced as configured by HomeKit.

E.g.

  1. Pair receiver to HomeKit
  2. Rename receiver in HomeKit
  3. mDNS name would match whatever it's configured as in HomeKit, if applicable.

from airplay2-receiver.

systemcrash avatar systemcrash commented on June 5, 2024

OK, I took a stab at this, and I'll hopefully have a PR coming soon.

from airplay2-receiver.

systemcrash avatar systemcrash commented on June 5, 2024

OK, what I have so far is viable. I've tested it with a number of different bit-flags. The extensive comments reveal that there are still a few bits missing. This motivates me to move the HK part to a different framework - like HAP-python. They've got some great code which means you can have multiple endpoints associated via HAP to control the speaker part. Currently, it's only one in this implementation.

Have a look at the differences here, or just go play with it, and see how it works for you.

from airplay2-receiver.

systemcrash avatar systemcrash commented on June 5, 2024

OK - pushed to master. If you want to fix 2 and 3, I welcome some attention to those bits. I've configure has nothing for more permanent storage.

from airplay2-receiver.

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.