Ignore:
Timestamp:
Dec 23, 2019 3:27:09 AM (3 years ago)
Author:
nanang
Message:

Re #2255: Fixed wrong check of fullscreen mode in window creation and added pjsua app commands for fullscreen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c

    r6028 r6123  
    297297    puts("| vid win move ID X Y       Move window ID to position X,Y                    |"); 
    298298    puts("| vid win resize ID w h     Resize window ID to the specified width, height   |"); 
     299    puts("| vid win full on|off ID    Set fullscreen on/off for window ID               |"); 
    299300    puts("| vid conf list             List all video ports in video conference bridge   |"); 
    300301    puts("| vid conf cc P Q           Connect port P to Q in the video conf bridge      |"); 
     
    500501        } else if (argc==3 && strcmp(argv[2], "arrange")==0) { 
    501502            arrange_window(PJSUA_INVALID_ID); 
     503        } else if (argc==5 && (strcmp(argv[2], "full")==0)) 
     504        { 
     505            pjsua_vid_win_id wid = atoi(argv[4]); 
     506            pj_bool_t fullscreen = (strcmp(argv[3], "on")==0); 
     507            status = pjsua_vid_win_set_fullscreen(wid, fullscreen); 
    502508        } else 
    503509            goto on_error; 
Note: See TracChangeset for help on using the changeset viewer.