Archived:S60 music player cannot be launched in standalone mode on S60 3rd Edition (Known Issue)
Article Metadata
Tested with
Compatibility
Article
Contents |
Overview
Nokia Nseries devices based on S60 3rd Edition, FP1 and FP2 include a new music player application that no longer uses the traditional Symbian view architecture. As a side effect, methods provided by the application framework cannot be used for launching it in standalone mode for playing audio files.
Description
In Nseries devices such as the Nokia N95 8GB and Nokia N81, launching the Music Player application in standalone mode, providing an audio file as a parameter, does not work as expected. This applies to methods provided by RApaLsSession. When trying to launch the music player in standalone mode, it is started but does not play anything.
How to reproduce
Use the following code snippet to launch the S60 music player to play the audio file.
_LIT(KMusicFilename, "C:\\Data\\Music.mp3");
TApaTaskList iTaskList(CCoeEnv::Static()->WsSession());
TBool iExists;
TApaTask iApaTask = iTaskList.FindApp(TUid::Uid(0x102072C3));
iExists = iApaTask.Exists();
if(iExists)
{
// Music player already running
iApaTask.SwitchOpenFile(KMusicFilename);
iApaTask.BringToForeground();
}
else
{
// music player is not running and needs to be launched
RApaLsSession iAplsSession;
User::LeaveIfError( iAplsSession.Connect() );
TThreadId thread;
iAplsSession.StartDocument( KMusicFilename,
thread,
RApaLsSession::ESwitchFiles );
iAplsSession.Close();
}
This code snippet works fine with other S60 3rd Edition, FP1 devices, such as the Nokia N95, and the S60 default music player is able to play the audio file by launching in standalone mode. However, in devices such as the Nokia N81 and the Nokia N95 8GB, the music player is launched but it does not play anything.
Solution
In these devices, the S60 music player can only be launched in embedded mode by using the Document Handler API or Application Interworking (AIW) framework.


(no comments yet)