void QtConfrenceVideoWindow::setMediaState( const QString type, const UiMediaState state,bool isAudioSend)
{
  if (type == UiStateTypeRecord) {
    if (!_recordCtrlPanel) {
      return;
    }
    setRecordState(state);

  } else {

	  switch( state ) {
	  case UiMediaState_Initializing:
		  _mediaStateFrame->setHidden(false);
		  break;
	  case UiMediaState_Ready:
		  _mediaStateFrame->setHidden(true);
		  break;
	  case UiMediaState_Run:
      {
        _mediaStateFrame->setHidden(true);
			  if( type==UiStateTypeAudio ) {
				  if(isAudioSend) {
					  _stopAudioFrame->setHidden(true);
				  } else {
					  _stopRecvAudioFrame->setHidden(true);
				  }
			  } else {
				  //_stopVideoFrame->setHidden(true);
          _videoStatuslabel->hide();
        }
			  break;
		  }
	  case UiMediaState_Stop:
      {
        _mediaStateFrame->setHidden(true);
			  if( type==UiStateTypeAudio ) {
				  if (isAudioSend) {
					  _stopAudioFrame->setHidden(false);
				  } else {
					  _stopRecvAudioFrame->setHidden(false);
				  }
        }
			  else {
				  //_stopVideoFrame->setHidden(false);
          _videoStatuslabel->show();
        }
			  break;
		  }
	  } // switch
  } // else
}
示例#2
0
Channel::Channel(const Channel& ch)
{
    processor = ch.processor;
    isEventChannel = ch.isEventChannel;
    isEnabled = ch.isEnabled;
    isMonitored = false;
    isADCchannel = ch.isADCchannel;
    sampleRate = ch.sampleRate;
    bitVolts = ch.bitVolts;
    name = ch.name;
    eventType = ch.eventType;
    nodeId = ch.nodeId;
    num = ch.num;
	type = ch.type;

    originalStream = ch.originalStream;
    originalChannel = ch.originalChannel;

    setRecordState(false);
}
示例#3
0
文件: Channel.cpp 项目: ahermosm/GUI
Channel::Channel(const Channel& ch)
{
    index = ch.index;
    nodeIndex = ch.nodeIndex;
	mappedIndex = ch.mappedIndex;
    nodeId = ch.nodeId;
    processor = ch.processor;
    sampleRate = ch.sampleRate;
    bitVolts = ch.bitVolts;
    type = ch.type;
    sourceNodeId = ch.sourceNodeId;
    isMonitored = ch.isMonitored;
    isEnabled = ch.isEnabled;
    recordIndex = ch.recordIndex;
    name = ch.name;
    probeId = ch.probeId;
    x = ch.x;
    y = ch.y;
    z = ch.z;
    impedance = ch.impedance;
	extraData = ch.extraData;

    setRecordState(false);
}
示例#4
0
void PmChart::recordStart()
{
    if (activeTab()->startRecording())
	setRecordState(true);
}