×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    13

    Question centering video from server on screen - Sizing

    hi...i am trying to play some video from server...The video plays proper but the display of video starts from top left of canvas and extends only upto certain height and width.
    My questions:-

    1) Is there any way by which video can occuply whole or atleast 95% of canvas?

    2) And how do I center the video if above is not completely possible?

    When I playback the video after recording, it occupies almost whole screen, but when I play from server, it occupies some fixed small display size and I am not able to change it.

    Any inputs please...

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: centering video from server on screen - Sizing

    Once you have the VideoControl instance of your player, you can modify size and location (assuming you use VideoControl.USE_DIRECT_VIDEO mode) with the following methods:
    Code:
    videoControl.setDisplaySize(videoWidth, videoHeight);
    				
    videoControl.setDisplayLocation(videoX, videoY);
    If you want to center your video within the containing Canvas, you can use getDisplayHeight() and getDisplayWidth() methods of the VideoControl object.

    Anyway, behaviour of these methods (in particular of size-related methods) changes from phone to phone, so you can have different behaviours (for example, video size not changed) depending on the target phones.

    Pit

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    13

    Re: centering video from server on screen - Sizing

    Hi jappit

    Thanks for that help. Yeah, I had used USE_DIRECT_VIDEO in VideoControl. Then I did:-

    Code:
    setFullScreenMode(true);
    screenW = getWidth();
    screenH = getHeight();
    After that:-

    Code:
    videoControl.setDisplayLocation(1, 1);
    videoControl.setDisplaySize(screenW - 1, screenH - 1);
    The video size didnt increase. I think that might be the behaviour with N95.

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: centering video from server on screen - Sizing

    It seems it's a known issue of S60 3rd edition:

    http://wiki.forum.nokia.com/index.ph...dition_devices

    Pit

Similar Threads

  1. Screen capture | Video Recording
    By pavanmv in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2007-11-01, 09:35
  2. Video capturing and streaming to a server
    By xarling in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2007-07-20, 07:42
  3. Video Streaming Server
    By jilko in forum Streaming and Video
    Replies: 2
    Last Post: 2007-03-27, 22:59
  4. Autostarting Video in Full Screen Mode
    By Alco Fresh in forum Mobile Java General
    Replies: 1
    Last Post: 2007-02-17, 02:24
  5. Upload Video To server
    By praveen_bluebird in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-11-22, 09:57

Posting Permissions

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