[DEV] Stop sound from official Radio, Mediaplayer, DAB, etc - MTCB Software Development

Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.

mumu02 said:
Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
Click to expand...
Click to collapse
Decompile stock apps and look inside.

mumu02 said:
Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
Click to expand...
Click to collapse
You should try and PM Booroondook. Below is a Google-translation of his post on this matter:
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
The developers originally wanted to make a device completely replaces the car's radio. Moreover, up to the most complete simulation interface to motorists who allegedly used to. In addition, radio conceived such that it immediately ( "out of the box") would perform all the functions inherent in the car radio. Therefore it developed a set of so-called "factory" of applications that simulate the function of "advanced" regular radio - "Radio", "a DVD", "Music", "Video", "Photos", "the iPod," "Handsfree Bluetooth". By this set has also been added to the navigation functionality - as Application- "starter" selected by the user of the navigation program.
More precisely, mutual exclusion - integration system has been created for these applications. You work, "Radio", you run the "Music" - "Radio" is turned off. Launched the "Video" - disconnected "Music." And so on. It has even invented a special function (called by the MODE key), switching these applications in a circle - by analogy with the head unit.
These applications (according to developers) would have to cover all the needs of the motorist. And the Android operating system was the basis of fashion or marketing reasons, or both.
All would be good, but the developers have not considered (or ignored) the fact that the Android OS allows you to install additional applications. These additional user-installed applications do not "fit in" with the original logic of the functional simulation regular radio.
We take your specific example. You factory application "Music" chose a third-party, the establishment of additional "Google Music" app. It is clear that it is your choice to which you are entitled. But the developer is not able to assume that you install this application - and therefore your "Google Music" is not involved in "switching system" applications and "dampens" the other application.
What's in this case? Either put up with such behavior (ie, do not forget to manually turn off the "Radio" before turning on the "Google-Music"), or you can use some tricks to automate this business - good Android OS lets you do things with the help of supporting applications and system modules.
Members of our branches also have repeatedly faced with problems similar to yours. Force enthusiasts have developed tools that optimize the behavior of third-party applications such as media players.
Do not be lazy, look at the cap, there is a lot of links. Note the module Car Audio Service, as well as a set of tools from a reputable MVG-V70.
.............................................
Link to original post
.............................................
Unfortunately he is not that active on XDA

If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");

mumu02 said:
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
Click to expand...
Click to collapse
Could you please elaborate? I'm having the same issue, however I want to apply this behaviour to already existent apps, eg. Google Play Music (to pause everything else when Google Music starts)... Does your solution apply to my case and how should I procceed? Thank you so much in advance!

sarruma said:
Could you please elaborate? I'm having the same issue, however I want to apply this behaviour to already existent apps, eg. Google Play Music (to pause everything else when Google Music starts)... Does your solution apply to my case and how should I procceed? Thank you so much in advance!
Click to expand...
Click to collapse
I think one solution is to write a very simple application with just the mentionend code Inside. Then use tasker, and when you launch Google Play Music ask him to launch the small program before.
I can build the small app for you if you want to try ?
For my media player it's not working 100%. I'm able to cut off the sound when I launch my app but when I want to launch again the stock radio , it dosen't actually stop my mediaplayer since I can't get any notification Inside my app from the stock app.

mumu02 said:
I think one solution is to write a very simple application with just the mentionend code Inside. Then use tasker, and when you launch Google Play Music ask him to launch the small program before.
I can build the small app for you if you want to try ?
For my media player it's not working 100%. I'm able to cut off the sound when I launch my app but when I want to launch again the stock radio , it dosen't actually stop my mediaplayer since I can't get any notification Inside my app from the stock app.
Click to expand...
Click to collapse
What do you mean that you cannot get any notification?
What I've been doing till now is create a custom app using tasker (with a plugin called App factory, since my knowledge in programming doesn't go so far) and in fact use the created app to force close the radio app before launching, in my case, Google Play Music. But then, when I launch the radio app (or even the Bluetooth app)again, Google Play Music stops... So every shortcut of my preferred music app or even the mode.ini I use for the Xposed module I need to cycle through hu modes using my swc is associated not with the actual app, but with one custom made to suit my needs. Of course is kind of a mess, but so far haven't found anything better and working... Could you suggest anything better? Do you believe that there's an easier way for my case? Thank you so much for your help..!?

sarruma said:
What do you mean that you cannot get any notification?
What I've been doing till now is create a custom app using tasker (with a plugin called App factory, since my knowledge in programming doesn't go so far) and in fact use the created app to force close the radio app before launching, in my case, Google Play Music. But then, when I launch the radio app (or even the Bluetooth app)again, Google Play Music stops... So every shortcut of my preferred music app or even the mode.ini I use for the Xposed module I need to cycle through hu modes using my swc is associated not with the actual app, but with one custom made to suit my needs. Of course is kind of a mess, but so far haven't found anything better and working... Could you suggest anything better? Do you believe that there's an easier way for my case? Thank you so much for your help..!
Click to expand...
Click to collapse
What I mean, there is no communication between stock app and let's say a regular android app. I mean, when you launch a stock app, there is no way (at least I didn't find it) for another regular app to know that you launch the stock one.
In fact what I want to do is that when I launch my media player it stoppes the Stock app (This goal is reached) but then when I launch again a stock app, it should stop my mediaplyer app (Actually it just put the sound done. To sumarize what I want is that each time I bring an app in fordeground it should stopp all other (Music player). In fact it's the case between the stock media player and the stock radio.
So I think so far we are both at the same place

mumu02 said:
What I mean, there is no communication between stock app and let's say a regular android app. I mean, when you launch a stock app, there is no way (at least I didn't find it) for another regular app to know that you launch the stock one.
In fact what I want to do is that when I launch my media player it stoppes the Stock app (This goal is reached) but then when I launch again a stock app, it should stop my mediaplyer app (Actually it just put the sound done. To sumarize what I want is that each time I bring an app in fordeground it should stopp all other (Music player). In fact it's the case between the stock media player and the stock radio.
So I think so far we are both at the same place
Click to expand...
Click to collapse
Yeah, no matter how much I have searched, I haven't found any better solution..! But I'll keep trying, this solution doesn't satisfy me and isn't at all instinctive... Any way, I'll let you know if I find anything else! Cheers... ???

I thought all this was sorted about 3 years ago when @agentdr8 developed his XposedMTC app ?

typos1 said:
I thought all this was sorted about 3 years ago when @agentdr8 developed his XposedMTC app ?
Click to expand...
Click to collapse
My work on XMTC ceased a while back, but what was posted above was correct at the time. The audio output was controlled by the MCU, and triggered via different AudioManager object parameters.
The problem is, all Android app-based audio is done via 1 MCU output (av_channel=sys IIRC). So anyone designing an app would have to determine what the current av_channel parameter is set to. The stock MTC apps do that sort of (they just assume the newly-launched app is taking over audio control, and switches the av_channel).

agentdr8 said:
My work on XMTC ceased a while back, but what was posted above was correct at the time. The audio output was controlled by the MCU, and triggered via different AudioManager object parameters.
The problem is, all Android app-based audio is done via 1 MCU output (av_channel=sys IIRC). So anyone designing an app would have to determine what the current av_channel parameter is set to. The stock MTC apps do that sort of (they just assume the newly-launched app is taking over audio control, and switches the av_channel).
Click to expand...
Click to collapse
That was pre @7floor audio mod which bypasses the MCU and gives Android control of the audio IC, I wonder how XposedMTC works with that ? Not heard any one say that I remember.

mumu02 said:
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
Click to expand...
Click to collapse
Does this code work as it is?
It is a java code isnt it?
You said it worked for you to cut the audio from stock apps, but inside there is the option to enable it as well? I don't understand?
I would like to stop dvd using this code in tasker. I assume I have to change dvr with dvd and remove this part : // Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
I am sorry but I dont unsterstand java.
A time ago I creaTed Modeswitch https://forum.xda-developers.com/an...t/app-modeswitch-spotify-swc-control-t3310966
An application to help with audio focus on our devices. I am now trying to optimize it to speed it up, and now allow it change the audio focus even if the mode circle didn't run ( that was a limitation of the releases until now)
I would appreciate your help

p_mike83 said:
Does this code work as it is?
It is a java code isnt it?
You said it worked for you to cut the audio from stock apps, but inside there is the option to enable it as well? I don't understand?
I would like to stop dvd using this code in tasker. I assume I have to change dvr with dvd and remove this part : // Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
I am sorry but I dont unsterstand java.
A time ago I creaTed Modeswitch https://forum.xda-developers.com/an...t/app-modeswitch-spotify-swc-control-t3310966
An application to help with audio focus on our devices. I am now trying to optimize it to speed it up, and now allow it change the audio focus even if the mode circle didn't run ( that was a limitation of the releases until now)
I would appreciate your help
Click to expand...
Click to collapse
Wouldnt it be easier to go into factory settings and uncheck "DVD" ? That would remove the DVD from the circle entirely.

typos1 said:
Wouldnt it be easier to go into factory settings and uncheck "DVD" ? That would remove the DVD from the circle entirely.
Click to expand...
Click to collapse
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !?

p_mike83 said:
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !?
Click to expand...
Click to collapse
Right, I thought this was sorted by @agentdr8 3 years ago with MTCXposed.

typos1 said:
Right, I thought this was sorted by @agentdr8 3 years ago with MTCXposed.
Click to expand...
Click to collapse
p_mike83 said:
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !
Click to expand...
Click to collapse
It was something I tried to address with XMTC and had moderate success with. Unfortunately that code has aged beyond the current ROM releases, and I didn't have time to keep it up to date.
In order to catch all launches of audio-outputting apps, you'd need an Xposed module to hook into either the current Launcher process to know when apps are opened, or into the system ActivityManager. From there, you could interrogate the AudioManager instance and get/set parameters to flip audio sources. It was something I was looking into for XMTC, but never made any progress.
EDIT: Not sure if you've tried adding in this to switch away from the dvd source and back to the Android source:
Java:
am.setParameters("av_channel_exit=dvd");
am.setParameters("av_channel_enter=sys");
Also, I don't think any of this would matter if the @7floor mod was done. Everything should be piped into the standard Android audio streams at that point.

agentdr8 said:
It was something I tried to address with XMTC and had moderate success with. Unfortunately that code has aged beyond the current ROM releases, and I didn't have time to keep it up to date.
In order to catch all launches of audio-outputting apps, you'd need an Xposed module to hook into either the current Launcher process to know when apps are opened, or into the system ActivityManager. From there, you could interrogate the AudioManager instance and get/set parameters to flip audio sources. It was something I was looking into for XMTC, but never made any progress.
EDIT: Not sure if you've tried adding in this to switch away from the dvd source and back to the Android source:
Java:
am.setParameters("av_channel_exit=dvd");
am.setParameters("av_channel_enter=sys");
Also, I don't think any of this would matter if the @7floor mod was done. Everything should be piped into the standard Android audio streams at that point.
Click to expand...
Click to collapse
Oh, I thought that XposedMTC was still THE way to stop 2 sources from playing at the same time and to add extra sources into the src button (I use the built in apps myself so dont use XMTC for that)>

typos1 said:
Oh, I thought that XposedMTC was still THE way to stop 2 sources from playing at the same time and to add extra sources into the src button (I use the built in apps myself so dont used XMTC for that)>
Click to expand...
Click to collapse
Thanks! I came along this as I was trying to find the answer. (You have to remove "this" from the code). But anyway I already found an other work around ?. So time for testing my app. The first tests were successful!?

Related

Streaming audio, using ORB, alternatives....

Simple problem. I have several thousand mp3s at home and want to stream them to my phone so that I have all my songs regardless of my location. Even an 8GB MicroSDHC card will not hold all the songs, so streaming is the next best alternative.
I've tried using ORB, and it's a great idea, but the interface through PIE leaves much to be desired. It's difficult to drive around and click the little links, even on large font. Also there is no easy way to queue songs up without making a playlist prior.
Are there any alternatives to ORB that have a better front-end? It'd be nice to have a touch-friendly scrolling type of "catalog" of my songs, and then stream/queue them when I select them. Doesn't seem so hard.
I even tried creating a home web page with IIS, and that worked to a point, but there's got to be something better.
Thanks!
cpujunky said:
Simple problem. I have several thousand mp3s at home and want to stream them to my phone so that I have all my songs regardless of my location. Even an 8GB MicroSDHC card will not hold all the songs, so streaming is the next best alternative.
I've tried using ORB, and it's a great idea, but the interface through PIE leaves much to be desired. It's difficult to drive around and click the little links, even on large font. Also there is no easy way to queue songs up without making a playlist prior.
Are there any alternatives to ORB that have a better front-end? It'd be nice to have a touch-friendly scrolling type of "catalog" of my songs, and then stream/queue them when I select them. Doesn't seem so hard.
I even tried creating a home web page with IIS, and that worked to a point, but there's got to be something better.
Thanks!
Click to expand...
Click to collapse
I read in one of the other threads that SanDisk has announced a 12GB micro SD available this summer and they speculate that it may be a 16GB by the time it comes out.
I agree 100%...I love ORB but it is way too difficult to navigate.
They really have it all down except the few things you mentioned
Anyone else??
SelectRadio 4.0.2 ?
This prog has such an option, and I do use the program but have not tried it out for that so I do not know how well it works.
Lobster Tunes will do it for you. It's not free, though.
http://lobstertunes.com
Lobster looks pretty cool. I'm going to check it out and see if it offers a better experience than what I currently use (Andromeda - http://www.turnstyle.com/andromeda/home.asp).
sputnik said:
Lobster looks pretty cool. I'm going to check it out and see if it offers a better experience than what I currently use (Andromeda - http://www.turnstyle.com/andromeda/home.asp).
Click to expand...
Click to collapse
What do you find bad about Andromeda? I was thinking about giving it a try...
Here is one I have been wondering about. What software can you use to stream your local radio stations to your phone? I know about tuned.mobi and such, but the problem is that when a game comes on, they usually block the broadcast of the audio stream even though it is playing on the local AM radio station. I want to be able to broadcast my local radio stations (AM and FM) to my phone so I can still get the games.
I wonder if someone could not write a program that integrates everything available through orb into you wmp library i.e. some sort of plugin maybee we could put together a donation pot to get one of the dev's to work on the project
djlenoir said:
Here is one I have been wondering about. What software can you use to stream your local radio stations to your phone? I know about tuned.mobi and such, but the problem is that when a game comes on, they usually block the broadcast of the audio stream even though it is playing on the local AM radio station. I want to be able to broadcast my local radio stations (AM and FM) to my phone so I can still get the games.
Click to expand...
Click to collapse
you cant...if it isnt streamed, it cant be made out of thin air. get a radio.
dtrell said:
you cant...if it isnt streamed, it cant be made out of thin air. get a radio.
Click to expand...
Click to collapse
lol, I have a radio...multiple radios. I think you may have misunderstood me. If I got something like this device would I be able to stream it to my phone? I travel... when I am in another state, I can not stream my local radio station broadcasts through the internet to listen to games (blacked out). However, they are playing on the radio station if I were at home and able listen to my radio.
well I think I finally found my cream of the crop... saw this thread and I have to say, andromeda is the BEST solution I've found for getting my music to my PPC...
it works very well with PIE and is very zippy zippy zippy...
I've tried:
1) lobstertunes - buggy, slow, doesn't work with all ROMs
2) gnump3d - buggy perl script, cool features but crashes a lot
3) orb - as you all have stated, interface sucks in PIE and too hard to navigate
4) andromeda - FAST, stable, and CLEAN... worth every penny of the $20 lol
I like the interface of Andromeda the best, not to mention it's speed. Although you can create a playlist, you still can't just "queue" one up...unless I'm missing something.
Took me some tweaks to get it to work too. Have to rename the asp to m3u and make it executable on the server. I also had to use a third party player.
What player are you using? Also, when I click on a file to stream, it always asks me if I want to overwrite the existing m3u. I say yes and it works fine, but ya know
cpujunky said:
Took me some tweaks to get it to work too. Have to rename the asp to m3u and make it executable on the server. I also had to use a third party player.
What player are you using? Also, when I click on a file to stream, it always asks me if I want to overwrite the existing m3u. I say yes and it works fine, but ya know
Click to expand...
Click to collapse
Yup gotta do a few tweaks but it ends up workin'... yes same thing with overwiting the file but that's typical... I use TCPMP and it works flawlessly.
Zenoran said:
well I think I finally found my cream of the crop... saw this thread and I have to say, andromeda is the BEST solution I've found for getting my music to my PPC...
it works very well with PIE and is very zippy zippy zippy...
I've tried:
1) lobstertunes - buggy, slow, doesn't work with all ROMs
2) gnump3d - buggy perl script, cool features but crashes a lot
3) orb - as you all have stated, interface sucks in PIE and too hard to navigate
4) andromeda - FAST, stable, and CLEAN... worth every penny of the $20 lol
Click to expand...
Click to collapse
I like both mundu and resco radio, but they are streaming only. I may try andromeda, PM me with details please.
Do you have a mac?
I'm not sure this would work for you, but it's something that I'm going to try once the needed adapter comes in.
I feel slingbox works really well on my phone and I use it to stream live TV. For my media files I'm planning on using my mac mini which has an IR sensor for the remote and Front Row. The front row interface is very similar to the interface on an ipod and the commands are supposedly supported by slingbox. Once I get the adapter for vga-svideo I will set it up. The only downside I can think of is that audio when watching TV doesn't come over in good quality unless I have it in audio only mode, but this might not be a problem with Front Row where there will be very little visual data transmitted for audio files.
The reason a mac mini is nice is that it has a built in IR sensor. This bet this will work with windows media center too if you have something to control it with IR. Another potential downside is that the computer pretty much needs to be dedicated to working as a media server lest you forget to put it back into media mode.

Beaming to the Q - A Simpler Way to Launch Apps

So you've got a Q, and you've learned how to adb install apps to it... maybe even put a launcher on. But if you've got an NFC capable phone/tablet, you need not mess around with a launcher: your device will be your launcher.
As most of you probably know, the Q ships with a fully capable NFC radio. But for whatever reason, google only ever gave it one official function... beaming out a link the the Q App in the Play Store. Even if you already have it installed. They could have just as easily used a tag to do that job. But I've discovered that if you're running a sideloaded app, the Q will beam that app to your phone. Clearly, we're dealing with a fully beam-compatible device.
However, the Q is programmed to automatically push it's beam out when it finds a device that can receive it. To overcome this, you must open settings (either via a launcher or via adb shell, this is well-documented) and go to the "more" menu. Turn Android Beam OFF while leaving NFC on. This allows the Q to still read your incoming beams (they act just like tags, for compatibility) but it stop apps from opening unexpectedly on your phone.
Once you've done that, you can open any app installed on your Q simply by opening it on your phone/tablet and beaming it over. You'll still need a mouse or keyboard to navigate, but you won't have to futz around with getting to the launcher. This is working on my unrooted Q.
(I don't think this has been discussed before. I hope someone finds it useful!)
Thanks for the info, I was actually wondering whether this was available on the stock firmware. When you say you still need to launch/control with OTG, do things like Youtube links not autoplay when Beamed?
dragon788 said:
Thanks for the info, I was actually wondering whether this was available on the stock firmware. When you say you still need to launch/control with OTG, do things like Youtube links not autoplay when Beamed?
Click to expand...
Click to collapse
This basically opens the app like an android app on the Q. To click on things you need a mouse and an otg cable.
dragon788 said:
Thanks for the info, I was actually wondering whether this was available on the stock firmware. When you say you still need to launch/control with OTG, do things like Youtube links not autoplay when Beamed?
Click to expand...
Click to collapse
Animal24 has it right. And yes, it's available stock and unrooted. If you send a video to the Q, it will still work. However, when the video stops, it will return to the open app, not the standard home screen. If I recall correctly, music will play in the background if an app is open, and the lights will not dance.
That all said, I haven't used the Q since the new music lauched. :/
infeKtion said:
Animal24 has it right. And yes, it's available stock and unrooted. If you send a video to the Q, it will still work. However, when the video stops, it will return to the open app, not the standard home screen. If I recall correctly, music will play in the background if an app is open, and the lights will not dance.
That all said, I haven't used the Q since the new music lauched. :/
Click to expand...
Click to collapse
With CM10.1 and XBMC, I'm planning on using the Q to replace my Revue. I'm all OTA so I don't have a cablebox for the Revue to interface with, and with Aptoide I'm going to see if I can get the new Primetime working on the Q for finding and watching shows from Netflix/etc. Hopefully some year Primetime will do generic Amazon links instead of the GoogleTV apps. I'm using the new Play Music on my Q and using my phone as a remote. I've discovered that I can't seem to beam from the new Play Music to another device, or at least when I do it won't autoplay.
dragon788 said:
I'm using the new Play Music on my Q and using my phone as a remote. I've discovered that I can't seem to beam from the new Play Music to another device, or at least when I do it won't autoplay.
Click to expand...
Click to collapse
How are you doing this? ATM, I'm using BubbleUpNp from both sides, Q and phone. This allows me to still use Google Music as well as All Access. If there is a way to get the stock aplication to work in any way, please share
FadedLite said:
How are you doing this? ATM, I'm using BubbleUpNp from both sides, Q and phone. This allows me to still use Google Music as well as All Access. If there is a way to get the stock aplication to work in any way, please share
Click to expand...
Click to collapse
Hi FadedLite,
I'm using DroidMote to use my phone as a remote to the Nexus Q. I also use ShareKM, another fantastic option that lets me mouse "over" to my Nexus Q from my laptop and control the cursor with my laptop's mouse. One thing I need to figure out is a way to trigger DroidMote Server and ShareKM to start listening on boot, otherwise I have to use my OTG plugged mouse to open the programs and start them up once.
To use Google Music with All Access on the Q, as I stated I'm running CM 10.1 and they have a Gapps package that gives you the Play Store and Play Framework, so you can install Google Play Music and Movies & TV, etc.

BubbleUPnP great on Q!

Hi,
I recently installed Cyanogenmod 10 on my Q.
The install process was quite smooth. (see the Q developer forums for tutorials)
I chose the ROM with the amp support as I have two nice Bose speakers collecting dust.
Well no longer. The Q is now my main music device in my living room.
First, I was very excited about the Cheapcast app (quite a bit of stir about that here on the forums).
I could easily cast my music from my phone or tablet via Google Music. Worked fine, for a while.
Cheapcast, however, is nog very stable for streaming music. Hiccups, slow, connection loss.... I had to reboot the Q a lot.
I then tried Bubble UPnP (installed on Q, some minor config) combined with Cast To UPnP/DLNA for GMusic installed on your phone or tablet. This setup rocks and has been serving me music for the past couple of weeks.
You can try these apps for free, but there are time limits per session. Buying is well worth it.
I still preferred the original Q with the social streaming thing. But my current setup comes close: it's stable and easy. Somewhat slow in responding to actions like skip track, but it'll do.
If you have 5$ to spend on apps, give this a go. You won't be sorry.
Can you post the configuration for BubbleUPnP? I can't get the cast gmusic app to see my bubbleUPnP renderer.
Some settings
coolacid217 said:
Can you post the configuration for BubbleUPnP? I can't get the cast gmusic app to see my bubbleUPnP renderer.
Click to expand...
Click to collapse
Hi there, here's a few settings. I don't remember which ones are default and which ones I changed:
Local renderer
- enable
- allow remote control
Local media server
- enable
- advertise on lan
- allow remote clients: all clients
Cloud content
- google music: enable
- select account: none
Control:
- kill on inactivity: never
- start on boot
- volume keys
- media keys
- lockscreen controls
I do remember having to reboot te Q to make certain settings stick.
Hope this helps, regards,
eddib
Thank you! That did the trick.
Now also from the browser
You can now also cast directly from your Chrome browser with the Google Cast extension.
My Q started showing up recently.
eddib said:
You can now also cast directly from your Chrome browser with the Google Cast extension.
My Q started showing up recently.
Click to expand...
Click to collapse
I just wanted to pop in and thank you for this thread! I bought a Q from eBay a couple months back, and after setting up CM10, BubbleUPnP was the next thing I installed. It works great! While there have been changes with the most recent Google Play Music that prevents some capabilities, everything else works flawlessly. BubbleUPnP really does make the Q a serious streaming device again. Cheers!
Google being Google
Scuba Jeremy said:
While there have been changes with the most recent Google Play Music that prevents some capabilities, everything else works flawlessly. BubbleUPnP really does make the Q a serious streaming device again. Cheers!
Click to expand...
Click to collapse
Yep, Google seems to have locked down some functionality. You can still cast, but the receiving end has been secured with encrypted keys.
Cheapcast no longer works. I guess they want money for licenses.
Nor does casting to BubbleUPnP on your Q from the Google Music App (with Cast To UPnP/DLNA for GMusic; the app's gone from the App store btw).
I now cast music via the BubbleUPnP app to the Q, so not really using the Google Cast protocol, but the actual UPnP.
The interface for browsing music on you phone via BubbleUPnP is far from perfect, but it still gets the job done.
To use this, you need to add your Google Music library in BubbleUPnP.
If anyone finds another way to keep using the Google Music app to control the casting to the Q with BubbleUPnP, please let us know here.
I think it might be possible to use the Google Music App as a controller for BubbleUPnP, not sure though.
Hey guys,
just a quick message to let you know that the BubbleUpnp app has gotten some great updates recently and is now much cleaner and more responsive.
Also I found that CM 10.2 (from here in the forums) works best for this setup. It allows for the Q to run without screen or mouse attached, with BubbleUpnp running in the background. Other CM versions I've tested all needed the BubbleUpnp app to run in the foreground (thus needing screen and mouse).
I made a quick write-up for installation and added all files to my Google Drive, get it here
If this can be done with free apps, please reply here.
... now I need to find how to get the LED rings to do something
Does BubbleUpnp automatically load when the Q boots up? Also, if you could get the LED ring working again, you would be the hero of this sub forum
dts924s said:
Does BubbleUpnp automatically load when the Q boots up? Also, if you could get the LED ring working again, you would be the hero of this sub forum
Click to expand...
Click to collapse
Yes, you can configure the upnp app to start on boot.
For the led, there is an interesting thread here somewhere that discusses getting led functionality back. It should be possible to make this into an app.
i just got started learning Android dev, so for now, this is a bit out of my league.
eddib said:
Yes, you can configure the upnp app to start on boot.
For the led, there is an interesting thread here somewhere that discusses getting led functionality back. It should be possible to make this into an app.
i just got started learning Android dev, so for now, this is a bit out of my league.
Click to expand...
Click to collapse
Is there some setting in BubbleUPNP I'm missing? I still don't see the Nexus Q when I try to cast Google Play Music.

Spotify app?

What I would like to have is a nice Spotify app for the Gear Fit.
The media manager doesnt show which song is playing etc. It works for the songs played from the media player on the phone ofc but not as well with Spotify.
What i would like to be able to do:
Chose Playlist
Add songs to favourites / other playlists
See an icon with the artist like on spotify (maybe as background for the app/clock while music is playing?)
(Being able to search for music maybe isnt needed , it would be to bothersome, better pick up the phone)
Also i have a qustion about the built in memory in the Gear Fit , would it be possible to create an app which would make it possible to use the watch as a standalone medie device? like if youre going to work and dont want to bring your phone with you.
Ex: Download a spotify playlist and play it from the watch directly to bluetooth speakers or something
The real question would be how much memory the Gear Fit has , and if we can access it.
Best Regards / Christoffer
P.S If you are experienced in programming these apps, please be so kind a send me a mail , would like to learn how to make my own apps for this watch and maybe could be of help if needed Do have earlier programming experience, third year computer science engineer.
Khenrix said:
What I would like to have is a nice Spotify app for the Gear Fit.
The media manager doesnt show which song is playing etc. It works for the songs played from the media player on the phone ofc but not as well with Spotify.
What i would like to be able to do:
Chose Playlist
Add songs to favourites / other playlists
See an icon with the artist like on spotify (maybe as background for the app/clock while music is playing?)
(Being able to search for music maybe isnt needed , it would be to bothersome, better pick up the phone)
Also i have a qustion about the built in memory in the Gear Fit , would it be possible to create an app which would make it possible to use the watch as a standalone medie device? like if youre going to work and dont want to bring your phone with you.
Ex: Download a spotify playlist and play it from the watch directly to bluetooth speakers or something
The real question would be how much memory the Gear Fit has , and if we can access it.
Best Regards / Christoffer
P.S If you are experienced in programming these apps, please be so kind a send me a mail , would like to learn how to make my own apps for this watch and maybe could be of help if needed Do have earlier programming experience, third year computer science engineer.
Click to expand...
Click to collapse
Hi there,
I am currently working on a spotify app for gear fit
Great,
i would love to test it when you´re finished with developing.
Thanks
Gamma91 said:
Hi there,
I am currently working on a spotify app for gear fit
Click to expand...
Click to collapse
i would love to test it for you!
I could also help with the testing!
another tester here.
I would spend you a beer if it works ?
Sent from my german Oneplus One using XDA
Spotify app
How Inzanley great it would be if someone made a stand-alone for Tizen. Anyone have any news on this?
Any progress on this?
Gamma91 said:
Hi there,
I am currently working on a spotify app for gear fit
Click to expand...
Click to collapse
This is fairly much the only thing that i feel is missing from my gear fit. I would be willing to help out if you need or send you some cash to help finish it.

Need Help with PX6 Android Head Unit WheelKey Study App.

Hello, I have just bought a PX6 Android Headunit for the car. so far it has been pretty easy to install, and modify. The problem I have run into, is modifying the Steering wheels buttons. The Headunit uses a pre-installed app called WheelKey Study V1.0. The app actually works perfectly as intended and have wide range of options for the button layout, what I am missing is a option to modify the mode button hotkey scrolling through the apps when pushing mode once, it cycles through a pre chosen list of apps, and I cannot add third party apps like Spotify or youtube or remove some I don't need like the pre-installed Music or video. If anyone here has some advice on how to open the coding of the app and change the list of apps bound to the wheelkey study it would be very welcome.

Categories

Resources