You Are Here:

Community: Developer Discussion Boards

#1 Old Question centering video from server on screen - Sizing - 2008-04-18, 08:39

Join Date: Mar 2008
Posts: 13
js001
Offline
Registered User
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...
Reply With Quote

#2 Old Re: centering video from server on screen - Sizing - 2008-04-18, 10:40

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
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


www.jappit.com - mobile and web blog
Reply With Quote

#3 Old Re: centering video from server on screen - Sizing - 2008-04-18, 12:38

Join Date: Mar 2008
Posts: 13
js001
Offline
Registered User
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.
Reply With Quote

#4 Old Re: centering video from server on screen - Sizing - 2008-04-18, 12:59

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
It seems it's a known issue of S60 3rd edition:

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

Pit


www.jappit.com - mobile and web blog
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen capture | Video Recording pavanmv Symbian Media (Graphics & Sounds) 9 2007-11-01 10:35
Video capturing and streaming to a server xarling Mobile Java Media (Graphics & Sounds) 4 2007-07-20 08:42
Video Streaming Server jilko Streaming and Video 2 2007-03-27 23:59
Autostarting Video in Full Screen Mode Alco Fresh Mobile Java General 1 2007-02-17 03:24
Upload Video To server praveen_bluebird Symbian Networking & Messaging 3 2006-11-22 10:57

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ