×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    50

    Q: How to override player's streaming proxy settings through MMF API?

    We are using Series 60 2nd Edition's Multimedia Framework (MMF) API for playing RealMedia and 3GPP audio/video streams in our own application on Nokia Series 60 2nd edition devices.

    CVideoPlayerUtility class instance is constructed without defining any media controller UID, so phone's built-in RealPlayer is used for playback by default. OpenUrlL() function is used for opening media streams and it works basically great, but there is a one major problem:

    It seems that there is no way to define streaming proxy settings to the player through MMF API. OpenUrlL function takes access point ID as a parameter, but it still uses the streaming proxy settings configured to the device's RealPlayer.

    Due to this, if there is a proxy set in the Real Player's configuration, it will be used even if we would not like to use a proxy at all. On the other hand, if we would like to use a different proxy than set in the Real Player's settings, it cannot be set (not at least by using OpenUrlL function).

    CVideoPlayerUtility::OpenUrlL function is declared as following:
    void OpenUrlL(const TDesC& aUrl, TInt aIapId, const TDesC8& aMimeType, TUid aControllerUid);

    So, we are wondering if there is any way to override player's streaming proxy address and port when the MMF API and CVideoPlayerUtility class is used for playing the media stream?

    I thought that there could be a change to use custom commands that can be sent to media controller plugin, but I don't have a clue what kind of custom commands are implemented by particular controller plugin (if there are any).

    There are some functions defined in CVideoPlayerUtility for sending custom commands to the controller plugins:

    TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2, TDes8& aDataFrom);

    TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2);

    void CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2, TDes8& aDataFrom, TRequestStatus& aStatus);

    void CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination, TInt aFunction, const TDesC8& aDataTo1, const TDesC8& aDataTo2, TRequestStatus& aStatus);

    Could these be used for overriding player's proxy settins, and if so, how? Or is there any other reliable way to override RealPlayer's proxy settings?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    14

    Re: Q: How to override player's streaming proxy settings through MMF API?

    Hey guyz,
    Are you able to test anything on the emulator? I am trying a simple instantiation of CMdaAudioPlayerUtility or any other MMF client and my emulator crashes. This on WINCWS UDEB.
    Any help is appreciated, I will be trying to run the darn thing on the device tomorrow.

    Rgds.
    Mandar

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  2. Replies: 0
    Last Post: 2005-10-06, 08:35
  3. Socket connection and Proxy settings
    By ibrahim_javees in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-10-25, 14:32
  4. Proxy settings
    By nian03 in forum General Development Questions
    Replies: 0
    Last Post: 2003-11-05, 10:46

Posting Permissions

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