×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2008
    Location
    India, Nashik
    Posts
    816

    invoking realplayer to play video

    Hi !

    Can any body guide me in invoking the realplayer to play a video file which is located on a server on web ?
    something like video streaming ? i dont want to create my player now i just want to play the video in the reaplayer by supplying it an URL

    please help
    thanks

    Vishal

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: invoking realplayer to play video

    Quote Originally Posted by vdharankar View Post
    Hi !

    Can any body guide me in invoking the realplayer to play a video file which is located on a server on web ?
    something like video streaming ? i dont want to create my player now i just want to play the video in the reaplayer by supplying it an URL

    please help
    thanks

    Vishal
    Use CVideoPlayerUtility API. Read the API documentation from the SDK help. Give some time in understanding the API.

    Also check this Wiki article: How to play a video file using CVideoPlayerUtility

    All the best.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Feb 2008
    Location
    India, Nashik
    Posts
    816

    Re: invoking realplayer to play video

    I think this class and code will play the video by accessing the device screen and will render the video in the window , but what i want is like for example if i try to open a url such as rts://foo.com/foo.3gp then the browser starts the real player and then the video streaming is handled by realplayer same i want to achieve through the application i want to pass on the URL to real media player and rest it should handle

    Is this possible ? because i have seen some application doing this

    Thanks for reply
    Vishal

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

    Re: invoking realplayer to play video

    Then you have to do following things.

    1)launch realplayer using its UID. (0x10005A3E)
    2)pass URL of your choice during launching realplayer.

    Also follows this thread for more detail.

  5. #5
    Registered User
    Join Date
    Feb 2008
    Location
    India, Nashik
    Posts
    816

    Re: invoking realplayer to play video

    Looks good i think this is what i need , let me try this !


    Thanks for all the efforts

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: invoking realplayer to play video

    Passing the URL directly might be tricky (if at all possible). What you can easily do is download (create) a .ram file and open it with the Document Handler API
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Registered User
    Join Date
    Feb 2008
    Location
    India, Nashik
    Posts
    816

    Re: invoking realplayer to play video

    The following code has worked for me


    HBufC* param = HBufC::NewLC( 250 );

    _LIT(kdata,"rtsp://localhost:554/sample_100kbit.mp4");
    TBufC<100> aUrl = kdata;




    // Wap Browser's constants UId
    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

Similar Threads

  1. J2ME: Ways to play video in Landscape? Launch RealPlayer?
    By redlex in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2009-01-04, 17:31

Posting Permissions

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