Commit Graph

231 Commits

Author SHA1 Message Date
Sauw Ming 2a04460ffe Re #1446 (misc): Disable SDL by default on iOS and fixed various compiler warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4087 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 03:39:24 +00:00
Sauw Ming e85cbee6b9 Re #1446 (misc): Fixed linking error if PJMEDIA_HAS_VIDEO is 0
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4086 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26 02:44:41 +00:00
Nanang Izzuddin 4560ee8d43 Misc (Re #1446): Add pjsua app video command for modifying video codec size/resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4027 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 08:38:49 +00:00
Nanang Izzuddin 8f1546d478 Misc (Re #1446): Add pjsua app video commands for modifying video codec bitrate & framerate.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4025 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 07:22:30 +00:00
Nanang Izzuddin 5ec95cd900 More re #1478: AVI cleanup steps in pjsua app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4024 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 04:41:24 +00:00
Sauw Ming 22d9b64287 Misc (Re #1446): Fixed wrong setting of pjsua_app's options.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4023 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-05 01:56:05 +00:00
Benny Prijono 83ee8f5371 More re #1478: now really do not connect to microphone when streaming avi (instead of disconnecting the whole audio)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4020 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 08:16:02 +00:00
Benny Prijono 837200acb4 More re #1478: do not connect the microphone when streaming avi
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4019 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 07:45:39 +00:00
Benny Prijono 2e727e8f70 Fixed #1478: AVI player virtual device. Initial spec:
- Currently only Works with raw video and audio AVI files
 - Added --play-avi and --auto-play-avi options in pjsua
 - No A/V synchronization yet


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4016 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-04 05:05:50 +00:00
Benny Prijono 28d3c56283 Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Nanang Izzuddin 84e0018670 Misc (re #1446): Minor fixes arrange_window() in pjsua app:
- calculate visible windows only (with 2 calls, there was already an out-of-screen window)
 - re-arrange windows on format changed event



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3971 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-09 03:03:10 +00:00
Benny Prijono ae86e6ad00 More re #1419: changed field names from video_count to vid_cnt and audio_cnt to aud_cnt for better consistency
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3925 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-27 12:47:52 +00:00
Nanang Izzuddin 3da4ad8f85 Re #1234: Initial version of keyframe request/response via SIP INFO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3901 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-07 10:43:28 +00:00
Benny Prijono 7347f31251 Minor (re #1393): fixed compilation warning in pjsua app if video is disabled
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3894 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-02 09:26:44 +00:00
Nanang Izzuddin 3d7385c7f9 Misc (re #1393): fix linking error "app_config_init_video() not found" when video is disabled, also some compile warnings (unused variables).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3892 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 10:02:54 +00:00
Nanang Izzuddin debd48ae0b Re #1419, implement media count manipulation per call basis:
- moved the media count setting from account setting to call setting
 - introduced pjsua_call_setting, to be used by pjsua_call_make_call() and some new APIs: pjsua_call_answer2(), pjsua_call_reinvite2(), pjsua_call_update2() 




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3891 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01 09:06:14 +00:00
Benny Prijono 2780b7aa79 Misc (re #1393): write log if adding pjsua buddy fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3875 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-28 05:09:53 +00:00
Sauw Ming 0ee072f2e3 Fixed #1401: Add support for video device's window flags
Now support flags PJMEDIA_VID_DEV_WND_BORDER and PJMEDIA_VID_DEV_WND_RESIZABLE.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3864 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 09:01:53 +00:00
Benny Prijono 4bc1575ed3 Added video for TCP account (previous fix did not work, re #1400)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3863 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 08:03:41 +00:00
Benny Prijono 0d6f755bbb Added missing video initialization to TCP local accounts in pjsua (fixed #1400)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3862 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-26 08:00:28 +00:00
Benny Prijono 7718350c7b Misc (re #1393): crash in vid win command without argument
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3852 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:12:33 +00:00
Nanang Izzuddin 034ac4199f Re #1400: init video settings for pjsua app accounts.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3851 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 11:11:04 +00:00
Benny Prijono d3de2a8d6f Re #1400: enhancements to video operations in pjsua application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3850 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25 09:35:11 +00:00
Sauw Ming e7dbbc8f30 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3557:r3832

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 09:28:13 +00:00
Benny Prijono 565c52e6f0 Fixed compilation error in pjsua_app introduced by r3819 if video is not enabled (re #1390)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3825 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 06:51:34 +00:00
Nanang Izzuddin 65b04a692c Reenable ffmpeg H264 (re #1390):
- Review H264 codec settings such as profile, level, NAL unit size, bitrate, quality, latency.
 - Added new format PJMEDIA_FORMAT_GBRP, 24 bits planar RGB, one of the formats outputted by the latest ffmpeg H264 decoder.
 - Fixed format change detection bug in ffmpeg wrapper, decoder didn't update its internal state with the new format so format change event was generated in every decoding operation.
 - Added compile time configurations for enabling/disabling ffmpeg codec H263+ & H264.
 - Updated pjsua app to adjust window size to original video size. With H264, default window size will be too big as it is init'd with default H264 video size, e.g: 720x480 for profile level 30.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3819 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-18 01:51:01 +00:00
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
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
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
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
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 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
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
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 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
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Benny Prijono 83b424a3a9 Re #1214 (app): enlarge call dump buffer if RTCP XR is enabled, and added option to disable stderr (only works on Posix system)
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3519 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-11 15:16:48 +00:00
Nanang Izzuddin 56b2ce43d8 Re #1186:
- Added custom negotiation callback mechanism in SDP negotiator, mainly for specific formats that require SDP fmtp negotiation.
 - Modified video codec ID string to use encoding name+payload type (was encoding name+clock rate), also added encoding description in video codec info, so duplicated codecs (e.g: multiple H264 configurations) can be differentiated.
 - Few enhancements for H264 in ffmpeg wrapper (e.g: added proper profile-id & packetization-mode setup).




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3500 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-06 13:55:01 +00:00
Benny Prijono 587c794c88 Re #1214 (apps): added registrar functionality in pjsua for easier testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3477 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 06:08:25 +00:00
Nanang Izzuddin 269eec1fc3 Re #1214:
- Added option in pjsua app to select video devices, and modified 'Cp' menu command to also change video codecs priority.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3472 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-22 09:50:48 +00:00
Benny Prijono 0bc99a9ca3 Modifications in PJSUA-LIB to support multiple media streams (multiple audio and/or video) and dynamic creation of media transports. This closed #1185 and closed #1201.
1185: Dynamic creation of media transports
============================================
Done:
 - media transports are created on demand now

Todo:
 - media transport creation is still blocking


1201: Video support in PJSUA-LIB
===================================
Done:
 - call now supports N media (N audio and M video)
 - number of audio/video streams is configurable per acc
 - extra audio stream info in pjsua_call_info to support multiple audio streams
in one call
 - video subsys and ffmpeg initialization in PJSUA-LIB
 - ability to offer and create video SDP answer
 - "dq" for more than 1 audio streams
 - introducing pjsua_state and pjsua_get_state()

API change:
 - on_stream_created() and on_stream_destroyed() callbacks: changed session to
stream

Todo:
 - many others features are disabled, just search for DISABLED_FOR_TICKET_1185
macro (these have also been added to ticket #1193 (Issues & Todos)). Notable
missing features are:
      - creation of duplicate SDP m= lines for optional SRTP
      - mm.. that's it?
 - whole lot of testings

pjsua:
===============
 - Added --extra-audio and --video options. Specify these more than once and
each time an extra audio/video streams will be added. :)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3457 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-17 04:34:43 +00:00
Benny Prijono e3e6580803 Initial implementation for re #1202 (PJILB System Information API) for Linux/Unix
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:44:19 +00:00