Hi,
I bought an A2DP Headset Sony Ericsson DS-970 and wanted to listen to my music with the HTC S620 ( WM6 ).
But i noticed that the sound was poor, with somes sizzlings...
At first, i thought that i bought a fake headset xD
But when i tried my headset with other phones's friends, the sound was really better, clear!
So i searched on the web and found some tricks in order to improve at the maximum the quality audio and it works WELL !!
At first you need a registry editor like Resco Registry or PHM Registry Editor ( free )
Then move to :
HKLM_LOCAL_MACHINE/Software/Microsoft/Bluetooth/A2DP/Settings
- Verify if the following Dword key is at '1' :
Name = UseJointStereo
Value = 1 ( Decimal )
- Delete those following keys :
- BitPool
- SupportedBitPool
- Finally, create/modify the following Dword key:
Name = SampleRate
Value = 48000 ( Decimal )
Enjoy the new sound produced: clear, powerfull !!
Going to try this and get back to you. Have to charge my headset.
EDIT: Didn't notice a difference.
UseJointStereo=0
For that ultimate stereo sounds, UseJointStereo should be =0 not=1, 1 will give you {mono} sounds. This is a old hack, new to some people, Check it out in post # 25, http://forum.xda-developers.com/showthread.php?t=324211&page=3 Now to take your ultimate stereo sounds to another level, you will need to still install the {"SRS"} surround sound SRS_WOW_HD_v1_28_5_0_ENG_RUS_WM5_WM6.zip for the download and complete details see my thread {"SRS"} WOW XT High Definition Sound Live On Your Dash/Excalibur, just install to the main memory, no registry edits required, works as advertised, yeah..........!
I have a bluetooth car stereo (and am able to stream music over it). The settings on the site below are what I use... and it sounds A LOT better...
This is the site I got my settings from:
http://www.htcwiki.com/page/Tweaks+and+Hacks?t=anon
Hey,
i cant run 1080p Videos on my Amazon Fire TV with xbmc. It constantly rebuffers and keeps lagging/stuttering.
I tried changing some things with the advancedsettings.xml but it didn't work out.
I'm using the Kodi 14.0 Helix Alpha 4 but I also tried Gotham and SPMC - Always the same problem with 1080p files.
I dont know what I can do to fix this.
Maybe someone has the same Problem and got some idea?
thanks in advance
Macfelix
WiFi?
Macfelix said:
Hey,
i cant run 1080p Videos on my Amazon Fire TV with xbmc. It constantly rebuffers and keeps lagging/stuttering.
I tried changing some things with the advancedsettings.xml but it didn't work out.
I'm using the Kodi 14.0 Helix Alpha 4 but I also tried Gotham and SPMC - Always the same problem with 1080p files.
I dont know what I can do to fix this.
Maybe someone has the same Problem and got some idea?
thanks in advance
Macfelix
Click to expand...
Click to collapse
What did you try in the advanced settings file? Did you try the <network> commands?
for example:
<network>
<cachemembuffersize>20971520</cachemembuffersize> <!-- number of bytes used for buffering streams ahead in memory
{{subst:Name}} will not buffer ahead more than this. WARNING: for the bytes set here, {{subst:Name}} will consume 3x the amount of RAM
When set to 0 the cache will be written to disk instead of RAM, as of v12 Frodo -->
<buffermode>0</buffermode> <!-- Choose what to buffer:
0) Buffer all internet filesystems (like "2" but additionally also ftp, webdav, etc.) (default)
1) Buffer all filesystems (including local)
2) Only buffer true internet filesystems (streams) (http, etc.)
3) No buffer -->
<readbufferfactor>1.0</readbufferfactor> <!-- this factor determines the max readrate in terms of readbufferfactor * avg bitrate of a video file.
This can help on bad connections to keep the cache filled. It will also greatly speed up buffering. Default value 1.0. -->
</network>
If ou google up on xbmc video buffering lots of info on this.
ashmanmb said:
What did you try in the advanced settings file? Did you try the <network> commands?
for example:
<network>
<cachemembuffersize>20971520</cachemembuffersize> <!-- number of bytes used for buffering streams ahead in memory
{{subst:Name}} will not buffer ahead more than this. WARNING: for the bytes set here, {{subst:Name}} will consume 3x the amount of RAM
When set to 0 the cache will be written to disk instead of RAM, as of v12 Frodo -->
<buffermode>0</buffermode> <!-- Choose what to buffer:
0) Buffer all internet filesystems (like "2" but additionally also ftp, webdav, etc.) (default)
1) Buffer all filesystems (including local)
2) Only buffer true internet filesystems (streams) (http, etc.)
3) No buffer -->
<readbufferfactor>1.0</readbufferfactor> <!-- this factor determines the max readrate in terms of readbufferfactor * avg bitrate of a video file.
This can help on bad connections to keep the cache filled. It will also greatly speed up buffering. Default value 1.0. -->
</network>
If ou google up on xbmc video buffering lots of info on this.
Click to expand...
Click to collapse
I am sorry do we just copy and paste this into a notepad file or do ew takeout some things?
XBMC sideloaded and trying to play a 10 GB MKV (1080p + DTS) which stutters very much.
Same MKV reduced to 5 minutes playback, but same codecs, resolution, audio. Only difference is the size: 200MB. This one plays very smooth.
USB 3.0 plugged into my router and FT connected directly to my router.
Anyone who knows what the problem is?
(Netflix 1080p does play smooth, though.)
Mitsjke said:
XBMC sideloaded and trying to play a 10 GB MKV (1080p + DTS) which stutters very much.
Same MKV reduced to 5 minutes playback, but same codecs, resolution, audio. Only difference is the size: 200MB. This one plays very smooth.
USB 3.0 plugged into my router and FT connected directly to my router.
Anyone who knows what the problem is?
(Netflix 1080p does play smooth, though.)
Click to expand...
Click to collapse
on a fireTV? did you disable mediacodec and enable libstagefright?
are you pulling up the codec info overlay and making sure its not buffering the video at all?
nhumber said:
on a fireTV? did you disable mediacodec and enable libstagefright?
are you pulling up the codec info overlay and making sure its not buffering the video at all?
Click to expand...
Click to collapse
All I can see is this (very high CPU usage):
D(Audio: dts (DTS) 48000 Hz, 5.1 (side), fttp, 1536 kb/s)
p (aq: 99%, Kb/s: 1481.05, att:0.0dB)
D(Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1, DAR 24:13])
P(fr23.976, vq99%, dc:ff-h264, Mb/s: 13.42, drop: 30, skip: 7, pc: none)
c( ad: 0.000, a/v-0.021, di- dpcu: 0%, acpu: 0%, vcpu: 0%, cache: 75.95MB, 100%)
W (fps: 24.04fps CPU0: 100%, CPU1: 94%, CPU2: 92%, CPU3: 91%)
-------------------------
Hardware decoding enabled. Libstagefrigh on, mediacodec off.
Mitsjke said:
All I can see is this (very high CPU usage):
D(Audio: dts (DTS) 48000 Hz, 5.1 (side), fttp, 1536 kb/s)
p (aq: 99%, Kb/s: 1481.05, att:0.0dB)
D(Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1, DAR 24:13])
P(fr23.976, vq99%, dc:ff-h264, Mb/s: 13.42, drop: 30, skip: 7, pc: none)
c( ad: 0.000, a/v-0.021, di- dpcu: 0%, acpu: 0%, vcpu: 0%, cache: 75.95MB, 100%)
W (fps: 24.04fps CPU0: 100%, CPU1: 94%, CPU2: 92%, CPU3: 91%)
-------------------------
Hardware decoding enabled. Libstagefrigh on, mediacodec off.
Click to expand...
Click to collapse
You could try this: http://kodi.wiki/view/HOW-TO:Modify_the_video_cache.
Mitsjke said:
XBMC sideloaded and trying to play a 10 GB MKV (1080p + DTS) which stutters very much.
Same MKV reduced to 5 minutes playback, but same codecs, resolution, audio. Only difference is the size: 200MB. This one plays very smooth.
USB 3.0 plugged into my router and FT connected directly to my router.
Anyone who knows what the problem is?
(Netflix 1080p does play smooth, though.)
Click to expand...
Click to collapse
Is the video trying to play with XBMC (Kodi's) internal player? Is the video streaming via a url, a connected network or from external/internal storage?
Try (if possible) playing the video from a 3rd party app (i.e. BS Player, MX Player etc) & see if it still stutters.
I've had similar issues when trying to stream via url but if I download the video & play it in MX Player, there's no stutter.
EL TEJANO said:
Is the video trying to play with XBMC (Kodi's) internal player? Is the video streaming via a url, a connected network or from external/internal storage?
Try (if possible) playing the video from a 3rd party app (i.e. BS Player, MX Player etc) & see if it still stutters.
I've had similar issues when trying to stream via url but if I download the video & play it in MX Player, there's no stutter.
Click to expand...
Click to collapse
Mine stuttered like this and the hardware acceleration fix above did the trick. Now the issue I have is with buffering. I'm on the Fire TV Stick, so I can't connect it directly. Videos often have to buffer several times. I have an older HTPC streaming wirelessly right next to my Fire TV Stick without the issue so I know it's not the router.
<advancedsettings>
<network>
<buffermode>1</buffermode>
<cachemembuffersize>157286400</cachemembuffersize>
<readbufferfactor>20</readbufferfactor>
</network>
</advancedsettings>
Worked for me! For one mystery reason it activated my hardware decoding
Before hardware decoding was activated but playback forced software decoding. Weird, but thnx!
This thread is for discussing idea and methods that can be used to allow media playback to resume playback where it left off after unit comes back out of sleep - especially when music is stored on SD card or using online music services.
While setting up my Eonon MTCE unit "on the bench", I quickly found that something as simple as resuming music playback from where it left off before entering sleep mode wasn't "automatic" - especially when your music is stored on an SD card (which Android automatically checks for errors every time the unit comes out of sleep mode) - or if using online media.
Here is how I accomplished this by using Tasker (and the AutoNotification plugin).
My problem was this... I am using the app Car Launcher Pro - and plan to stay at the Car Launcher Pro screen most of the time (provides nice big clock, date, weather, album art, etc). Car Laucher Pro allows you to change media players and skip songs right from it's screen, so most of the time, I have no need to ever leave my "launcher" screen - regardless of what app I'm using for media playback. I wanted to be able to have the unit continue the song that it was last playing when it went into sleep mode - whether that be through my local media player app (PowerAmp in my case) or an online service (Pandora or Spotify in my case). This turned out to be a lot harder that I expected. With most apps, if you attempt to resume playback too soon (before the SD card is mounted or before you are back online), playback will fail, which is why I set things up to wait for the SD card to be mounted (or wifi to become available for online music services) before attempting to resume playback. Using this method allows me to resume right where I left off when the unit was shutdown - all automatically (I also use Tasker to automatically put my phone into hotspot mode when it sees the radio bluetooth). So far, it works perfectly. Although, there are probably dozens of ways to do this - all slightly different depending on your exact setup. This is just the way *I* did things for my setup...
So here is the screen that I normally see - my "launcher" (Car Launcher Pro):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
By pressing the button in the lower-left-hand corner, I can select what media player i want to use - and can skip songs using the on-screen music controls or my steering-wheel controls. Like I said, regardless of what I had playing when I shut the car off, I wanted it to just pick up where it left off when I restarted the car (without the song starting over). In order to do this, I found that I had to pause the player before the unit went to sleep and then resume playback when the unit came out of sleep. If playing music from SD card, I had to make sure the SD card was available before resuming playing and if listening to an online music service, I had to wait until wifi was reconnected before resuming playback. I was able to do all of this using Tasker and the AutoNotification plugin (auto-notification plugin was needed to determine what media player was active so I knew wheher I had to wait for the SD card to be available or the wifi to be reconnected before resuming playback).
Here is my entire Tasker setup for this (note also that when I run one media playback app, I also kill the other media players so that only one is running at a time) - all media players and Car Launcher Pro are in my whitelist:
Code:
[b]Profile: PlaySDAfterSleep (3)[/b]
Event: Card Mounted [ Card Title:Music Frequency:* ]
State: Variable Value [ %CPPLAYER ~ PowerAmp ]
Enter: PlayMedia (21)
[b]Profile: GoIntoSleep (5)[/b]
Event: Intent Received [ Action:com.microntek.bootcheck Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: PauseMedia (2)
[b]Profile: PandoraRunning (14)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only
Notification Apps: Pandora ]
Enter: KillPA_and_Spotify (9)
[b]Profile: PowerAmpRunning (17)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only
Notification Apps: Poweramp ]
Enter: KillPandora_and_Spotify (11)
[b]Profile: SpotifyRunning (18)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only
Notification Apps: Spotify ]
Enter: KillPA_and_Pandora (13)
[b]Profile: PlayOnlineAfterSleep (20)[/b]
State: Wifi Connected [ SSID:* MAC:* IP:* Active:Yes ]
State: Variable Value [ %CPPLAYER !~ PowerAmp ]
Enter: PlayMedia (21)
[b]Task: PauseMedia (2)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PAUSE Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %class ~ poweroff ]
[b]Task: PlaySDMedia (6)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PLAY Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %CPPLAYER ~ PowerAmp ]
[b]Task: KillPA_and_Spotify (9)[/b]
A1: Variable Set [ Name:%CPPLAYER To:Pandora Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Kill App [ App:Poweramp Use Root:eek:n ]
A3: Kill App [ App:Spotify Use Root:eek:n ]
[b]Task: KillPandora_and_Spotify (11)[/b]
A1: Variable Set [ Name:%CPPLAYER To:PowerAmp Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Kill App [ App:Pandora Use Root:eek:n Continue Task After Error:eek:n ]
A3: Kill App [ App:Spotify Use Root:eek:n ]
[b]Task: KillPA_and_Pandora (13)[/b]
A1: Variable Set [ Name:%CPPLAYER To:Spotify Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Kill App [ App:Poweramp Use Root:eek:n ]
A3: Kill App [ App:Pandora Use Root:eek:n ]
[b]Task: PlayOnlineMedia (19)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PLAY Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %CPPLAYER !~ PowerAmp ]
[b]Task: PlayMedia (21)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PLAY Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
I hope this helps someone. Please don't hesitate to ask questions!
What i don't understand is why it doesn't resume even when Poweramp is whitelisted.... could it be because the drives are beeing unmounted when going into deep sleep mode???
The stock app resumes just fine though.......
Is your music on internal or external storage? If it's on external, then yes, that is why it doesn't auto-resume - the SD cards (for example) get unmounted when the unit goes to sleep - and then when you come out of sleep, Android runs a filesystem check on the SD cards. If the SD cards are large and have lots of files on them, that filesystem check can take longer.
The stock music app probably takes this into account already since it was written for the head-unit specifically.
I had even more serious issues with Jet Audio - it would completely remove the music on the SD card from the library completely!
If the music is on internal storage, PowerAmp should resume normally. If not, you'll need to use Tasker to make it work right.
jtrosky said:
Is your music on internal or external storage? If it's on external, then yes, that is why it doesn't auto-resume - the SD cards (for example) get unmounted when the unit goes to sleep - and then when you come out of sleep, Android runs a filesystem check on the SD cards. If the SD cards are large and have lots of files on them, that filesystem check can take longer.
The stock music app probably takes this into account already since it was written for the head-unit specifically.
I had even more serious issues with Jet Audio - it would completely remove the music on the SD card from the library completely!
If the music is on internal storage, PowerAmp should resume normally. If not, you'll need to use Tasker to make it work right.
Click to expand...
Click to collapse
I copied all music to the internal flash drive, still no go...
heard somebody that Musicolet worked for him, i'll give it a go and let you know.
If it doesn't work i'll use Tasker
Hmm - at this point, I can't remember if Poweramp worked for me on internal storage, but Jet Audio worked perfectly with internal storage for me.... Didnt' have to pause it or anything - it would just continue where it left off when the unit came out of sleep. However, this didn't work for me because my music collection is bigger than my internal storage, which is why I had to move to tasker since I wanted to keep my library on external storage.
I have 16gb flash storage and mostly dj mixes, plenty of space available for me.
I just tested Musicolet and it works perfectly, it resumes and is supported by the car launcher widgets (stock player not)
So i'm very happy now, now i can focus on the last tiny issue.... Can't control navigation audio volume seperate from system audio.
g-member said:
Can't control navigation audio volume seperate from system audio.
Click to expand...
Click to collapse
Yeah, I too hate that there only seems to be one volume setting on these radios. Can't control navi, phone righter or even notification volume separately... Hell, I couldn't even get notification sounds working at all. Major oversight, IMO. Don''t think there is a solution though (that I'm aware of).
So I modified my Tasker setup to make it easier to add new apps to the setup... Here is have I have things setup now (may give others ideas or others may give me ideas to make it work better):
Code:
[b]Profile: GoIntoSleep (5)[/b]
Event: Intent Received [ Action:com.microntek.bootcheck Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: PauseMedia (2)
[b]Profile: PlayOnlineAfterSleep (20)[/b]
State: Wifi Connected [ SSID:* MAC:* IP:* Active:Yes ]
State: Variable Value [ %CPPLAYER ~ Online ]
Enter: PlayMedia (21)
[b]Profile: PlaySDAfterSleep (3)[/b]
Event: Card Mounted [ Card Title:Music Frequency:* ]
State: Variable Value [ %CPPLAYER ~ Local ]
Enter: PlayMedia (21)
[b]Profile: PandoraRunning (14)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only Notification Apps: Pandora ]
Enter: Pandora (15)
[b]Profile: PowerAmpRunning (17)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only Notification Apps: Poweramp ]
Enter: PowerAmp (22)
[b]Profile: SpotifyRunning (18)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only Notification Apps: Spotify ]
Enter: Spotify (19)
[b]Task: PlayMedia (21)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PLAY Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
[b]Task: PauseMedia (2)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PAUSE Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %class ~ poweroff ]
[b]Task: SetLocalPlayer (10)[/b]
A1: Variable Set [ Name:%CPPLAYER To:Local Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
[b]Task: SetOnlinePlayer (12)[/b]
A1: Variable Set [ Name:%CPPLAYER To:eek:nline Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
[b]Task: Pandora (15)[/b]
A1: Variable Set [ Name:%CPPLAYER To:eek:eek:nline Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Variable Set [ Name:%PLAYER To:Pandora Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A3: Perform Task [ Name:KillOtherApps Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
[b]Task: Spotify (19)[/b]
A1: Variable Set [ Name:%CPPLAYER To:eek:eek:nline Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Variable Set [ Name:%PLAYER To:Spotify Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A3: Perform Task [ Name:KillOtherApps Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
[b]Task: PowerAmp (22)[/b]
A1: Variable Set [ Name:%CPPLAYER To:Local Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Variable Set [ Name:%PLAYER To:PowerAmp Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A3: Perform Task [ Name:KillOtherApps Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
[b]Task: KillOtherApps (16)[/b]
A1: If [ %PLAYER ~ PowerAmp ]
A2: Kill App [ App:Pandora Use Root:eek:n ]
A3: Kill App [ App:Spotify Use Root:eek:n ]
A4: Else If [ %PLAYER ~ Pandora ]
A5: Kill App [ App:Poweramp Use Root:eek:n ]
A6: Kill App [ App:Spotify Use Root:eek:n ]
A7: Else If [ %PLAYER ~ Spotify ]
A8: Kill App [ App:Poweramp Use Root:eek:n ]
A9: Kill App [ App:Pandora Use Root:eek:n ]
A10: End If
Hope this makes sense. Don't hesitate to ask if anyone has any questions - or any tips to make this simpler...
So basically, if it's a "local" music player, I set %CPPLAYER to "Local" and if it's an "online" music player, I set %CPPLAYER to "Online". This is used later to determine if I need to wait for the SD card to become ready or wait for the Wifi to become ready before "un-pausing" the player after the unit comes out of sleep.
The %PLAYER varible is used so I know which exact player is currently active - so that I know what other players to kill (since i have them all whitelisted). For some reason, the Hal9k "apps that cannot run simultanously" doesn't work for me, which is why I have to do this. I don't want a bunch of apps running when the unit sleeps (still not sure if the unit uses more battery power in sleep if more apps are running?).
Great idea to start media playing after sd mount.
In my case I'm using Tasker almost the same way - PauseMedia with shutdown intent.
But I'm starting PowerAmp and playing media directly after bootup, which works in 90% of all.
But I'll try to use your hint with starting after sd mount.
Thanks!!!
Yeah, in my case, waiting for the SD card to become "ready" after coming out of sleep is critical since I have all of my music stored on SD card...
In case anyone is interested, I've actually worked out a way to have per-app Viper4Android settings using Tasker now! So now I can have completely separate EQ settings for Pandora, Spotify, PowerAmp, etc - and it's all handled automatically... You can change V4A settings while an app is running and they're automatically saved for that app.
I've always wanted per-source EQ settings, but I've never actually had a radio that supported it - now I do.
I wish V4A also worked with the FM tuner, but thankfully I rarely listen to FM, so that shouldn't be a huge deal. Same for CD/DVD - don't think V4A processes output from CD/DVD - but again, I don't use physical media anymore, so....
If anyone wants me to post the tasker details for this, let me know...
I think I'm *finally* ready to acutally install this unit "in car" now (I've had it for over a month now) - been waiting until I get everything setup like I wanted it before installing it in-car - otherwise, you spend way too much time running back and forth to the car to test.
Last issue I want to eventually solve is the horrible turn-signal/warning chime sounds provided by the CANBUS box that Eonon provides (the turn-signal and warning chime sounds originally came out of my car speakers - now that come out of a little "stick on" speaker - and the sounds that the CANBUS box generated are HORRIBLE. Might like into replacing the CANBUS box with another one at some point (Metra makes them and they even have volume controls, etc).
jtrosky said:
So I modified my Tasker setup to make it easier to add new apps to the setup... Here is have I have things setup now (may give others ideas or others may give me ideas to make it work better):
Code:
[b]Profile: GoIntoSleep (5)[/b]
Event: Intent Received [ Action:com.microntek.bootcheck Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: PauseMedia (2)
[b]Profile: PlayOnlineAfterSleep (20)[/b]
State: Wifi Connected [ SSID:* MAC:* IP:* Active:Yes ]
State: Variable Value [ %CPPLAYER ~ Online ]
Enter: PlayMedia (21)
[b]Profile: PlaySDAfterSleep (3)[/b]
Event: Card Mounted [ Card Title:Music Frequency:* ]
State: Variable Value [ %CPPLAYER ~ Local ]
Enter: PlayMedia (21)
[b]Profile: PandoraRunning (14)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only Notification Apps: Pandora ]
Enter: Pandora (15)
[b]Profile: PowerAmpRunning (17)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only Notification Apps: Poweramp ]
Enter: PowerAmp (22)
[b]Profile: SpotifyRunning (18)[/b]
State: AutoNotification Intercept [ Configuration:Persistency Type: Persistent Only Notification Apps: Spotify ]
Enter: Spotify (19)
[b]Task: PlayMedia (21)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PLAY Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
[b]Task: PauseMedia (2)[/b]
A1: Run Shell [ Command:input keyevent KEYCODE_MEDIA_PAUSE Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] If [ %class ~ poweroff ]
[b]Task: SetLocalPlayer (10)[/b]
A1: Variable Set [ Name:%CPPLAYER To:Local Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
[b]Task: SetOnlinePlayer (12)[/b]
A1: Variable Set [ Name:%CPPLAYER To:eek:nline Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
[b]Task: Pandora (15)[/b]
A1: Variable Set [ Name:%CPPLAYER To:eek:eek:nline Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Variable Set [ Name:%PLAYER To:Pandora Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A3: Perform Task [ Name:KillOtherApps Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
[b]Task: Spotify (19)[/b]
A1: Variable Set [ Name:%CPPLAYER To:eek:eek:nline Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Variable Set [ Name:%PLAYER To:Spotify Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A3: Perform Task [ Name:KillOtherApps Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
[b]Task: PowerAmp (22)[/b]
A1: Variable Set [ Name:%CPPLAYER To:Local Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A2: Variable Set [ Name:%PLAYER To:PowerAmp Recurse Variables:eek:ff Do Maths:eek:ff Append:eek:ff ]
A3: Perform Task [ Name:KillOtherApps Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
[b]Task: KillOtherApps (16)[/b]
A1: If [ %PLAYER ~ PowerAmp ]
A2: Kill App [ App:Pandora Use Root:eek:n ]
A3: Kill App [ App:Spotify Use Root:eek:n ]
A4: Else If [ %PLAYER ~ Pandora ]
A5: Kill App [ App:Poweramp Use Root:eek:n ]
A6: Kill App [ App:Spotify Use Root:eek:n ]
A7: Else If [ %PLAYER ~ Spotify ]
A8: Kill App [ App:Poweramp Use Root:eek:n ]
A9: Kill App [ App:Pandora Use Root:eek:n ]
A10: End If
Hope this makes sense. Don't hesitate to ask if anyone has any questions - or any tips to make this simpler...
So basically, if it's a "local" music player, I set %CPPLAYER to "Local" and if it's an "online" music player, I set %CPPLAYER to "Online". This is used later to determine if I need to wait for the SD card to become ready or wait for the Wifi to become ready before "un-pausing" the player after the unit comes out of sleep.
The %PLAYER varible is used so I know which exact player is currently active - so that I know what other players to kill (since i have them all whitelisted). For some reason, the Hal9k "apps that cannot run simultanously" doesn't work for me, which is why I have to do this. I don't want a bunch of apps running when the unit sleeps (still not sure if the unit uses more battery power in sleep if more apps are running?).
Click to expand...
Click to collapse
Dear Jtrosky,
I have the same problem as you and a I use sometimes Poweramp or Stellio.
I have no experience with Tasker so I would like to ask you if I need to build a setup from scratch or I can adapt yours? Can you please guide me?
Thank you in advance
Roberto Azevedo
I'm not going to lie - tasker can be a little cryptic to setup if you don't have a programming background. Some of the basics are easy, but some stuff, like I'm doing here requires variables and if/then/else statements.
However, if you buy tasker and install it, you can basically just set it up just like I have it listed above - with only minor tweaks.
I acutally had to purchase Tasker and the AutoNotification plug-in for the way I have it setup. But still, you're talking less than $10 and once you get familar with Tasker, you can use it for lots of other cool stuff as well.
And of course I and other members will be perfectly willing to help you get it all figured out.
For me, the key was to pause the player before going to sleep and then unpause it when it comes out of sleep - then the different players seem to "remember" where they left off. But I'm also using Car Luncher Pro - not sure if it changes anything if you are not using it. I only go into the main player applications to select a playlist or channel - then I just change songs, pause and play all right from the Car Launcher app without going into the actual applicaitons...
jtrosky said:
I'm not going to lie - tasker can be a little cryptic to setup if you don't have a programming background. Some of the basics are easy, but some stuff, like I'm doing here requires variables and if/then/else statements.
However, if you buy tasker and install it, you can basically just set it up just like I have it listed above - with only minor tweaks.
I acutally had to purchase Tasker and the AutoNotification plug-in for the way I have it setup. But still, you're talking less than $10 and once you get familar with Tasker, you can use it for lots of other cool stuff as well.
And of course I and other members will be perfectly willing to help you get it all figured out.
For me, the key was to pause the player before going to sleep and then unpause it when it comes out of sleep - then the different players seem to "remember" where they left off. But I'm also using Car Luncher Pro - not sure if it changes anything if you are not using it. I only go into the main player applications to select a playlist or channel - then I just change songs, pause and play all right from the Car Launcher app without going into the actual applicaitons...
Click to expand...
Click to collapse
Thank you for your prompt reply. I will try as you suggested.
Best Regards,
Is there also an option to resume the playback immediately?
As I am using Spotify with downloaded playlists. @jtrosky
Sure. You would just have to find the intent that is broadcast when the unit wakes up (not sure what it is offhand). Then once that intent is observed by Tasker, you could just immediately have tasker send the "Media Play" command.
The intent that gets broadcase whent the unit goes to sleep includes the "poweroff" paramter. maybe there is also a "poweron" parameter that gets broadcast when the unit wakes. Or something along the those lines... There are probably many ways to do (check when screen comes on, etc).
jtrosky said:
Sure. You would just have to find the intent that is broadcast when the unit wakes up (not sure what it is offhand). Then once that intent is observed by Tasker, you could just immediately have tasker send the "Media Play" command.
The intent that gets broadcase whent the unit goes to sleep includes the "poweroff" paramter. maybe there is also a "poweron" parameter that gets broadcast when the unit wakes. Or something along the those lines... There are probably many ways to do (check when screen comes on, etc).
Click to expand...
Click to collapse
Guess this will not happen as I dont have any experiences with Tasker
Should be something like this:
Send Intent [ Action:com.spotify.mobile.android.ui.widget.PLAY Cat:None Mime Type: Data: Extra: Extra: Extra: Package:com.spotify.music Class: Target:Broadcast Receiver ]
Yes, that is an intent that will tell Spotify to play, but the real "problem" is figuring out a way to know "when" to send that command (or the general "Media Play" intent that I was talking about, which really should work for any media app).
So you need to figure out a way to know *when* Tasker should send the command when the radio "wakes" up.
There are lots of varibles. Is the Spotify app whitelisted? Or are you restarting it every time the radio wakes up? Is it going to be the 'active' app or running in the background? etc, etc...
But you can use Tasker to do what you want somehow. Tasker is a fantastic app for these radios. Takes some time to get all setup the way you want, but once it is, you can automate a lot of tasks...
Jtrosky i want to use this function for BlackPlayer v3. Im using MacroDroid for simply intent but im not able to use tasker. Could You give us the configuration to resume it after reboot please?
I have never used MacroDroid, but the premise should be the same. The way that I'm doing things here with tasker is a very simple way - I don't need or use any application-specific intents - I simply pause the current player with the general "media pause" command before the unit goes to sleep and the issue the general "media play" command after the unit wakes up - basically, it's the same as pressing the physical play/pause button on the radio yourself - I just automate it. Also, I use Tasker to make sure that only one audio app is running at any time - that way, there is no confusion of which player is paused/un-paused (which allows you to use the general "media pause" and "media play" commands instead of application-specific intents).
However, using this type of setup requires that you know what audio-related apps you are going to be using and setup tasker for those app specifically. If you start using some different app, you need to modify the Tasker setup. Most people tend to use the same core set of apps for music playing all of the time though, so this is not a big deal.
jtrosky said:
I have never used MacroDroid, but the premise should be the same. The way that I'm doing things here with tasker is a very simple way - I don't need or use any application-specific intents - I simply pause the current player with the general "media pause" command before the unit goes to sleep and the issue the general "media play" command after the unit wakes up - basically, it's the same as pressing the physical play/pause button on the radio yourself - I just automate it. Also, I use Tasker to make sure that only one audio app is running at any time - that way, there is no confusion of which player is paused/un-paused (which allows you to use the general "media pause" and "media play" commands instead of application-specific intents).
However, using this type of setup requires that you know what audio-related apps you are going to be using and setup tasker for those app specifically. If you start using some different app, you need to modify the Tasker setup. Most people tend to use the same core set of apps for music playing all of the time though, so this is not a big deal.
Click to expand...
Click to collapse
I know it but if i stop the play when the radio goes to sleep, the usb folder doesn't have time to Save the music position. So when i Wake up it resumes from the start. I don't If there's a problem with White list..