Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:55, 23 August 2007.

KIJ000525 - VideoControl.getDisplayWidth() returns null in S60 3rd Edition devices

From Forum Nokia Wiki


videoControl.getDisplayWidth() returns null in S60 3rd Edition devices
KIJ000525
Overview
videoControl.getDisplayWidth() function works with Nokia 6680, S60 2nd Edition - but S60 3rd Edition devices return null.
Reported against
S60 3rd Edition, Nokia E70, Nokia N80, Nokia N91.
Date identified
December 19, 2006
Symptoms
-
Detailed 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.
Solution
-
Related Discussions
Thread Thread Starter Forum Replies Last Post
Retreiving IMSI and IMEI on Series60 3rd Edition Phones preethi General Symbian C++ 12 2007-10-21 06:08
VideoControl in a Form SurfingPop Mobile Java Media (Graphics & Sounds) 1 2008-02-04 23:35
is there a File class equivalent in J2ME? rj_cybersilver Mobile Java General 44 2007-08-18 15:51
Generalize code for different 3rd edition devices? iti_jha General Symbian C++ 1 2006-11-21 11:16
Upgrading default s60v3 browser in 5500 ireks General Discussion 4 2007-02-15 08:21
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX