Menu

#85 Phone calls do not pause media

NextRelease
nobody
None
Medium
Defect
2010-09-06
2010-07-11
Anonymous
No

Originally created by: robert.b...@gmail.com
Originally owned by: r3gis...@gmail.com

What steps will reproduce the problem?
1. Play some music (tested with TuneWiki and Stock Player)
2. Receive a phone call.
3. Music and call come out earpiece.

What is the expected output? What do you see instead?
The music should pause. Instead, it continues playing.

What version of the product are you using? On what operating system?
CSipSimple 12, installed 07/11/2010 from the Market. Android 2.1, MyTouch 3G Slide.

Please provide any additional information below.

Related

Tickets: #71

Discussion

<< < 1 2 (Page 2 of 2)
  • Anonymous

    Anonymous - 2010-09-06

    Originally posted by: egcros...@gmail.com

    r3gis.3R, this is not strictly related to pausing media, but I stumbled upon it and I thought that you might be interested. This is a technique of dynamically using different APIs depending on their availability. I don't know the value of this advice, the whole java thing just makes me dizzy ;-) Anyway, this is the article:
    http://devtcg.blogspot.com/2009/12/gracefully-supporting-multiple-android.html

     
  • Anonymous

    Anonymous - 2010-09-06

    Originally posted by: r3gis...@gmail.com

    Thanks for the link.
    But don't worry I'm really confident with backward compatibility stuff ;).
    There is already a lot of things in CSipSimple that use different levels of API and fallback to degraded feature when running on 1.5 (for example tab bar on 1.5 doesn't look like the same ;) ).
    There is two techniques to do so. Both are well described in the android blog :
    http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html
    If you are interested to have the full view of both method that can be used.

    The only thing I risk is forget to check when I use a method whether it is available in android 1.5 ;). But if so, users will immediately report it since app will directly force close at loading time !

    For this issue, I've something functional. Need to commit and build it. (It will be in next dev release, but I'll try to not forget to update this issue when it will be released).

     
  • Anonymous

    Anonymous - 2010-09-06

    Originally posted by: r3gis...@gmail.com

    -12-29 now support the 2.2 api for audio focus.
    Works properly on my Nexus One 2.2. But it's with official music application. Let me know if it's fine with HTC Music player too. (I hope that they have also implemented the 2.2 audio focus support....)

     
  • Anonymous

    Anonymous - 2010-09-06

    Originally posted by: egcros...@gmail.com

    Yes, the player stops now!
    It does not restart playing when the call is over, but it sometimes does not restart after mobile call either (sometimes it does. go figure.)
    Anyway I call it testing success :) Thanks!

     
  • Anonymous

    Anonymous - 2010-09-06

    Originally posted by: r3gis...@gmail.com

    Ok great.
    In fact, audio focus announce that it is a "transient" gain (see : http://developer.android.com/reference/android/media/AudioManager.html#AUDIOFOCUS_GAIN_TRANSIENT) . Regarding code of the official music app, if the focus gain is is transient, then it will restart playing : They save the loss type as flag that is used to know if restart should be done after the focus is gain again.
    As I use this type of audiofocus, I should be restarted after... unless music audio manager receiver is freed (can be the case if android ask for RAM memory - or because of a bug in the HTC Music app).
    It could explain what you observe. Maybe in csipsimple you'll get the same random behavior than the one you have for mobile calls. The only way to be sure would be to have the HTC music app source code :).

    Status: NextRelease

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.