<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - In MP3 player how to handle call interruption - Comments</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption</link>
 <description>Comments for &quot;In MP3 player how to handle call interruption&quot;</description>
 <language>en</language>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-46637</link>
 <description>&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Use RegisterAudioResourceNotification(), WIllresumePlay()  to register the application for any notification when a Higher priority triggers ( for example Voice call ). So after the voice call you will get the notificatiocation&lt;/p&gt;

&lt;p&gt;And resume the play ..&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 29 May 2008 09:54:46 +0200</pubDate>
 <dc:creator>sivak</dc:creator>
 <guid isPermaLink="false">comment 46637 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-46280</link>
 <description>&lt;p&gt;have u set the player to run in the background and incomming call to run in foreground&lt;/p&gt;</description>
 <pubDate>Fri, 09 May 2008 14:45:14 +0200</pubDate>
 <dc:creator>sharmila</dc:creator>
 <guid isPermaLink="false">comment 46280 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45711</link>
 <description>&lt;p&gt;Hey I have tried with Getposition and setposition but it is also not working for background pause.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if(aLineStatus==RCall::EStatusRinging)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; Pause the player;&lt;br /&gt;&amp;nbsp; Get the position;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(aLineStatus==RCall::EStatusIdle)&lt;br /&gt;{&lt;br /&gt;Set the position&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
I have checked various possibilties (nearly all ) but its not working. &lt;/p&gt;

&lt;p&gt;I am using Nokia 6600 for testing.&lt;/p&gt;</description>
 <pubDate>Thu, 10 Apr 2008 12:57:28 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45711 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45637</link>
 <description>&lt;p&gt;But then how come it is working when the player window is on the main screen.&lt;br /&gt;
It is not working when the player plays on background.&lt;/p&gt;

&lt;p&gt;Actually the pause function of CMdaAudioPlayerUtility is working, I have checked that.&lt;/p&gt;

&lt;p&gt;Anyways I will check with this also. Thanks. &lt;/p&gt;</description>
 <pubDate>Tue, 08 Apr 2008 13:54:25 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45637 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45635</link>
 <description>&lt;p&gt;I havent done this, but I think when you pause the player, you have to GetPosition() and when you resume you SetPosition()..dunno really, but you can look at it that way and check if it works&lt;/p&gt;</description>
 <pubDate>Tue, 08 Apr 2008 13:48:57 +0200</pubDate>
 <dc:creator>Symbian_Neil</dc:creator>
 <guid isPermaLink="false">comment 45635 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45634</link>
 <description>&lt;p&gt;Hey I was using CTelephony class in Fp2, 2nd edition I suppose that is why it was giving problem.&lt;/p&gt;

&lt;p&gt;Now I am using Rcall class, with active objects it is running properly, i.e if a player is playing and a call comes then the player pauses and when the call is complete then the player starts from the position where it was stopped.&lt;/p&gt;

&lt;p&gt;But when the player is playing in background (if the player window is not on the screen) and a call comes , then after the call completes, player starts playing from the starting (instead of the position from where it was stopped ). Why this is happening cant get it???&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if(aLineStatus==RCall::EStatusRinging)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; Pause the player;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 08 Apr 2008 12:38:59 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45634 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45625</link>
 <description>&lt;p&gt;Well, this might help you get some sensible errors to point you where things might be going wrong :&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://wiki.forum.nokia.com/index.php/Extended_panic_code&quot;&gt;http://wiki.forum.nokia.com/index.php/Extended_panic_code&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 08 Apr 2008 11:00:47 +0200</pubDate>
 <dc:creator>Symbian_Neil</dc:creator>
 <guid isPermaLink="false">comment 45625 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45543</link>
 <description>&lt;p&gt;Hey I have tried removing active object from the application and run, then the application is running very fine.&lt;br /&gt;
So creating active object is giving some problem. Might be I am using active object in the wrong way.&lt;/p&gt;

&lt;p&gt;When I added active object then, the application is not opening only. &lt;br /&gt;
Although it dosent give any error, but its not opening also.&lt;br /&gt;
Can you suggest what might be going wrong? &lt;/p&gt;</description>
 <pubDate>Fri, 04 Apr 2008 08:02:40 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45543 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45527</link>
 <description>&lt;p&gt;I am using s60 2nd edition FP2.&lt;/p&gt;

&lt;p&gt;And my package file look like this.&lt;/p&gt;

&lt;p&gt;&amp;EN&lt;br /&gt;
#{&quot;Sound Example&quot;},(0x10005BC6),1,0,0&lt;br /&gt;
(0x101F7960), 0, 0, 0, {&quot;Series60ProductID&quot;}&lt;/p&gt;

&lt;p&gt;; Target&lt;br /&gt;
&quot;$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\sound.app&quot;		  -&quot;!:\system\apps\sound\sound.app&quot;&lt;br /&gt;
&quot;$(EPOCROOT)Epoc32\data\z\system\apps\Sound\Sound.rsc&quot;            -&quot;!:\system\apps\Sound\Sound.rsc&quot;&lt;br /&gt;
&quot;$(EPOCROOT)Epoc32\data\z\system\apps\Sound\Sound.aif&quot;            -&quot;!:\system\apps\Sound\Sound.aif&quot;&lt;br /&gt;
&quot;$(EPOCROOT)Epoc32\data\z\system\apps\Sound\Sound_caption.rsc&quot;    -&quot;!:\system\apps\Sound\Sound_caption.rsc&quot;&lt;/p&gt;

&lt;p&gt;I have checked all possble conditions.&lt;br /&gt;
I have changed included corresponding library ( etel3rdparty.lib ) &quot;mmp&quot; file.&lt;/p&gt;

&lt;p&gt;Now the application is not giving &quot;system error&quot; problem, but the application is not opening. &lt;img src=&quot;/sites/all/modules/smileys/packs/example/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; /&gt; &lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 03 Apr 2008 12:27:36 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45527 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45526</link>
 <description>&lt;p&gt;I think u r mixing too many things.First of all System error does not ve to do anything with active objects.&lt;br /&gt;
which sdk are u using to build the .sis file? and also check that all the linked libs are there in the pkg file.&lt;/p&gt;</description>
 <pubDate>Thu, 03 Apr 2008 12:05:40 +0200</pubDate>
 <dc:creator>prajwal.r.m</dc:creator>
 <guid isPermaLink="false">comment 45526 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45522</link>
 <description>&lt;p&gt;Hey I have included the &quot;TelObserver.h&quot; and &quot;TelObserver.cpp&quot; file mentioned in the link.&lt;br /&gt;
Then I have created an instance of this class in  my &quot;AppUi.cpp&quot; and called the function StatrtListening.&lt;/p&gt;

&lt;p&gt;  CTelObserver* iTelObs; &lt;br /&gt;
  iTelObs = CTelObserver::NewL();&lt;br /&gt;
   iTelObs-&gt;StartListening();&lt;/p&gt;

&lt;p&gt;I have buid the application and installed the &quot;sis&quot; file on my mobile (Nokia 6630 ).&lt;br /&gt;
On starting the application, it gives &quot;System error&quot; and dosent open the application. &lt;/p&gt;

&lt;p&gt;I dont know what has to be added more. I am using active oject for the first time.&lt;br /&gt;
Where I am going wrong??&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 03 Apr 2008 10:46:45 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45522 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45505</link>
 <description>&lt;p&gt;The logic is simple u ve to register a callback with the telephony server and when the status changes it ll call the callback.&lt;/p&gt;

&lt;p&gt;void CTelObserver::StartListening()&lt;br /&gt;
    {&lt;br /&gt;
    iTelephony-&gt;NotifyChange(iStatus, CTelephony::EVoiceLineStatusChange,&lt;br /&gt;
            iCallStatusPkg);&lt;br /&gt;
    SetActive();&lt;br /&gt;
    }&lt;/p&gt;

&lt;p&gt;when do this u ve registered the callback by giving ur iStatus. when the status changes ur runl ll be called .simple &lt;br /&gt;
just copy paste this code &lt;br /&gt;
&lt;a href=&quot;http://&quot; class=&quot;bb-url&quot;&gt;http://wiki.forum.nokia.com/index.php/CS000863_-_Pausing_an_application_on_an_incoming_call&lt;/a&gt;&lt;br /&gt;
It should work .&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 02 Apr 2008 10:58:07 +0200</pubDate>
 <dc:creator>prajwal.r.m</dc:creator>
 <guid isPermaLink="false">comment 45505 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45504</link>
 <description>&lt;p&gt;I think, you can&#039;t do it without Active Objects.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 02 Apr 2008 09:36:24 +0200</pubDate>
 <dc:creator>sachintikare</dc:creator>
 <guid isPermaLink="false">comment 45504 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45503</link>
 <description>&lt;p&gt;I have seen this code previously ,but my code dosen&#039;t have any (Active object ) RunL().&lt;/p&gt;

&lt;p&gt;Where to add , the code to pause an application.&lt;br /&gt;
When the call will come from which part of code it will switch ( I think &quot;appui&quot; but then in which function ) ?&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 02 Apr 2008 09:15:31 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">comment 45503 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comment-45502</link>
 <description>&lt;p&gt;Check out this link...&lt;/p&gt;

&lt;p&gt;this may help you...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://wiki.forum.nokia.com/index.php/CS000863_-_Pausing_an_application_on_an_incoming_call&quot;&gt;http://wiki.forum.nokia.com/index.php/CS000863_-_Pausing_an_application_on_an_incoming_call&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;you just need to write the code to pause the player in the RunL() function of the code snippet... &lt;/p&gt;</description>
 <pubDate>Wed, 02 Apr 2008 09:05:50 +0200</pubDate>
 <dc:creator>sachintikare</dc:creator>
 <guid isPermaLink="false">comment 45502 at http://www.newlc.com</guid>
</item>
<item>
 <title>In MP3 player how to handle call interruption</title>
 <link>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am developing a MP3 player. I am using CMdaAudioPlayerUtility.&lt;br /&gt;
My player is working with the basic functionalities.&lt;/p&gt;

&lt;p&gt;I want to add a functionality in which, if a call comes while a file is playing, the file should pause the current playing file, and when the player will resume should be in pause state.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/mp3-player-how-handle-call-interruption&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/mp3-player-how-handle-call-interruption#comments</comments>
 <category domain="http://www.newlc.com/forums/multimedia">Multimedia</category>
 <pubDate>Wed, 02 Apr 2008 07:43:34 +0200</pubDate>
 <dc:creator>shikhakhandelwal</dc:creator>
 <guid isPermaLink="false">20613 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
