Changeset 3724 for pjproject/trunk/pjsip-apps/src/vidgui/vidgui.cpp
- Timestamp:
- Aug 25, 2011 11:59:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/vidgui/vidgui.cpp
r3721 r3724 29 29 30 30 #define LOG_FILE "vidgui.log" 31 #define THIS_FILE "vidgui.cpp" 31 32 32 33 // These configure SIP registration … … 84 85 /* Right pane */ 85 86 vbox_right->addWidget((localUri_ = new QLabel)); 86 vbox_right->addWidget((previewButton_=new QPushButton(tr("Start Preview"))));87 vbox_right->addWidget((previewButton_=new QPushButton(tr("Start &Preview")))); 87 88 vbox_right->addWidget((callButton_=new QPushButton(tr("Call")))); 88 89 vbox_right->addWidget((hangupButton_=new QPushButton(tr("Hangup")))); … … 121 122 //statusBar_->showMessage(msg); 122 123 statusBar_->setText(msg); 123 PJ_LOG(3,( "vidgui.cpp", "%s", msg));124 PJ_LOG(3,(THIS_FILE, "%s", msg)); 124 125 } 125 126 … … 177 178 pjsua_vid_preview_stop(DEFAULT_CAP_DEV); 178 179 179 previewButton_->setText(tr("Start Preview")); 180 showStatus("Preview stopped"); 181 previewButton_->setText(tr("Start &Preview")); 180 182 } else { 181 183 pjsua_vid_win_id wid; … … 184 186 pj_status_t status; 185 187 186 pj _bzero(&pre_param, sizeof(pre_param));188 pjsua_vid_preview_param_default(&pre_param); 187 189 pre_param.rend_id = DEFAULT_REND_DEV; 190 pre_param.show = PJ_FALSE; 188 191 189 192 status = pjsua_vid_preview_start(DEFAULT_CAP_DEV, &pre_param); … … 199 202 video_prev_ = new VidWin(&wi.hwnd); 200 203 vbox_left->addWidget(video_prev_, 1); 201 202 previewButton_->setText(tr("Stop Preview")); 204 //Using this will cause SDL window to display blank 205 //screen sometimes, probably because it's using different 206 //X11 Display 207 //status = pjsua_vid_win_set_show(wid, PJ_TRUE); 208 video_prev_->show(); 209 showStatus("Preview started"); 210 211 previewButton_->setText(tr("Stop &Preview")); 203 212 } 204 213 preview_on = !preview_on;
Note: See TracChangeset
for help on using the changeset viewer.