@ -549,6 +549,11 @@ private static Component createVideoAdvancedSettings()
resources . getI18NString (
"impl.media.configform.VIDEO_PACKETS_POLICY" ) ) ,
constraints ) ;
constraints . gridy = 3 ;
centerPanel . add ( new JLabel (
resources . getI18NString (
"impl.media.configform.VIDEO_BITRATE" ) ) ,
constraints ) ;
constraints . weightx = 1 ;
constraints . gridx = 1 ;
@ -598,15 +603,15 @@ public void actionPerformed(ActionEvent e)
} ) ;
final JSpinner videoMaxBandwidth = new JSpinner ( new SpinnerNumberModel (
deviceConfig . getVideo MaxBandwidth ( ) ,
deviceConfig . getVideo RTPPacingThreshold ( ) ,
1 , Integer . MAX_VALUE , 1 ) ) ;
videoMaxBandwidth . addChangeListener ( new ChangeListener ( )
{
public void stateChanged ( ChangeEvent e )
{
deviceConfig . setVideo MaxBandwidth (
( ( SpinnerNumberModel ) videoMaxBandwidth . getModel ( ) )
. getNumber ( ) . intValue ( ) ) ;
deviceConfig . setVideo RTPPacingThreshold (
( ( SpinnerNumberModel ) videoMaxBandwidth . getModel ( ) )
. getNumber ( ) . intValue ( ) ) ;
}
} ) ;
constraints . gridx = 1 ;
@ -614,6 +619,21 @@ public void stateChanged(ChangeEvent e)
constraints . insets = new Insets ( 0 , 0 , 5 , 5 ) ;
centerPanel . add ( videoMaxBandwidth , constraints ) ;
final JSpinner videoBitrate = new JSpinner ( new SpinnerNumberModel (
deviceConfig . getVideoBitrate ( ) ,
1 , Integer . MAX_VALUE , 1 ) ) ;
videoBitrate . addChangeListener ( new ChangeListener ( )
{
public void stateChanged ( ChangeEvent e )
{
deviceConfig . setVideoBitrate (
( ( SpinnerNumberModel ) videoBitrate . getModel ( ) )
. getNumber ( ) . intValue ( ) ) ;
}
} ) ;
constraints . gridy = 3 ;
centerPanel . add ( videoBitrate , constraints ) ;
resetDefaultsButton . addActionListener ( new ActionListener ( )
{
public void actionPerformed ( ActionEvent e )
@ -626,7 +646,9 @@ public void actionPerformed(ActionEvent e)
// unlimited framerate
deviceConfig . setFrameRate ( - 1 ) ;
videoMaxBandwidth . setValue (
DeviceConfiguration . DEFAULT_VIDEO_MAX_BANDWIDTH ) ;
DeviceConfiguration . DEFAULT_VIDEO_RTP_PACING_THRESHOLD ) ;
videoBitrate . setValue (
DeviceConfiguration . DEFAULT_VIDEO_BITRATE ) ;
}
} ) ;