| 61 | |
| 62 | Add this in your {{{config_site.h}}}: |
| 63 | |
| 64 | {{{ |
| 65 | #define PJMEDIA_HAS_VIDEO 1 |
| 66 | }}} |
| 67 | |
| 68 | ==== 3. Build the library ==== |
| 69 | |
| 70 | As usual with: |
| 71 | {{{ |
| 72 | make dep && make clean && make |
| 73 | }}} |
| 74 | |
| 75 | Once the build is successful, you will have '''pjsua''' executable containing video support. Additionally, you may want to build the [#vidgui GUI sample application] too. |
| 76 | |
| 77 | === Visual Studio === |
| 78 | |
| 79 | Visual Studio users will need to configure things manually as explained below. |
| 80 | |
| 81 | ==== 1. Configure directories ==== |
| 82 | |
| 83 | Add include and library paths for the required components: |
| 84 | 1. SDL |
| 85 | 1. ffmpeg |
| 86 | 1. !DirectX (?) |
| 87 | 1. Base classes (?) |
| 88 | |
| 89 | ==== 2. Configure Video Settings ==== |
| 90 | |
| 91 | Add these to your {{{config_site.h}}}: |
| 92 | |
| 93 | {{{ |
| 94 | #define PJMEDIA_HAS_VIDEO 1 |
| 95 | #define PJMEDIA_HAS_FFMPEG 1 |
| 96 | #define PJMEDIA_VIDEO_DEV_HAS_SDL 1 |
| 97 | }}} |
| 98 | |
| 99 | ==== 3. Rebuild the Solution ==== |
| 100 | |
| 101 | Once the build is successful, you will have '''pjsua''' executable containing video support. Additionally, you may want to build the [#vidgui GUI sample application] too. |
| 102 | |
| 103 | |
| 104 | === GUI Sample Application === #vidgui |
| 105 | |
| 106 | We have a GUI sample application with video support. The project is located under {{{pjsip-apps/src/vidgui}}}. It is not built by default, and you need [http://qt.nokia.com/downloads/ Qt SDK] to build it. |
| 107 | |
| 108 | ==== GNU Build System (Mac OS X, Linux, etc) ==== |
| 109 | |
| 110 | Follow these steps to build vidgui sample: |
| 111 | |
| 112 | {{{ |
| 113 | $ cd pjsip-apps/src/vidgui |
| 114 | $ make |
| 115 | }}} |
| 116 | |
| 117 | ==== Visual Studio ==== |
| 118 | |
| 119 | Follow these steps to build vidgui sample with Visual Studio: |
| 120 | |
| 121 | 1. Open command prompt, and |
| 122 | {{{ |
| 123 | cd pjsip-apps\src\vidgui |
| 124 | }}} |
| 125 | 1. Generate project files: |
| 126 | {{{ |
| 127 | qmake -tp vc |
| 128 | }}} |
| 129 | 1. Open vidgui.vcproj project. |
| 130 | 1. Save the solution, and build the project |