×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Problem to play link in Internet Radio example.

    Hi

    When I run internet radio example in s60 3rd edition FP1 emulator at that time give me error. I attach error image also.

    Error: "Error connecting to server. the stream format is not supported."

    I want to play .Mp3 and .WAV streaming files from server. so i try to get reference from this example. If anybody have any idea that how to play .MP3 streaming link on mobile than please tell me you suggetion and idea. If you have any solution or any thing please help me.

    Thank You in Advance

    Regards
    SymbianTH
    Attached Images Attached Images

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Problem to play link in Internet Radio example.

    Quote Originally Posted by SymbianTH View Post
    When I run internet radio example in s60 3rd edition FP1 emulator at that time give me error. I attach error image also.
    It seems to be S60 3rd FP2 v1.1 to me. Anyway, not all multimedia features work in the emulator, you should consider testing the example on a device too.

  3. #3
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Problem to play link in Internet Radio example.

    Quote Originally Posted by wizard_hu_ View Post
    It seems to be S60 3rd FP2 v1.1 to me. Anyway, not all multimedia features work in the emulator, you should consider testing the example on a device too.
    Hi

    Yes I tested on Nokia E71 also but same do not play any radio file.

    When I debug all code got that it's come in following highlighted line. It give me -5 error.

    Code:
    void CShoutcastStream::MaoscOpenComplete(
    	TInt aError )
    	{
    	TInt err;
    	if ( aError == KErrNone )
    		{
    		// If this leaves with KErrNotSupported, no decoder was found that support the
    		// specified encoded data stream.
    		TRAP(err, iStreamOutput->SetDataTypeL(iDataType.FourCC()));
    		if ( err )
    			{
    			if ( err == KErrNotSupported )
    				{
    				iDispatcher->SendEvent(TUid::Uid(KShoutcastStreamUid), KErrShoutcast_FormatNotSupported);
    				}
    			else
    				{
    				iDispatcher->SendEvent(TUid::Uid(KShoutcastStreamUid), err);
    				}
    			//LOG1("SetDataType: Leaving with %d err",err);
    			return;
    			}
    
            //LOG2("Setting audio properties: sampleRate=%d channels=%d",iAudioSettings.iSampleRate,iAudioSettings.iChannels);
    
    		TRAP(err, iStreamOutput->SetAudioPropertiesL(iAudioSettings.iSampleRate, iAudioSettings.iChannels));
    		if ( err )
    			{
    			iDispatcher->SendEvent(TUid::Uid(KShoutcastStreamUid), err);
    			LOG1("SetAudioPropertiesL: Leaving with %d err", err);
    			return;
    			}
    
    		LOG1("SetAudioPropertiesL: Max Volume = %d", iStreamOutput->MaxVolume());
    		iStreamOutput->SetVolume(iVolume);
    		
    		iStreamOutput->SetPriority(80 , EMdaPriorityPreferenceTimeAndQuality);
    
    		//announce the client that we are connected
    		iDispatcher->SendEvent(TUid::Uid(KShoutcastStreamUid),KShoutcastEvent_Connected);
    		iState = EData;//this should be the only place where iState gets assigned the EData value!
    		}
    	else
    		{
    		iDispatcher->SendEvent(TUid::Uid(KShoutcastStreamUid), aError);
    		}
    
    	LOG("MaoscOpenComplete OK");
    	}

    Please help me for solve this problem.

    Regards,
    SymbianTH

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Problem to play link in Internet Radio example.

    If it happens in the emulator, -5 is exactly that what I was talking about: http://wiki.forum.nokia.com/index.php/Error_codes
    If it happens during on device debugging, well, in that case you will probably have to find some other solution (some different format and/or some different API)

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Unhappy Re: Problem to play link in Internet Radio example.

    Hi

    I download S60InternetRadio.sisx and Shoutcoust.sisx from following link.
    http://opensource.nokia.com/projects...lientPage.html

    Install this and try to play on Nokia N73. but do not play. so i go from following link
    http://www.shoutcast.com/
    and find "Station: Super FM! Turkiye'nin En Super'i" and do double click on "tune" button save file in and renamed shoutcast.pls.

    Now transfer his file in mobile phonememory c:/shoutcast/ and again try to play internet radio.

    but now problem is come one dialog box do process without end with "Connecting to http://94.23.13.100:9080" (it's Process Dialog Box). Nothing to go process in next step.

    In this link they wrote this application is tested on real device and played radio succeffuly.
    http://opensource.nokia.com/projects...lientPage.html

    Please tell me where i am going on wrong way. please help me. I need yours help for play .mp3 data on mobile.

    Regards,
    SymbianTH

Similar Threads

  1. nokia 6120 classic MIDP Internet Connection problem..
    By dream_bolt in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-06-24, 20:43
  2. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  3. Replies: 9
    Last Post: 2006-12-21, 20:42
  4. audio play problem
    By xjf10696 in forum Symbian
    Replies: 0
    Last Post: 2005-05-30, 03:23

Posting Permissions

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