Skip to content
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

Media related interfaces A2DP #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Ch4rg3r
Copy link

@Ch4rg3r Ch4rg3r commented Apr 19, 2016

Added MediaEndpoint1
Added MediaTransport1
Added most A2Dp constants & properties

Ch4rg3r added 2 commits April 19, 2016 16:45
Media Interfaces for sink
Add A2DP properties
@Ch4rg3r Ch4rg3r mentioned this pull request Apr 19, 2016
@Ch4rg3r Ch4rg3r closed this Apr 19, 2016
@Ch4rg3r Ch4rg3r reopened this Apr 19, 2016
@brookpatten
Copy link
Owner

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

@Ch4rg3r
Copy link
Author

Ch4rg3r commented Apr 19, 2016

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
Copy link
Owner

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
Copy link
Author

Ch4rg3r commented Apr 20, 2016

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 added 6 commits April 20, 2016 14:05
enum -> static class with
Added Bluezutils -> converted from Python example
Fixes
Delete A2Dp.cs from Mono.DBus (duplicate)
Added testproject (not yet tested)
Added AudioSink & AudioSource interfaces
Fixes
@Ch4rg3r
Copy link
Author

Ch4rg3r commented Oct 18, 2017

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants