Commit Graph

740 Commits

Author SHA1 Message Date
Benny Prijono d865de92d6 Misc (re #1370): pjsua hide preview window when setting preview off
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3800 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:48:07 +00:00
Benny Prijono 3c1ed0c724 Misc (re #1370): rename command "vid call set-cap" to "vid call cap", and added command "vid win arrange" to auto-arrange windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3798 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 07:33:06 +00:00
Nanang Izzuddin 93d8707713 Close #1381:
- Added 'ignore_fmtp' field in pjmedia_vid_codec_param to allow application to omit SDP fmtp in codec param without risking video size and frame rate param being overridden with default values.
 - Updated sample app vid_streamutil.c to use that field, which currently not supplying SDP fmtp to video codec.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3795 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06 06:37:46 +00:00
Benny Prijono 0e9082d021 Fixed link error in pjsua due to r3785 (Misc, re #1370)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3789 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 14:09:24 +00:00
Benny Prijono 1cad0bba2e Misc (re #1370): auto arranging of video windows in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3785 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04 04:04:49 +00:00
Benny Prijono 8468557014 Closed #1361: codec API change. Details:
- changed encode(), packetize(), unpacketize(), and decode() to encode_begin(), encode_more(), and decode()
 - codec has new "packing" setting
 - updated stream, aviplay, codec-test, and stream-util due to above
 - minor doxygen documentation fixes here and there


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3776 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-29 08:31:15 +00:00
Benny Prijono ed0f3f0164 Implemented sipecho for testing (fixed #1373)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3754 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-19 01:15:02 +00:00
Nanang Izzuddin 775918f35d Misc (re #1320): fixed wrong check order in pjsua app vid_handle_menu(), input string "vid " crashed the app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3735 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 07:58:52 +00:00
Sauw Ming 73b344ddb9 Re #1354: Removed pj_run_app() from vidgui
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3733 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 04:21:35 +00:00
Benny Prijono 3a61e85daa Added build instruction to vidgui sample (re #1327)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3729 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 02:34:42 +00:00
Sauw Ming 4c076ae7aa Fixed #1354: stopping preview may hide parent window.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3728 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29 02:33:50 +00:00
Nanang Izzuddin 56c2b82cbd Re #1327 (vidgui): Minor fix on windows VidWin::attach(), applying window style WS_CHILD to unattached/unparented SDL window causes strange behavior: after parented to a QWidget, it doesn't follow the parent/QWidget movement but its coordinate is relative to the parent/QWidget.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3727 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-26 05:51:13 +00:00
Nanang Izzuddin 4ee8686a5c Re #1327:
- Vidgui UI updates on Qt must be done in the UI thread, implemented this with Qt signal-slot mechanism.
 - VidWin::show() better be called internally by VidWin class instead of MainWin.
 - Fix QString to const char* issue, keeping the pointer returned by "QString::to*()::data()" won't work, the pointer actually points to a temporary data (lifetime issue).
 - Minor: cleaning up unused lines in vidgui.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3726 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-26 04:30:18 +00:00
Benny Prijono 2047bd7c8f Re #1351: option to initially hide video preview window to avoid floating window. Also added pjsua_vid_preview_param_default()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3724 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-25 11:59:39 +00:00
Nanang Izzuddin 1e853cf150 Re #1327 (vidgui): Fix stuck/hang when quiting vidgui without stopping video preview. Somehow the SDL will stuck (wait forever) in destroying its render window when the render window parent (VidWin) hasn't been destroyed.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3721 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 18:35:27 +00:00
Sauw Ming 7fba2682e7 Fixed #1334: Fix the problem of getting stuck when trying to quit SDL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3720 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 08:00:30 +00:00
Benny Prijono 04e2b41727 Re #1327 (vidgui): added --silent option when invoking make otherwise it will capture gibberish when running make to regenerate the files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3719 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-24 07:05:54 +00:00
Nanang Izzuddin fad6f69269 Fixed #1348:
- updated the year in all copyright texts with 2011
 - put copyright text into newly added files



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3715 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-19 09:35:25 +00:00
Nanang Izzuddin d12e8144de Re #1320: Fixed linking problem of sample apps on Windows platform, undefined symbols used by dshow video dev.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3700 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 22:40:32 +00:00
Nanang Izzuddin 5325f57577 Re #1327, some fixes on the simple GUI app:
- Removed timer usage in resizing window, window resizing can be done real-time now (see r3698).
 - Fixed linking problem on Windows platform: undefined 'main' function.
 - Fixed build problem on Mac, compiling .cpp file containing objective C/C++ codes with g++ needs '-ObjC++' flag.
 - Minor changes in vidgui, e.g: function/variable rename, cleaning up unused/junk lines.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3699 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 22:29:14 +00:00
Benny Prijono 95abc7af63 Re #1327 (vidgui):
- fixed wrong default capture device (was 1)
 - fixed assertion if unable to open capture device
 - in qmake project file (vidgui.pro):
   - fixed INCLUDEPATH
   - added debug and release setting
   - added (disabled) static linking setting



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3697 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 10:04:35 +00:00
Benny Prijono 382976de65 Re #1327 (vidgui): fixed crash on Linux because SDL_Init() needs to be called prior to creating QApplication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3695 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 09:51:23 +00:00
Benny Prijono e212bc1068 Re #1263 (Video API):
- Added PJSUA_CALL_VID_STRM_NO_OP to occupy value 0 for the enum
 - Added pjsua_call_vid_strm_op_param_default() to initialize pjsua_call_vid_strm_op_param
 - Renamed pjsua_call_get_transport_info() to pjsua_call_get_med_transport_info()



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3694 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15 09:38:42 +00:00
Benny Prijono 4ba7c9517a Misc (re #1320): fixed link error in pjmedia_test and aviplay samples if ffmpeg is not enabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3688 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-08 04:18:55 +00:00
Benny Prijono 7e50ff08b4 More re #1327 (vidgui): added vidgui.pro and removed generated files from svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3687 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-02 04:26:47 +00:00
Nanang Izzuddin d4ec2819af Re #1327: Very early version of simple video GUI, built on Qt, should run on win/lin/mac.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3686 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-01 12:57:45 +00:00
Nanang Izzuddin f6d2eb6188 Re #1324:
- Changed default value of PJMEDIA_HAS_VIDEO to disabled.
 - Fixed code and build setting on Symbian for build correctness, it builds fine now.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3671 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-20 03:05:03 +00:00
Nanang Izzuddin 63b3c13cd2 Fixed #1271: protected all video features with PJMEDIA_HAS_VIDEO macro setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3667 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 11:11:07 +00:00
Nanang Izzuddin d93c68a997 Re #1326:
- Fixed compile warnings on vs2005
 - Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3666 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 08:40:20 +00:00
Nanang Izzuddin fe68f1dc55 Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 03:42:28 +00:00
Nanang Izzuddin 96f8dca165 Fix #1295: Added thin wrapper for audio and video codec operations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3663 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 10:19:59 +00:00
Benny Prijono 35fc1eb3e4 Fixed #1294: New pjmedia_codec_register_audio_codecs() API to register all known codecs, and also added implementation to deregister all codecs when the media endpoint is destroyed
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3661 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 09:51:46 +00:00
Sauw Ming 5291a2da7d Re #1282:
- Change *fmt in pjmedia_vid_dev_info to array
- Change pjmedia_vid_cb/param to pjmedia_vid_dev_*



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3658 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:52:44 +00:00
Nanang Izzuddin 9808561961 Re #1263:
- Replaced video stream operation DISABLE into REMOVE.
 - Replaced video stream operation ENABLE into CHANGEDIR.
 - Added new param: media direction, used in operation ADD and CHANGEDIR.
 - Updated video stream operation START_TRANSMIT to ignore capture device param (as changing capture device is handled by CHANGE_CAP_DEV operation).



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3657 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 07:41:02 +00:00
Benny Prijono ee0ba1872c Re #1265 (GUI events): initial implementation, for renderer only first. Also re #1320 (misc): moved function prototypes from pjsua_xx.c to pjsua_internal.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3652 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-15 06:18:29 +00:00
Sauw Ming 01095d8410 Re #1278: NSApplication and NSAutoreleasePool management for Mac OS X
Application now needs to call pj_run_app() from its main() function and pass a pointer to the application's main function. For some examples, please refer to aviplay, pjmedia_test, and pjsua.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3643 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 08:46:19 +00:00
Benny Prijono fcf5db3e9e Fixed #1325: signature fix pjmedia objects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3640 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 04:56:08 +00:00
Nanang Izzuddin f363802d77 Re #1263:
- Added API pjsua_vid_enum_wins() to enumerate video windows.
 - Minor fixes on video window manipulations.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3638 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 03:47:04 +00:00
Nanang Izzuddin c16590ad20 Re #1263: minor fixes:
- wrong boolean value to be used with PJMEDIA_VID_DEV_CAP_OUTPUT_HIDE in pjsua_vid.c
 - unupdated 'vid' commands in pjsua sample app




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3637 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-14 02:14:25 +00:00
Nanang Izzuddin 7ad53c33df Re #1263:
- Break down the operation type PJSUA_CALL_VID_STRM_MODIFY into PJSUA_CALL_VID_STRM_ENABLE, PJSUA_CALL_VID_STRM_DISABLE, PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV.
 - Implemented video stream re-enabling (PJSUA_CALL_VID_STRM_ENABLE).




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3636 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 13:31:08 +00:00
Nanang Izzuddin b4d4dade23 Re #1263:
- Renamed API pjsua_call_set_vid_out() with pjsua_call_set_vid_strm().
 - Implemented initial version of the function, features covered:
   - add, remove video media stream during the call
   - change which device to use during the call
   - start/stop video stream transmission




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3634 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 08:51:10 +00:00
Benny Prijono 2d64772d47 Fixed #1299: New callback to notify that sound device needs to be opened or closed
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3632 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 03:05:22 +00:00
Sauw Ming 8985f550b5 Re #1304: Video port refactoring: fix frame handling when renderer's role is active, change API to get/set clocksource to be unidir
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3631 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-13 02:37:14 +00:00
Nanang Izzuddin 62053a6a44 Re #1263:
- implemented video window management (get/set visibility, pos, resize)
 - integrated video window and video capture preview into call




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3629 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 11:08:32 +00:00
Benny Prijono 934af0fa2b Initial implementation of re #1284 (Event Framework). Current event has been converted to the new framework. Next to convert is codec event
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3617 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-12 03:05:35 +00:00
Benny Prijono 9f468d176d Initial commit re #1263 (PJSUA-LIB Video API):
- API designed and reviewed (pjsua.h)
 - Implemented these APIs and added to pjsua sample application:
   - video device enums API
   - video capture preview API
 - refactoring in PJSUA-LIB:
   - video stuffs go to pjsua_vid.c
   - call dump goes to pjsua_dump.c

We're still missing:
 - video call API implementation
 - media info and statistic API implementation



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3609 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-07 07:46:33 +00:00
Perry Ismangil ebf16b053e Really fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3602 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-30 12:53:51 +00:00
Perry Ismangil 1fef1f9b59 Fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3583 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-14 14:35:39 +00:00
Sauw Ming e90ece8dc3 Closed #1275: Change pjmedia_vid_subsys_xx() to pjmedia_vid_dev_subsys_xx()
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3579 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-09 04:05:44 +00:00
Sauw Ming 31c44e9511 Fixed #1285: Add support for SDL 1.3
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3577 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-30 08:35:42 +00:00