Commit Graph

648 Commits

Author SHA1 Message Date
sauwming b3ea8a29ac
Add Metal renderer for Mac and iOS (#3841) 2024-01-29 09:28:10 +08:00
Nanang Izzuddin 6dc9b8c181
Merge pull request from GHSA-f76w-fh7c-pc66
* Add group lock to media transport

* Also add group lock to SRTP-DTLS

* Put lock protection to avoid race condition between destroy() & dtls_on_recv()
2023-10-03 10:59:03 +08:00
Nanang Izzuddin eff4826803
Docs: more fixes on sample/source links (#3675) 2023-09-06 09:56:26 +07:00
Nanang Izzuddin 1af96abb89
Update SDP o= and t= lines to use 64 bit unsigned integer (#3565) 2023-05-17 11:53:31 +08:00
sauwming 7816d95093
Fixed incorrect RTCP stat calculation (#3557) 2023-05-17 07:14:39 +08:00
sauwming e8fa2237f2
Support for codec with non-integer ptime (#3555) 2023-05-16 13:13:10 +08:00
sauwming e8f58dd6d6
Add ability in stream to modify video codec bitrate on the fly (#3556) 2023-05-16 13:12:53 +08:00
sauwming de023c12fa
Add device id in audio device info (#3563) 2023-05-16 13:06:51 +08:00
Riza Sulistyo ad14f860d0
Add option to maintain payload type to codec mapping to make sure one payload type is not used by different codec (#3468) 2023-05-08 14:26:08 +08:00
sauwming d6d67b8ac6
Parse SDP connection info with multicast address (#3529) 2023-05-01 09:08:18 +08:00
sauwming 44b9c36c74
Modify the DTMF duration default (#3540) 2023-05-01 09:01:10 +08:00
Florian Xaver a9f3204bdc
Fix PJSUA2 documentation (#3473)
Co-authored-by: sauwming <ming@teluu.com>
2023-04-21 13:29:27 +07:00
sauwming 4680c7add7 Merge master 2023-03-14 10:24:59 +08:00
Florian Xaver f60d1c4746
Add function for printing SDP attributes (#3417) 2023-03-07 10:17:23 +07:00
sauwming 37862667bf
Use better initial values for pool initialization (#3396) 2023-02-23 12:47:08 +08:00
jimying 497d05d99c
ffmpeg_codec: ffmpeg_codec_open() should use pjmedia_vid_codec_param_clone() copy codec param (#3384) 2023-02-22 13:07:03 +08:00
bennylp 2315043b20 Fix gcc warnings (Ubuntu 22.04, ffmpeg 4.4.2, openssl 3) 2023-02-18 08:36:56 +07:00
jimying 8054a92cd5
Fix doc error (#3375) 2023-02-16 10:03:01 +08:00
Riza Sulistyo 5825f01e02
Increment origin version when there's a change in local SDP answer (#3322) 2023-01-06 13:23:47 +08:00
jimying d56d2ff50b
Loop transport: add new setting item (max_attach_cnt) to set the max number of attachments (#3309) 2022-12-20 12:46:28 +08:00
sauwming 950081c737
Fix indefinite wait when trying to stop pjmedia_clock (#3304) 2022-12-08 17:22:06 +08:00
sauwming eca0ae23de
Fixed encoding video issue with odd resolution (#3301) 2022-12-08 17:21:40 +08:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Nanang Izzuddin b9a9477913
Update docs of PJMEDIA_CODEC_MAX_SILENCE_PERIOD, more codecs with internal VAD mechanism have been added. (#3251) 2022-09-22 14:02:16 +07:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
sauwming 12aa75e317
Add ability in stream to modify Opus codec parameters on the fly (#3189) 2022-07-26 15:06:24 +08:00
Nanang Izzuddin 6ff18b4f8a
Lock ordering issue in video conference bridge (#3183) 2022-07-21 15:10:54 +07:00
Nanang Izzuddin 563a7bfcfd
Fix assertion due to bad rtpmap attribute generated by pjmedia_endpt_create_audio_sdp(). (#3167) 2022-07-05 09:29:22 +07:00
Nanang Izzuddin d5fc07cc03
Random crash due to invoking SRTP APIs on custom media transport instance (#3145) 2022-06-20 12:26:59 +08:00
sauwming 7231318c9c
Fixed build failure in Xamarin C# project (#3032) 2022-05-04 09:32:55 +08:00
Riza Sulistyo 11559e49e6
Merge pull request from GHSA-vhxv-phmx-g52q
* Prevent OOB read/write when parsing RTCP FB RPSI

* Add log information

* Modification based on comments.
2022-04-06 11:40:09 +08:00
sauwming 6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
sauwming 9b37e587bc
Add feature to init SRTP ROC and check if SRTP ROC needs to be reset/maintained (#2846) 2022-02-18 10:06:29 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
sauwming d979253c92
Merge pull request from GHSA-qcvw-h34v-c7r9
* Perform buffer length checks

* Add asssertion sanity checks
2022-02-08 08:15:07 +08:00
sauwming a5e052f2a5
Fix video issues upon format change (#2911) 2022-01-25 08:39:46 +08:00
sauwming b771df4663
Fix missing event unsubscription in pjsua video (#2932) 2022-01-06 15:39:15 +08:00
Nanang Izzuddin 9784f78dc7
Make keyframe interval configurable in Apple VideoToolbox codecs (#2905) 2021-12-03 10:43:01 +07:00
Riza Sulistyo c5234d5418
Change interval calculation for sending keep-alive message (#2878)
* Change interval calculation for sending keep alive message

* Fix misstype
2021-11-10 21:28:45 +07:00
Riza Sulistyo 6ca06f63ec
Fix some doc warning (#2879) 2021-11-10 09:57:40 +07:00
jimying 263886b8e0
Add vp8/vp9 support to ffmpeg_vid_codecs (#2863) 2021-11-08 10:01:47 +07:00
Nanang Izzuddin d2f9563008
Add PJMEDIA_VID_STREAM_CHECK_RTP_PT setting (#2854) 2021-10-21 14:56:58 +07:00
Florian Xaver 1aa7eb2180
Added new function pjmedia_sdp_media_print(...) (#2799) 2021-09-21 16:15:57 +07:00
Nanang Izzuddin 37136a4ee6
High video latency when decoder frame rate is initialized lower than actually received (#2798)
- Add new APIs to update/refresh video conference bridge port: `pjmedia_vid_conf_update_port(), pjsua_vid_conf_update_port(), VideoMedia::update()`.
- Use the new API in PJSUA-LIB to update renderer & stream decoder in format changed event.
2021-08-18 10:47:13 +07:00
Krzysztof Marciniak 7069b04b1b
Fix signature checking code (#2780) 2021-08-04 10:16:30 +08:00
Nanang Izzuddin c80f59eb90
SDL full-screen mode fixes and enhancement (#2759)
- Add fullscreen mode PJMEDIA_VID_DEV_FULLSCREEN_DESKTOP (no video mode change), which is mapped to SDL_WINDOW_FULLSCREEN_DESKTOP.
- Fix resizing while in full-screen.
- Update PJSUA, PJSUA2 & pjsua app, e.g: fullscreen setting was boolean (fullscreen enabled/disabled), now it is enum: disabled, fullscreen, or fullscreen desktop.
2021-07-21 11:47:07 +07:00
sauwming 0046373595
Add support for WebRTC AEC3 (#2722) 2021-06-03 11:50:47 +08:00
sauwming 1cb34f56a7
Specify media direction when making, answering, or updating call (#2705) 2021-05-17 09:58:19 +08:00
Nanang Izzuddin 79531cbc05
More works on Trickle ICE (#2667)
- Improve trickling state management (fix no SIP INFO when initial INVITE responded immediately with 200, strayed SIP INFO after trickling is done, etc).
- Fix issues when rtcp-mux is enabled.
- Allow process incoming SIP INFO before receiving remote SDP.
- Use regular ICE on re-INVITE (with reinit media flag).
- Avoid calling pj_ice_strans_get_running_comp_cnt() for loop condition.
- Fix bug in pjnath-test: TURN server set wrong peer channel number.
- Added timer for end-of-candidate indication from remote & don't flag ice-mismatch if remote uses default address in trickle ICE
2021-03-17 13:00:01 +07:00
Riza Sulistyo 940e3c0443
Support Android AMediaCodec (#2552)
* Implement android AMediaCodec AVC/VPX codec.

* - Change "anmed" to "and_media" prefix for clearity.
- Check if encoder/decoder exists before enabling codec.

* Fix bug on enum info.

* Add support to AMRNB and AMRWB audio codec.

* Modification based on comments.

* - move VPX packetizer from codec implementation.

* - Remove unwanted changes.
- Fix bug on vpx (VP9) packetize method.

* - New method to initialize vpx packetizer config.
- Don't use pt as codec id.

* add compiler option to prioritze using software or hardware codec.

* add documentation related to packetization mode for H264.

* fix some potential compile error.

* Specify video codec PT to support #2656.
2021-03-05 21:59:07 +07:00