BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-23-2009, 12:55 AM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8800
PIN: N/A
Carrier: BlackBerry Enterprise server
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default videoControl.getSourceWidth() return different values?

Please Login to Remove!

I am deveploing a video player and I want to show the movie of its original height and width.

player = Manager.createPlayer(is,"video/x-msvideo";
player.realize();
player.prefetch();
player.setLoopCount(-1);
player.addPlayerListener(this);
videoControl = (VideoControl)player.getControl("VideoControl";
videoField = (Field)videoControl.initDisplayMode(VideoControl.U SE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field";
add(videoField);
videoControl.setDisplaySize(videoControl.getSource Width() , videoControl.getSourceHeight());
videoControl.setVisible(true) ;

This above code show the movie of screen height and screen width.
When I stop the movie the videoControl.getSourceWidth() return me true source width.

Why does same method give me different value at start and different at stop. How can I show movie of original height and width.
Offline  
Closed Thread


Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

NEC DT710 Series ITL-8LDE-1 (690071) Black (NIB) 8 Button Desiless VoIP (PoE Co
$179.0
NEC DT710 Series ITL-8LDE-1 (690071) Black (NIB) 8 Button Desiless  VoIP (PoE Co pictureDigium Switchvox 65 VoIP PBX Appliance
$195.0
Digium Switchvox 65 VoIP PBX Appliance pictureAudiocodes MP118 8FXS 3AC MP 118 Analog Gateway SIP VoIP 1 Year Warranty
$155.0
Audiocodes MP118 8FXS 3AC  MP 118 Analog Gateway SIP VoIP 1 Year Warranty pictureNortel IP Phone 2002 VOIP Office Desk NTDU91BC70E6 Caller ID Voice Mail LCD
$69.99
Nortel IP Phone 2002 VOIP Office Desk NTDU91BC70E6 Caller ID Voice Mail LCD  pictureDialogic DMIP241-1T1 PCIW 100BT VOIP - DMIP2411T1100 BTPCIW 882-707
$950.0
Dialogic DMIP241-1T1 PCIW 100BT VOIP - DMIP2411T1100 BTPCIW 882-707 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.