Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    Hi all,

    I would like play Video file from network using http or RTSP.


    I using S60 3 rd edition and FP2
    Is this done using MVideoPlayerUtilityObserver these API.Can any body give starting point or any needful information.

    Thanks
    Pavan

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    MXy is always a callback, usually something that is used for notifying your code about happenings (that is why it is called observer, but you can also read its documentation). You should rather search for a class which uses this MVideoPlayerUtilityObserver. And that class will have a method called OpenUrlL.

  3. #3
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    Can anybody guide me how to use this MVideoPlayerUtilityObserver
    Any brief idea will be fine.
    Thanks
    Pavan.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You may want to consider searching for MVideoPlayerUtilityObserver in the Wiki.

  5. #5
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    In CeMplayer1AppUi::HandleCommandL(TInt aCommand)--> In Play Command -->i am creating new instance of CMediaengine which extends MVideoPlayerUtilityObserver.

    Code:
    iMediaEng = CMediaEngine::NewL(iAppView);
    			iMediaEng->InitControllerL();
    
    My InitControllerL() implementation is shown below..
    
    void CMediaEngine ::InitControllerL()   
        {
         iPlayer = NULL;
         iPlayer = CVideoPlayerUtility::NewL(*this,EMdaPriorityNormal,
                                            EMdaPriorityPreferenceNone,
    	                                iView->ClientWsSession(),
                         			iView->ScreenDevice(),
    					iView->ClientWindow(),
    					iView->VideoRect(),
    					iView->VideoRect() );
     
         iPlayer->OpenUrlL(KHelloFileName);//KHelloFileName is "rtsp://130.128.30.220/3gv2"
        }

    i am unbale to play the streaming video(RTSP).

    Can anybody give me idea where the problem will be?

    Thanks
    Pavan

  6. #6
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    Can anybody help me out in this regards??

    -Thanks
    Pavan

  7. #7
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    hi..are you getting any panic on opening that url or a blank screen is appearing ?...

  8. #8
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    Quote Originally Posted by vineet.jain View Post
    hi..are you getting any panic on opening that url or a blank screen is appearing ?...
    No Panic..Just black screen.

    ThankYou,

    Regards,
    Pavan.

  9. #9
    Regular Contributor mrudulpen's Avatar
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    368
    Hi,

    Are you trying the link you gave above (rtsp://130.128.30.220/3gv2)

    Have you tried opening it in some media player to see it it works?

    TRy some other link
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  10. #10
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    Quote Originally Posted by mrudulpen View Post
    Hi,
    Have you tried opening it in some media player to see it it works?
    because of confidentiality issue,Here i am not mentioning proper link.
    But i have RTSP link using which i am able to stream properly in media player.
    So i hope there is no issue with URL.Its working alright.

    Any other possible bugs??

    Thank You,

    Regards,
    Pavan.

  11. #11
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    ok..you may try one thing, see if you are able to play any file which is on your device, through your application.I mean give OpenL() instead of OpenUrl(), this will confirm that problem is in playing file from url or problem in playing from the video player you constructed, so just see if black screen still comes if you play any file from your device location.

  12. #12
    Regular Contributor Tatavarthi's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    83
    Quote Originally Posted by vineet.jain View Post
    ok..you may try one thing, see if you are able to play any file which is on your device, through your application.I mean give OpenL() instead of OpenUrl(), this will confirm that problem is in playing file from url or problem in playing from the video player you constructed, so just see if black screen still comes if you play any file from your device location.
    As you said i used OpenFileL() -- using this i am able to play the video.But instead of playing complete file,it is playing only for a while and pausing itself.
    Will there any relation between this and my RTSP stream.I am using mime type MP4.
    Thanks
    Pavan.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved