brookpatten / Mono.BlueZ

Wrappers & Classes for interfacing with bluetooth via BlueZ from Mono
MIT License
15 stars 12 forks source link

Media related interfaces A2DP #2

Open Ch4rg3r opened 8 years ago

Ch4rg3r commented 8 years ago

Added MediaEndpoint1 Added MediaTransport1 Added most A2Dp constants & properties

brookpatten commented 8 years ago

Looking good, do you have an example of using these? Like a demo app or something?

Ch4rg3r commented 8 years ago

Not yet. it's pretty hard to convert all of these from Bluez docs. I used simple-endpoint example from docs (python). But i'm stuck on implementation of Endpoint. In Python, they had created the class Endpoint, don't know why.

Basically, you need to get Bluez to work, and register the endpoint to the adapter with a new path like "/whatever/endpoint" or similar. Then it should work, as it will use the mediatransport for the stream.

Also i have no idea how to get connection to work. In this case, the App needs to wait for a Device to connect (no idea what i need of Bluez for that to work)

EDIT: Of course this is used for the app to react as a Sink, you can stream Audio to it. But the other way round works mostly the same, except for the waiting for a connection.

brookpatten commented 8 years ago

Cool. If possible I'd like to have a working example before merging the PR. I should have time to play with it some next week if you don't beat me to it.

Ch4rg3r commented 8 years ago

EDIT:

image http://www.lightofdawn.org/wiki/wiki.cgi/BluezA2DP

I implemented everything needed like explained in above linked text. Added test to console, not yet tried it.

Ch4rg3r commented 7 years ago

Cool. If possible I'd like to have a working example before merging the PR. I should have time to play with it some next week if you don't beat me to it.

So i added a test project a while ago, but never was able to test it really. Now it got my RPi3 and i will rewrite it to check for connection to the adapter and endpoints...