- Timestamp:
- Jul 14, 2011 3:47:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip-apps/src/pjsua/pjsua_app.c
r3637 r3638 3809 3809 } else if (strcmp(argv[1], "win")==0) { 3810 3810 if (argc==3 && strcmp(argv[2], "list")==0) { 3811 PJ_LOG(1,(THIS_FILE, "Not implemented")); 3812 PJ_TODO(vid_list_window); 3811 pjsua_vid_win_id wids[PJSUA_MAX_VID_WINS]; 3812 unsigned i, cnt = PJ_ARRAY_SIZE(wids); 3813 3814 pjsua_vid_enum_wins(wids, &cnt); 3815 3816 PJ_LOG(3,(THIS_FILE, "Found %d video windows:", cnt)); 3817 PJ_LOG(3,(THIS_FILE, "WID show pos size")); 3818 PJ_LOG(3,(THIS_FILE, "------------------------------")); 3819 for (i = 0; i < cnt; ++i) { 3820 pjsua_vid_win_info wi; 3821 pjsua_vid_win_get_info(wids[i], &wi); 3822 PJ_LOG(3,(THIS_FILE, "%3d %c (%d,%d) %dx%d", 3823 wids[i], (wi.show?'Y':'N'), wi.pos.x, wi.pos.y, 3824 wi.size.w, wi.size.h)); 3825 } 3813 3826 } else if (argc==4 && (strcmp(argv[2], "show")==0 || 3814 3827 strcmp(argv[2], "hide")==0)) … … 3816 3829 pj_bool_t show = (strcmp(argv[2], "show")==0); 3817 3830 pjsua_vid_win_id wid = atoi(argv[3]); 3818 3819 3831 pjsua_vid_win_set_show(wid, show); 3820 3821 3832 } else if (argc==6 && strcmp(argv[2], "move")==0) { 3822 3833 pjsua_vid_win_id wid = atoi(argv[3]); … … 3824 3835 3825 3836 pos.x = atoi(argv[4]); 3826 pos.y = atoi(argv[ 4]);3837 pos.y = atoi(argv[5]); 3827 3838 pjsua_vid_win_set_pos(wid, &pos); 3828 3829 3839 } else if (argc==6 && strcmp(argv[2], "resize")==0) { 3830 3840 pjsua_vid_win_id wid = atoi(argv[3]); … … 3832 3842 3833 3843 size.w = atoi(argv[4]); 3834 size.h = atoi(argv[ 4]);3844 size.h = atoi(argv[5]); 3835 3845 pjsua_vid_win_set_size(wid, &size); 3836 3846 } else
Note: See TracChangeset
for help on using the changeset viewer.