×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Possibe to call real player(video) from another program?

    Dear All,

    Is it possible to call real player from my program to play video. That means inside my coding i want to open real player & play specific video. or is it possible to play video in openGLES enviroment suppose in one of the example of nokia openGLES Sdk's.

    Basically I want to play video in mobile AR enviroment.

    any suggestions/idea/comments/resources...

    Thanks
    Sabera

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

    Re: Possibe to call real player(video) from another program?

    You can use CDocumentHandler API to open the file and it will be handled by the predefined application from device. Try out this Wiki article: http://wiki.forum.nokia.com/index.ph...ocumentHandler
    Nokia Developer Wiki Moderation team

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Re: Possibe to call real player(video) from another program?

    Quote Originally Posted by kiran10182 View Post
    You can use CDocumentHandler API to open the file and it will be handled by the predefined application from device. Try out this Wiki article: http://wiki.forum.nokia.com/index.ph...ocumentHandler
    ok..thanks

    But this article confuse me little bit. actaully what do mean by standalone & embadded version?

    If i want to open real player inside my program then i need to give uid(real player) info and also video file name inside my coding .so how i put this information.here its not clear...

    I already tried CVideoPlayerUtility to play video in openGLES envrioment for mobile AR. but facing problems..

    Regards
    Sabera

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Possibe to call real player(video) from another program?

    Embedded means that the file will be played within your application. Where as standalone will call it separately. You should try that code and experience the difference. You can create one test GUI application and execute that code.
    Nokia Developer Wiki Moderation team

  5. #5
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Re: Possibe to call real player(video) from another program?

    Quote Originally Posted by kiran10182 View Post
    Embedded means that the file will be played within your application. Where as standalone will call it separately. You should try that code and experience the difference. You can create one test GUI application and execute that code.
    ok thanks ..I m following MIME type..and its work!! but the problem its constantly opening real player and playing the video file.that means every second its opening the real player ..but I want when call realplayer it should open only one clip.

    _LIT(KVideoPath1,"c:\\Data\\video.3gp");

    RApaLsSession session;
    User::LeaveIfError(session.Connect());
    CleanupClosePushL(session);

    TBuf<50> fileName;

    fileName.Copy(KVideoPath1);
    RDebug::Print(_L("fileName = %S"), &fileName);

    // Gets the UID and MIME type for the given file name.
    TUid uid;
    TDataType dataType;
    User::LeaveIfError(session.AppForDocument(fileName, uid, dataType));

    // Runs the default application using the MIME type, dataType.
    // You can also use the UID to run the application.
    TThreadId threadId;
    User::LeaveIfError(session.StartDocument(fileName, dataType, threadId));

    CleanupStack::PopAndDestroy(); // session


    }


    plz suggest where is the problem..I want my program play should play video one time using real player.

    Thanks
    Sabera

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Possibe to call real player(video) from another program?

    Hmm, what if you play the file from your phone's file browser? Does it play it in a single go?

    Also try CDocumentHandler as I said before and see if there is any difference.
    Nokia Developer Wiki Moderation team

  7. #7
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Re: Possibe to call real player(video) from another program?

    Quote Originally Posted by kiran10182 View Post
    Hmm, what if you play the file from your phone's file browser? Does it play it in a single go?

    Also try CDocumentHandler as I said before and see if there is any difference.
    yea if i open this video from file manager it play once in real player.but in my program running time the video continue open using new real player...
    also is there any way to pause video file using following code....

    Thanks
    Sabera...

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Possibe to call real player(video) from another program?

    where you put your code in your program. can you put some long and make sure that it is not called multiple times.

  9. #9
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Possibe to call real player(video) from another program?

    good to debug it, may your code called twice

  10. #10
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Re: Possibe to call real player(video) from another program?

    Quote Originally Posted by skumar_rao View Post
    where you put your code in your program. can you put some long and make sure that it is not called multiple times.
    Basically I m using video for Augmented Reality purposes. So when camera detect the marker that time it play the video through real player.I already able to stop multiple playing. Now my research is how to pause video when marker is gone out (invisible)from camera.

    is there any way to pause video from this coding not from real player?

    Thanks
    Sabera

  11. #11
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Possibe to call real player(video) from another program?

    i donot think you can control the the Realplayer but you can try looking at the plugIn SDK APIs about PlayerRemoteControl etc

  12. #12
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Re: Possibe to call real player(video) from another program?

    Hello All,

    Again I want to know one issue from this topic.

    In this program real player start and play video after detect marker(my AR case). Is it possible to automatically real player close and retrun back to my program(real time video capture for AR) after completing the play video from real player.At now I need to stop/back manualy in real player to back to my program .

    Is it possible in this coding? or any other way?

    Thanks
    Sabera..

Similar Threads

  1. Play video in nokia 6680 by real player
    By rock2007 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-04-23, 19:36
  2. Call Real Player From Java Mobile App. ?
    By bybash in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-02-20, 14:08
  3. how to use Real Player plugin for video streaming in our app??
    By krishnaramram in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-06-29, 08:03
  4. Calling Real One Player from my own program
    By sandflyzuo in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-04-28, 09:03
  5. Calling Real One Player from my own program
    By noxious in forum Symbian
    Replies: 1
    Last Post: 2003-10-20, 14:59

Posting Permissions

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