×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    7

    Question Volume Control while playing video

    Hi All,

    I am using CVideoPlayerUtility class to play a 3GP video file on a 6630. The video works fine but am unable to mute the volume using SetVolumeL(0). The function call seems to be having no effect at all on the proceedings. Is this a known bug? or am i doing something wrong here?

    Am opening the video file like this:

    ...
    ...

    CVideoPlayerUtility* iPlayer;

    TRect rScreen (TPoint(0, 38), TSize(176, 144));
    TRect rClip (TPoint(12, 39), TSize(152, 142));

    // create player
    iPlayer = CVideoPlayerUtility::NewL( *this,
    EMdaPriorityNormal,
    EMdaPriorityPreferenceNone,
    iMyCoeControl->ClientWsSession(),
    iMyCoeControl->ScreenDevice(),
    iMyCoeControl->ClientWindow(),
    rScreen,
    rClip
    );

    // open video file
    iPlayer->OpenFileL(_L("c:\\nokia\\videos\\video01.3gp"));

    // set volume to ZERO (mute)
    iPlayer->SetVolumeL(0); // this currently has no effect at all

    ...
    ...


    Even after the call to SetVolumeL(0), sound in the video is played by the Player.. Phew!! Any clues??

    Please help.

    thanx,
    starFish.

  2. #2
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: Volume Control while playing video

    It is not at all a bug and you are doing something wrong. Basicall there are some call back function those are there which will be notifications while file is being loaded. SetVolumeL(0) is to be called after MvpuoPrepareComplete() notification but before calling Play().


    SSS

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    7

    Smile Re: Volume Control while playing video

    Hi Sudhakar,

    Thank you!

    I had actually implemented all Mvpuo* callbacks but did not know that SetVolumeL() will work only after the file has been successfully opened. Hehe.. pretty foolish of me..

    Thanx again man,
    starFish

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    37

    Re: Volume Control while playing video

    I find SetVolumeL() has no effect on Nokia6600, and it return -1 that call Volume().
    But it works well on Nokia E71.

    Could anyone tell me the resson.

Similar Threads

  1. Black screen when playing Video on Nokia 6680
    By cbazza@poliplus.com in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-01-26, 17:24
  2. Putting the volume icon on Status panel while playing.
    By khurshed79 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-08-01, 13:41
  3. playing video in emulator
    By cherem in forum Symbian
    Replies: 0
    Last Post: 2005-07-27, 07:55
  4. playing video
    By cherem in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-07-27, 07:53
  5. Drawing image on Video Control
    By satish_kore in forum Mobile Java General
    Replies: 0
    Last Post: 2005-07-17, 13:01

Posting Permissions

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