(StreamingBufferControl) _player
.getControl("net.rim.device.api.media.control.StreamingBufferControl");
sbc.setBufferTime(0);
// Obtain video control
final AdvancedVideoControl vControl =
(AdvancedVideoControl) _player
.getControl("net.rim.device.api.media.control.AdvancedVideoControl");
// Initialize the video control and get the video field
videoField =
(Field) vControl.initDisplayMode(
AdvancedVideoControl.USE_GUI_ADVANCED,
"net.rim.device.api.ui.Field");
// Set the video to be a size other than full screen.
// This must be done after calling initDisplayMode().
vControl.setDisplaySize(VIDEO_WIDTH, VIDEO_HEIGHT);
vControl.setVisible(true);
} catch (final Exception e) {
NWMDemo.errorDialog(e.toString());
}
return videoField;