×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Loading an m3u playlist into the Music Player (5th Edition)

    I'm trying to load a simple M3U playlist into the Music Player application from my own application. The m3u file is in C:\data\sounds\digital, has 25 tracks in it, one filename (including path) per line. I'm using the CApaCommandLine class to send the filename (and launch the player if it isn't already running). However, when I try to get it running in the emulator, it shows "opening.." in the Music Player but doesn't do anything else. Then I noticed this debugging output, which shows a couple of error messages:
    Code:
       108.560	"CMPXTaskQueueScheduler::RunL 0 cb 0x00000000"
       108.560	"CMPXPlaylistPluginHandler::SelectPlaylistPluginL( URI: C:\data\sounds\digital\We Can Work It Out.m3u, DataType )"
       108.560	"-->CMPXPluginHandlerBase::PluginL"
       108.570	C3GPAudioPlayControllerRecognizer::DoRecognizeL
       108.570	C:\data\sounds\digital\We Can Work It Out.m3u
       108.570	 
       108.570	C3GPAudioPlayControllerRecognizer::DoRecognizeL: Extension:
       108.570	.m3u
       108.570	 
       108.570	CAACAudioPlayControllerRecognizer::DoRecognizeL: 
       108.570	C:\data\sounds\digital\We Can Work It Out.m3u
       108.570	 
       108.570	LmRecognizer: Checking buffer of size 256
       108.570	LmRecognizer: checking for LMX...
       108.570	LmRecognizer: XML prolog not found
       108.570	LmRecognizer: Content unknown
       108.570	"CMPXPlaylistRecognizer::DoRecognizeL: aName = C:\data\sounds\digital\We Can Work It Out.m3u"
       108.570	"CMPXPluginHandlerBase::CreatePluginListL: process=apsexe.exe[10003a3f]0001, thread=66, this=0x0f49ced8"
       108.575	"CMPXPluginHandlerBase::CreatePluginListL numbers of the plugin 0x0f49ced8 1"
       108.575	"Process the existing plugin 0x0f49ced8 uid 0x101ffc21, old version 1 new version 1"
       108.575	"CMPXPlaylistRecognizer::DoRecognizeL - Possible match"
       108.580	"CMPXPlaylistPluginHandler::ResolvePluginL"
       108.580	"===>CMPXPluginHandlerBase::DoResolvePluginL 0x41d53ae4"
       108.580	"#### MPX Plugins ####"
       108.580	"m3u playlist [0x101FFC21] Priority: 0 Ref Count: 1"
       108.580	"Version 1"
       108.580	"<===CMPXPluginHandlerBase::DoResolvePluginL 0x41d53ae4 (aPluginUid 0x101ffc21, aIndex 0, aDisplayName m3u playlist)"
       108.580	"CMPXPlaylistPluginHandler::CreatePlaylistPluginL(UID: 101ffc21)"
       108.580	"-->CMPXPluginHandlerBase::UsePlugin, 0x41d53ae4"
       108.580	"<--CMPXPluginHandlerBase::UsePlugin, 0x41d53ae4"
       108.580	"<--CMPXPluginHandlerBase::PluginL"
       108.580	"CMPXM3uPlaylistPlugin::InternalizePlaylist(aPlaylistUri)"
       108.580	"CMPXM3uPlaylistImporter::ConstructL(C:\data\sounds\digital\We Can Work It Out.m3u) entering"
       108.580	"CMPXM3uPlaylistImporter::ConstructL() exiting"
       108.580	"<--CMPXTaskQueueScheduler::RunL, 0x41d53ab4"
       108.580	"CMPXM3uPlaylistImporter::RunL"
       108.580	"CMPXM3uPlaylistImporter::DoTaskStep()"
       108.595	"CMPXM3uPlaylistImporter::DoTaskStepL()"
       108.595	"Before reading playlist to buffer: heap size = 77708"
       108.670	"CMPXM3uPlaylistImporter::DetectCharacterSetL :-> Confidence[0] CharSetId[0x0]"
       108.670	"encoding detected using top character set is 0x1000582d, error 0"
       108.670	"After reading playlist to buffer: heap size = 77708"
       108.670	"CMPXM3uPlaylistImporter::RunL"
       108.670	"CMPXM3uPlaylistImporter::DoTaskStep()"
       108.670	"CMPXM3uPlaylistImporter::DoTaskStepL()"
       108.670	"RMPXHeapManager::Counter 0x46220000, count 186"
       108.670	"RMPXHeapManager::Counter 0x46220000, count 187"
       108.675	"RMPXHeapManager::Counter 0x46220000, count 188"
       108.675	"RMPXHeapManager::Counter 0x46220000, count 189"
       108.675	"RMPXHeapManager::Counter 0x46220000, count 190"
       108.675	"RMPXHeapManager::Counter 0x46220000, count 191"
       108.675	"RMPXHeapManager::Counter 0x46220000, count 192"
       108.675	"RMPXHeapManager::Counter 0x46220000, count 193"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 194"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 195"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 196"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 197"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 198"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 199"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 200"
       108.680	"RMPXHeapManager::Counter 0x46220000, count 201"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 202"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 203"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 204"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 205"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 206"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 207"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 208"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 209"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 210"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 211"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 212"
       108.685	"RMPXHeapManager::Counter 0x46220000, count 213"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 214"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 215"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 216"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 217"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 218"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 219"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 220"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 221"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 222"
       108.690	"RMPXHeapManager::Counter 0x46220000, count 223"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 224"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 225"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 226"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 227"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 228"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 229"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 230"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 231"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 232"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 233"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 234"
       108.695	"RMPXHeapManager::Counter 0x46220000, count 235"
       108.700	"RMPXHeapManager::Counter 0x46220000, count 236"
       108.700	"RMPXHeapManager::Counter 0x46220000, count 237"
       108.700	##MPX Error##: error -20 file mpxm3uplaylistimporter.cpp line 192
       108.700	"CMPXM3uPlaylistImporter::RunL"
       108.700	"CMPXM3uPlaylistImporter::NotifyClient - iAutoEncodingInvalidItems=26 error=-20"
       108.700	"CMPXPlaylistEngine::HandlePlaylistL"
       108.700	"CMPXHarvesterFileHandlerImp::HandleScanStateCompleteL <---"
       108.700	"Scan complete"
       108.700	"Scan error 0"
    Can anyone shed some light on this? I guess "iAutoEncodingInvalidItems" is a clue, but I'm not sure what is wrong with the encoding of my file.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: Loading an m3u playlist into the Music Player (5th Edition)

    You may consider checking if .m3u support actually works (try opening your .m3u file with the File Manager for example).
    There is a -20 error code, you can decode it: http://wiki.forum.nokia.com/index.php/Error_codes

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    107

    Re: Loading an m3u playlist into the Music Player (5th Edition)

    If I open one of the playlists created by my app in the File Manager, it launches the application to handle it, then produces the same error as before, with a visual note saying something like "Operation cancelled, corrupted file".

    However, if I write exactly the same set of track filenames into another .m3u file after converting them to 8-bit text instead of 16-bit, the m3u file then loads perfectly from File Manager. I did try adding a byte order marker in the 16-bit version of the file in case it was looking for one, but it made no difference.

Similar Threads

  1. Music player playlist
    By gpletnev in forum Symbian
    Replies: 3
    Last Post: 2009-04-10, 10:40
  2. Replies: 5
    Last Post: 2008-12-07, 13:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •