×

Discussion Board

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

    How to open URL in RealPlayer in Program?

    Hi

    i am able to open Real Player in my program but not able to open URL in this player.

    //for 3rd edition
    TVwsViewId videoid(TUid::Uid(0x10005a3e), TUid::Uid(0x01));
    ActivateViewL(videoid);

    I want to Open URL: rtsp://stream.zoovision.com/musicvideos/well_make_a_lover_of_you.3gp

    Sameway when you write this link into web->addressbar and open than this file directly play in real player.

    How to implement in program?

    Regards,
    SymbianTH

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

    Re: How to open URL in RealPlayer in Program?

    I tried following way.

    HBufC* param = HBufC::NewLC( 250 );
    param->Des().Copy(aUrl);

    CDocumentHandler *iDocHandler = CDocumentHandler::NewL( CEikonEnv::Static()->Process() );
    CleanupStack::PushL(iDocHandler);

    TDataType data = TDataType(KNullUid);
    iDocHandler->OpenFileEmbeddedL(aUrl, data);

    CleanupStack::PopAndDestroy();

    Regards,
    SymbianTH

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: How to open URL in RealPlayer in Program?

    Quote Originally Posted by SymbianTH View Post
    I tried following way.

    HBufC* param = HBufC::NewLC( 250 );
    param->Des().Copy(aUrl);

    CDocumentHandler *iDocHandler = CDocumentHandler::NewL( CEikonEnv::Static()->Process() );
    CleanupStack::PushL(iDocHandler);

    TDataType data = TDataType(KNullUid);
    iDocHandler->OpenFileEmbeddedL(aUrl, data);

    CleanupStack::PopAndDestroy();

    Regards,
    SymbianTH
    And what happens, does it work or not ?, do you get any errors etc..

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

    Re: How to open URL in RealPlayer in Program?

    Yes, I got a panic like.

    KErrBadName -28 A file name or other object name does not conform to
    the required syntax.

    Regards,
    SymbianTH

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How to open URL in RealPlayer in Program?

    I never used CDocumentHandler to launch RealPlyer, but if i am not wrong than you need to pass KEpocUrlDataTypeHeader as data type.

    Something like.
    Code:
    TDataType data = TDataType(KEpocUrlDataTypeHeader);
    iDocHandler->OpenFileEmbeddedL(aUrl, data);
    You can also launch realplyer with URL using RApaLsSession::StartDocument(), in which first parameter would be URL.

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

    Re: How to open URL in RealPlayer in Program?

    Quote Originally Posted by savaj View Post
    I never used CDocumentHandler to launch RealPlyer, but if i am not wrong than you need to pass KEpocUrlDataTypeHeader as data type.

    Something like.
    Code:
    TDataType data = TDataType(KEpocUrlDataTypeHeader);
    iDocHandler->OpenFileEmbeddedL(aUrl, data);
    You can also launch realplyer with URL using RApaLsSession::StartDocument(), in which first parameter would be URL.
    Hi

    Give me same error = -28

    I tried
    TDataType data = TDataType(KEpocUrlDataTypeHeader);
    iDocHandler->OpenFileEmbeddedL(aUrl, data);

    Regards,
    SymbianTH

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How to open URL in RealPlayer in Program?

    And have you tried to launch real player using RApaLsSession::StartDocument()??

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

    Re: How to open URL in RealPlayer in Program?

    Quote Originally Posted by savaj View Post
    And have you tried to launch real player using RApaLsSession::StartDocument()??
    Hi

    Yes using RApaLsSession::StartDocument() now able to open and play video file in real player but real player opened in web application and i want to open player on my container screen and play video file.

    I tested video example and this application able to play video with real player on container screen but do not work/play in Real Device.

    In Real Device i receive error like -34 KErrCouldNotConnect.

    How to solve this problem? any idea? please help me on this problem.

    Regards,
    SymbianTH

  9. #9
    Registered User
    Join Date
    Sep 2005
    Posts
    2

    Re: How to open URL in RealPlayer in Program?

    U can create temp file with extension .ram - simple text file with link.

    TDataType data = TDataType(KNullUid);
    TBuf<256>param;
    param.Copy(_L("C:\\Data\\1.ram"));
    //
    // write rtsp link to file
    //
    iHandler->OpenFileEmbeddedL(param,data);

    It worked for me....

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

    Re: How to open URL in RealPlayer in Program?

    Quote Originally Posted by WoodyAllen35 View Post
    U can create temp file with extension .ram - simple text file with link.

    TDataType data = TDataType(KNullUid);
    TBuf<256>param;
    param.Copy(_L("C:\\Data\\1.ram"));
    //
    // write rtsp link to file
    //
    iHandler->OpenFileEmbeddedL(param,data);

    It worked for me....
    Hi

    I get unknown file format -12003 Error.
    KErrMMNetworkWrite -12003 An error occurred while writing data to the network

    I am using VRex Example

    TDataType data = TDataType(KNullUid);
    TBuf<256>param;
    param.Copy(_L("C:\\Data\\1.ram"));
    iEngine->iVPlayer->DocumentHandlerL().OpenFileEmbeddedL(param,data);

    i also renamed attached file.

    Regards,
    SymbianTH
    Attached Files Attached Files
    • File Type: txt 1.txt (68 Bytes, 142 views)
    Last edited by SymbianTH; 2009-06-26 at 12:43.

  11. #11
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    165

    Re: How to open URL in RealPlayer in Program?

    I tried like this:
    Code:
    HBufC* param = HBufC::NewLC( 250 );
    _LIT(kdata,"rtsp://192.168.86.166:554/test.3gp");
    TBufC<100> aUrl(kdata);
    const TInt KWmlBrowserUid = 0x10005A3E; 
    TUid id( TUid::Uid( KWmlBrowserUid ) );
    TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
    TApaTask task = taskList.FindApp( id );
    if ( task.Exists() )
    {
    	HBufC8* param8 = HBufC8::NewLC( param->Length() );
    	param8->Des().Append( *param );
    	task.SendMessage( TUid::Uid( 0 ), *param8 ); // Uid is not used
    	CleanupStack::PopAndDestroy(); // param8
    }
    else
    {
    	RApaLsSession appArcSession;
    	User::LeaveIfError(appArcSession.Connect()); // connect to AppArc server
    	TThreadId id;
    	appArcSession.StartDocument( aUrl, TUid::Uid( KWmlBrowserUid ), id );
    	appArcSession.Close();
    }
    CleanupStack::PopAndDestroy(); // param
    The code can launch RealPlayer, then RealPlayer try to connect the server, but it failed: "Unable to connect to server. File not found." Then I tried not using my program, but RealPlayer, I got the same result.
    Why it perform like this?

  12. #12
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: How to open URL in RealPlayer in Program?

    Have you set the access point for the Real Player within the Real Player itself? It is a separate setting from the browser access point.

    Mark

Similar Threads

  1. Replies: 2
    Last Post: 2010-01-13, 01:43
  2. program failure in 6600
    By wing0custom in forum Mobile Java General
    Replies: 3
    Last Post: 2004-02-21, 19:08
  3. a simple program help
    By phelgm in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-26, 17:27
  4. Replies: 1
    Last Post: 2003-12-01, 14:17

Posting Permissions

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