Namespaces
Variants
Actions

Archived:VideoControl.getDisplayWidth() returns null in S60 3rd Edition devices (Known Issue)

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.


SignpostIcon FilmReel 52.png
Article Metadata

Tested with
Devices(s): Nokia E70, Nokia N80, Nokia N91

Compatibility
Platform(s): S60 3rd Edition

Article
Created: User:Technical writer 1 (19 Dec 2006)
Last edited: hamishwillee (28 Jun 2012)

Overview

The method videoControl.getDisplayWidth() works with Nokia 6680, S60 2nd Edition - but S60 3rd Edition devices return null.

Description

Reading the value of videoControl.getDisplayWidth() in canvas returns null in S60 3rd Edition devices.

How to reproduce

If there is an instance of videoControl named "video", read the value of video.getDisplayWidth() and display output to user. This should return null. To confirm the problem, use the following method:

x = video.getSourceWidth();
y = video.getSourceHeight();

Set the the DisplaySize manually with the following line:

video.setDisplaySize(x,y);

After this video.getDisplayWidth() should return a value (set to be the same as sourceWidth). It depends on the device whether it is equal or a few pixels less than the actual width of the current render would otherwise be. For example in the Nokia 6680 (where this problem does not occur), the original DisplayWidth is 160 and the sourceWidth returns value 156 for the used test video.

This page was last modified on 28 June 2012, at 08:13.
253 page views in the last 30 days.
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