Subsonic For ICS Android 4.0

General discussions.

Moderator: moderators

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Sat May 19, 2012 2:01 pm

JBDive wrote:OK I know I should be asleep and maybe that's why I am not getting this but where on earth are the settings menu? I'm on a Toshiba Thrive and stuck trying to get into inputting my server info. Had stock app running fine.


Top right, three dots. That should pop up the menu.. It's an ICS thing.
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby Maes » Sat May 19, 2012 2:06 pm

ttabbal wrote:
Maes wrote:
ttabbal wrote:Well... I managed to apply that patch... It loads up OK. Anyone want to test it with hardware? I don't think I have anything that can do it.


I have been using the android subsonic app on ICS in combination with a scala rider g9 headset for my motorcycle helmet. The 05-06-2012 build has very bad compatibility with the AVRCP protocol. The headset is able to stop the music on the app, but it can not make it play again. This is a problem because it means I have to stop on the side of the road to press the play button on my phone.
I have tested the setting with the app provided in the quoted post above and it works a little bit better but it's not perfect: The app is able to play music on the bluetooth play command and can even skip and rewind to next and previous songs, but can not make the music stop. This means that when I get a call on my headset the music will keep playing through it, it's very annoying.

Could anyone be so kind to release a version with the correct AVRCP code? It would be a tremendous help for me so I can happily listen to music on my bike :)


It's hard to say what would be "correct" here.. It seems various headsets use slightly different commands.. If I were to create a debug build, would you be able to test with your headset and provide a log? What buttons does your headset have for control? If you press play again, does it pause?


Thank you for your reply, I would be very happy to help you test these controls.
My headset has the ability to pause, play, skip forward and rewind music. \
The build I quoted in my last post is almost perfect, the headset is able to pause music as well as skip songs and rewind them, it's just the play command that's not working, if you would be able to fix this, we'd be all done!

I think it would be beneficial for you to know that when my headset STOPS the music on your build, the seeker goes back to the beginning of the song (so it's a stop rather than a pause, which is what i'd prefer, because the song would play all over again if you pressed play).

UPDATE: After some research it seems to me that the app is just listening to the wrong events given by ICS. I understand that google changed the bluetooth events in ICS so perhaps all you have to do is change the events the app listens to.
Maes
 
Posts: 16
Joined: Sat May 19, 2012 7:37 am

Re: Subsonic For ICS Android 4.0

Postby Maes » Sat May 19, 2012 2:37 pm

Small follow up on my last post:

If I choose to use the standard MP3-Player app every android phone has by default, all bluetooth controls work perfectly as they should, it is because of this I do not believe the headset is to blame.

Also I understand that all these bluetooth AVRCP devices have to follow a certain standard, so shouldn't they all use the same commands?
Maes
 
Posts: 16
Joined: Sat May 19, 2012 7:37 am

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Sat May 19, 2012 2:40 pm

Maes wrote:
I think it would be beneficial for you to know that when my headset STOPS the music on your build, the seeker goes back to the beginning of the song (so it's a stop rather than a pause, which is what i'd prefer, because the song would play all over again if you pressed play).

UPDATE: After some research it seems to me that the app is just listening to the wrong events given by ICS. I understand that google changed the bluetooth events in ICS so perhaps all you have to do is change the events the app listens to.



That version should be using the ICS events as well as the standard ones, so it should work with any version of Android. It should also have the patch that starts from the pause point rather than starting over. Just to get a baseline, this is the latest on my phone which is working great with the only headset I have, a Motorola S305. I'm on a Galaxy Nexus running AOKP b36 (4.0.4 based). I did remove the newer AVRCP stuff, but that should only affect sending metadata to a control device. Standard button controls are the same, well, should be the same. :D

I'll try to add some logging to the key events so I can see what your headset/ROM is sending to apps that are listening to the events.

Like most standards, there is always wiggle room, and the ROM could change things a bit as well, like Google did with ICS. I doubt it's the headset that's wrong, it's probably just that the key handling code is a little off and needs to be changed to be more compatible. It's finding out WHAT needs to be different that's the catch. There are probably docs for this stuff, but these groups like to charge a lot of money for them. So OSS guys like me can't afford them. And it could just be a bug. :D
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby Maes » Sat May 19, 2012 2:42 pm

Thanks for providing me with a test build this quick, I'm at work now but I'll be home in 2 hours and testing this app is the first thing I'll do.

You mentioned that you made this app log what my headset sends to it, where is this log saved so I can post it on this forum?
Maes
 
Posts: 16
Joined: Sat May 19, 2012 7:37 am

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Sat May 19, 2012 2:56 pm

Here's a logging version for the basic key info. If you have adb, you can use "adb logcat > log.txt" then use the keys. Crtl-C to stop it. If not, use an app called "catlog" in the market. You can filter on "AVRCP" to see just the events we care about. The app can send the logs out via email or save to files. You can post it here to email to me directly at "travis@tabbal.net". If you can, It would be nice if you can annotate the file with comments showing me what button you pushed, then the log statements it put out. Or feel free to do multipule posts. I know it's a little more time consuming, but it will help speed things up if I'm not guessing what events are produced from which button.

I double checked my headset with this build, everything works as I would expect. If it doesn't with yours, we need to find out why and get it fixed.
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Re: Subsonic For ICS Android 4.0

Postby Xious » Sat May 19, 2012 3:10 pm

Maes wrote:
ttabbal wrote:Well... I managed to apply that patch... It loads up OK. Anyone want to test it with hardware? I don't think I have anything that can do it.


I have been using the android subsonic app on ICS in combination with a scala rider g9 headset for my motorcycle helmet. The 05-06-2012 build has very bad compatibility with the AVRCP protocol. The headset is able to stop the music on the app, but it can not make it play again. This is a problem because it means I have to stop on the side of the road to press the play button on my phone.
I have tested the setting with the app provided in the quoted post above and it works a little bit better but it's not perfect: The app is able to play music on the bluetooth play command and can even skip and rewind to next and previous songs, but can not make the music stop. This means that when I get a call on my headset the music will keep playing through it, it's very annoying.

Could anyone be so kind to release a version with the correct AVRCP code? It would be a tremendous help for me so I can happily listen to music on my bike :)

I have the same issue with being able to pause but having trouble getting it to play again on my Galaxy Nexus. I have found that if I just turn on the screen, I can get it to play again. But if the screen remains off, it will not respond to the headset.

X
Xious
 
Posts: 2
Joined: Sun Mar 11, 2012 3:42 pm

Re: Re: Subsonic For ICS Android 4.0

Postby ttabbal » Sat May 19, 2012 3:17 pm

Xious,

Please use the latest build and send me the log.. Which rom and kernel? I which gnex?
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby Maes » Sat May 19, 2012 5:05 pm

ttabbal wrote:Here's a logging version for the basic key info. If you have adb, you can use "adb logcat > log.txt" then use the keys. Crtl-C to stop it. If not, use an app called "catlog" in the market. You can filter on "AVRCP" to see just the events we care about. The app can send the logs out via email or save to files. You can post it here to email to me directly at "travis@tabbal.net". If you can, It would be nice if you can annotate the file with comments showing me what button you pushed, then the log statements it put out. Or feel free to do multipule posts. I know it's a little more time consuming, but it will help speed things up if I'm not guessing what events are produced from which button.

I double checked my headset with this build, everything works as I would expect. If it doesn't with yours, we need to find out why and get it fixed.


I just got home and tried out the build. I couldn't get logcat to work it just keeps showing the loading icon endlessly. I did however fiddle around with the headset buttons and it works now. I was able to start the music with my headset and stop it, as well as skipping to the next / previous song. I kept testing it by turning it off and on and off and on again and a couple of times I was suddenly no longer able to start the music again unless I turned my phone on and unlocked it. Also on a few occasions when I stopped the music and started it again it would start on the next song instead of continuing where it left of. Although I realize that's not much information to go by I wouldn't ask you to improve any more because it seems to work 99.99% of the time. Bravo. And thanks for helping me get my headset to work properly! Now I can finally enjoy my own music on my motorcycle without having to get off to change the tune!
Maes
 
Posts: 16
Joined: Sat May 19, 2012 7:37 am

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Sun May 20, 2012 3:21 am

That's great news! Enjoy the tunes and ride safe.. :-)
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby oshogg » Tue May 22, 2012 8:48 am

I still have one problem with the latest build. When the bluetooth disconnects, I would like Subsonic to pause play automatically. And, when the bluetooth connects, Subsonic should automatically resume paused play. Is this expected to work in this build?

Note that my Bluetooh device doesn't send play/pause buttons on its own upon connection/disconnection (unfortunately).

Osho
oshogg
 
Posts: 33
Joined: Thu Nov 12, 2009 3:43 pm

Re: Subsonic For ICS Android 4.0

Postby ttabbal » Tue May 22, 2012 2:24 pm

oshogg wrote:I still have one problem with the latest build. When the bluetooth disconnects, I would like Subsonic to pause play automatically. And, when the bluetooth connects, Subsonic should automatically resume paused play. Is this expected to work in this build?

Note that my Bluetooh device doesn't send play/pause buttons on its own upon connection/disconnection (unfortunately).

Osho



No, it isn't set up for that. I use more than Subsonic with my headset so I wouldn't want that anyway. It could be made optional, but I don't know when I'll have time to look into it.
ttabbal
 
Posts: 33
Joined: Thu May 27, 2010 8:57 pm

Re: Subsonic For ICS Android 4.0

Postby oshogg » Tue May 22, 2012 11:59 pm

ttabbal wrote:
oshogg wrote:I still have one problem with the latest build. When the bluetooth disconnects, I would like Subsonic to pause play automatically. And, when the bluetooth connects, Subsonic should automatically resume paused play. Is this expected to work in this build?

Note that my Bluetooh device doesn't send play/pause buttons on its own upon connection/disconnection (unfortunately).

Osho



No, it isn't set up for that. I use more than Subsonic with my headset so I wouldn't want that anyway. It could be made optional, but I don't know when I'll have time to look into it.


Yes, it would be great to have an option for this. I use Subsonic exclusively on my phone for all my media. So, it would be awesome to be able to just have Subsonic play automatically when I start my car (which connects with Car's built-in bluetooth) or when I turn on the bluetooth headset.

Thanks,
Osho
oshogg
 
Posts: 33
Joined: Thu Nov 12, 2009 3:43 pm

Re: Subsonic For ICS Android 4.0

Postby archrival » Wed May 23, 2012 10:59 pm

Hey all. I have seen a few people have downloaded my builds from https://github.com/archrival/Subsonic-Android. I haven't seen any feedback either positive or negative and I'm curious if anyone has had a chance to use it enough to be able to provide any feedback?

I've noticed that multiple developers are maintaining their own branches, hopefully we can get some or all of these changes merged back into the main code. I know Sindre has said the Android client comes after the server so hopefully time has been saved.

Today I posted a change for ICS based devices without a menu button. I noticed some of you have mentioned the new ICS build doesn't allow you to go to Settings. I removed the "more" button and added a Help and Settings button, it saves a step and more closely follows the Android guidelines. Give the build posted on 5/23 a try and see how it works for you. I appreciate any feedback.
archrival
 
Posts: 173
Joined: Wed May 26, 2010 6:02 am

Re: Subsonic For ICS Android 4.0

Postby oshogg » Thu May 24, 2012 12:07 am

archrival wrote:I've noticed that multiple developers are maintaining their own branches, hopefully we can get some or all of these changes merged back into the main code. I know Sindre has said the Android client comes after the server so hopefully time has been saved.


Could someone quickly summarize what branches are there now and what they contain/does not contain. I have downloaded and tested one of the .apks attached to a post above but I do not recollect exactly which one. Knowing this information would help me/others make an educated decision as to which .apk to download and test?

Of course, it would be best if all of these could be integrated in one branch or the main branch.

Thanks,
Osho
oshogg
 
Posts: 33
Joined: Thu Nov 12, 2009 3:43 pm

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests