\hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e}{}\doxysection{io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+CE Enum Reference}
\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e}\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}


Video degradation preferences when the bandwidth is a constraint.  


\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_af7b054f3993e01f576a7ba1e92727202}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_af7b054f3993e01f576a7ba1e92727202}} 
int {\bfseries get\+Value} ()
\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_aa75fd7dacfe8079a940c4b146b67c2f1}{M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+A\+U\+TO}} =(-\/1)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a906a24cb18b34be8413ae34352a73ae2}{M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+Q\+U\+A\+L\+I\+TY}} =(0)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_ada1994b7a25c1608f26bd337e0a4d86b}{M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+F\+R\+A\+M\+E\+R\+A\+TE}} =(1)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a11b3ad3c189b57ae706f620a74eb44ea}{M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+B\+A\+L\+A\+N\+C\+ED}} =(2)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a938ecc7587e88f177b1c628985fc7d20}{M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+R\+E\+S\+O\+L\+U\+T\+I\+ON}} =(3)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_ab4d48e8a1baa61116e6106563c9b33e8}{D\+I\+S\+A\+B\+L\+ED}} =(100)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Video degradation preferences when the bandwidth is a constraint. 

\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_aa75fd7dacfe8079a940c4b146b67c2f1}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_aa75fd7dacfe8079a940c4b146b67c2f1}} 
\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}!MAINTAIN\_AUTO@{MAINTAIN\_AUTO}}
\index{MAINTAIN\_AUTO@{MAINTAIN\_AUTO}!io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}
\doxysubsubsection{\texorpdfstring{MAINTAIN\_AUTO}{MAINTAIN\_AUTO}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+C\+E.\+M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+A\+U\+TO =(-\/1)}

-\/1\+: (Default) Automatic mode. The S\+DK will automatically select M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+F\+R\+A\+M\+E\+R\+A\+TE, M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+B\+A\+L\+A\+N\+C\+ED or M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+R\+E\+S\+O\+L\+U\+T\+I\+ON based on the video scenario you set, in order to achieve the best overall quality of experience (QoE). \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a906a24cb18b34be8413ae34352a73ae2}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a906a24cb18b34be8413ae34352a73ae2}} 
\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}!MAINTAIN\_QUALITY@{MAINTAIN\_QUALITY}}
\index{MAINTAIN\_QUALITY@{MAINTAIN\_QUALITY}!io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}
\doxysubsubsection{\texorpdfstring{MAINTAIN\_QUALITY}{MAINTAIN\_QUALITY}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+C\+E.\+M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+Q\+U\+A\+L\+I\+TY =(0)}

0\+: Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_ada1994b7a25c1608f26bd337e0a4d86b}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_ada1994b7a25c1608f26bd337e0a4d86b}} 
\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}!MAINTAIN\_FRAMERATE@{MAINTAIN\_FRAMERATE}}
\index{MAINTAIN\_FRAMERATE@{MAINTAIN\_FRAMERATE}!io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}
\doxysubsubsection{\texorpdfstring{MAINTAIN\_FRAMERATE}{MAINTAIN\_FRAMERATE}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+C\+E.\+M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+F\+R\+A\+M\+E\+R\+A\+TE =(1)}

1\+: Degrade resolution in order to maintain framerate. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a11b3ad3c189b57ae706f620a74eb44ea}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a11b3ad3c189b57ae706f620a74eb44ea}} 
\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}!MAINTAIN\_BALANCED@{MAINTAIN\_BALANCED}}
\index{MAINTAIN\_BALANCED@{MAINTAIN\_BALANCED}!io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}
\doxysubsubsection{\texorpdfstring{MAINTAIN\_BALANCED}{MAINTAIN\_BALANCED}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+C\+E.\+M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+B\+A\+L\+A\+N\+C\+ED =(2)}

2\+: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+B\+A\+L\+A\+N\+C\+ED has a lower reduction than M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+Q\+U\+A\+L\+I\+TY and M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+F\+R\+A\+M\+E\+R\+A\+TE, and this preference is suitable for scenarios where both smoothness and video quality are a priority. \begin{DoxyNote}{Note}
The resolution of the video sent may change, so remote users need to handle this issue. See {\ttfamily on\+Video\+Size\+Changed}. 
\end{DoxyNote}
\mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a938ecc7587e88f177b1c628985fc7d20}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_a938ecc7587e88f177b1c628985fc7d20}} 
\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}!MAINTAIN\_RESOLUTION@{MAINTAIN\_RESOLUTION}}
\index{MAINTAIN\_RESOLUTION@{MAINTAIN\_RESOLUTION}!io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}
\doxysubsubsection{\texorpdfstring{MAINTAIN\_RESOLUTION}{MAINTAIN\_RESOLUTION}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+C\+E.\+M\+A\+I\+N\+T\+A\+I\+N\+\_\+\+R\+E\+S\+O\+L\+U\+T\+I\+ON =(3)}

3\+: Reduces the video frame rate while maintaining the video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_ab4d48e8a1baa61116e6106563c9b33e8}\label{enumio_1_1agora_1_1rtc2_1_1video_1_1_video_encoder_configuration_1_1_d_e_g_r_a_d_a_t_i_o_n___p_r_e_f_e_r_e_n_c_e_ab4d48e8a1baa61116e6106563c9b33e8}} 
\index{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}!DISABLED@{DISABLED}}
\index{DISABLED@{DISABLED}!io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE@{io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION\_PREFERENCE}}
\doxysubsubsection{\texorpdfstring{DISABLED}{DISABLED}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+video.\+Video\+Encoder\+Configuration.\+D\+E\+G\+R\+A\+D\+A\+T\+I\+O\+N\+\_\+\+P\+R\+E\+F\+E\+R\+E\+N\+C\+E.\+D\+I\+S\+A\+B\+L\+ED =(100)}

4\+: Disabled V\+QC adjustion. 