×
Namespaces

Variants
Actions
Revision as of 05:02, 14 March 2008 by hartti (Talk | contribs)

Archived:S60 music player cannot be launched in standalone mode on S60 3rd Edition (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search


Template:KBKI

ID KIS000800 Creation date January 11, 2008
Platform S60 3rd Edition, FP1 Devices Nokia N95 8GB, Nokia N81
Category Symbian C++ Subcategory Multimedia

Overview

The default S60 music player application cannot be launched properly in standalone mode for playing audio files.


Description

Devices like the Nokia N95 8GB and the Nokia N81 have problems in launching the default S60 music player in standalone mode for playing an audio file. While trying to launch the music player in standalone mode, it is launched but it does not play anything.


How to reproduce

Use the following code snippet to launch the S60 music player to play the audio file.

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(_L("C:\\Data\\Music.mp3"));
iApaTask.BringToForeground();
}
else
{
// music player is not runnin and needs to be launched
RApaLsSession iAplsSession;
User::LeaveIfError(iAplsSession.Connect());
TThreadId thread;
iAplsSession.StartDocument(_L("C:\\Data\\Music.mp3"), 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) the AIW framework.

56 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×