@Override
    public View getView(int index, View view, final ViewGroup parent) {

      ParticipantViewHolder viewHolder = null;
      if (view == null) {
        LayoutInflater inflater = LayoutInflater.from(parent.getContext());
        view = inflater.inflate(R.layout.participantinfo, parent, false);
        viewHolder = new ParticipantViewHolder();
        viewHolder.textView = (TextView) view.findViewById(R.id.participantId);
        viewHolder.button = (Switch) view.findViewById(R.id.switch1);
        view.setTag(viewHolder);
      } else {
        viewHolder = (ParticipantViewHolder) view.getTag();
      }

      final Participant participant = listArray[index];
      viewHolder.textView.setText(participant.getDisplayName());
      viewHolder.button.setTag(participant);
      viewHolder.button.setOnCheckedChangeListener(
          null); // detaching the handler so it wont raise when we set the inital value
      viewHolder.button.setChecked(participant.getIsVideoOn());
      viewHolder.button.setOnCheckedChangeListener(this);
      viewHolder.button.setEnabled(true);

      return view;
    }
 private void switchParticipantVideoOff(Participant participant) {
   LogSdk.d(Utils.getOoVooTag(), "turning video off for " + participant.getId());
   mConferenceManager.turnParticipantVideoOff(participant.getId(), participant.getDisplayName());
 }