×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Playing Video from Network

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: Playing Video from Network

    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
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Re: Playing Video from Network

    Can anybody guide me how to use this MVideoPlayerUtilityObserver
    Any brief idea will be fine.
    Thanks
    Pavan.

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

    Re: Playing Video from Network

    You may want to consider searching for MVideoPlayerUtilityObserver in the Wiki.

  5. #5
    Regular Contributor
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Re: Playing Video from Network

    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
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Re: Playing Video from Network

    Can anybody help me out in this regards??

    -Thanks
    Pavan

  7. #7
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,073

    Re: Playing Video from Network

    hi..are you getting any panic on opening that url or a blank screen is appearing ?...

  8. #8
    Regular Contributor
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Re: Playing Video from Network

    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
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: Playing Video from Network

    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
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Re: Playing Video from Network

    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
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,073

    Re: Playing Video from Network

    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
    Join Date
    Aug 2007
    Location
    India
    Posts
    83

    Re: Playing Video from Network

    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
  •  
×