示例#1
0
 public int SetBitrate(int Value) {
   TH264EncoderServer _Server = VideoFrameSource.Server;
   if (_Server != null) {
     if (_Server.Clients_Count() == 1) {
       _Server.SetBitrate(Value);
       // .
       return SetBitrateResult_Ok; // . ->
     } else return SetBitrateResult_SourceNonExcusiveAccess; // . ->
   } else return SetBitrateResult_SourceNotAvailable; // . ->
 }
示例#2
0
 public int GetBitrate() {
   TH264EncoderServer _Server = VideoFrameSource.Server;
   if (_Server != null) return _Server.GetBitrate(); // . ->
   else return -1; // . ->
 }