|
1 | | -# Open Video Call Linux |
2 | | - |
3 | | -*Read this in other languages: [中文](README.zh.md)* |
4 | | - |
5 | | -The Open Video Call Linux Sample App is an open-source demo that will help you get video chat integrated directly into your Linux applications using the Agora Video SDK. |
6 | | - |
7 | | -With this sample app, you can: |
8 | | - |
9 | | -- Join / leave channel |
10 | | -- Mute / unmute audio |
11 | | -- Enable / disable video |
12 | | -- Change camera |
13 | | -- Setup resolution, frame rate and bit rate |
14 | | - |
15 | | -This demo is written in **C++** |
16 | | - |
17 | | -Agora Video SDK supports iOS / Android / Windows / macOS etc. You can find demos of these platform here: |
18 | | - |
19 | | -- [OpenVideoCall-Android](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-Android) |
20 | | -- [OpenVideoCall-iOS](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-iOS) |
21 | | -- [OpenVideoCall-macOS](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-macOS) |
22 | | -- [OpenVideoCall-Windows](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-Windows) |
23 | | - |
24 | | -## Running the App |
25 | | -First, create a developer account at [Agora.io](https://dashboard.agora.io/signin/), and obtain an App ID. set appID in run.sh |
26 | | - |
27 | | -``` |
28 | | ---appId "Your app ID" |
29 | | -``` |
30 | | - |
31 | | -Next, download the **Agora Video SDK** from [Agora.io SDK](https://www.agora.io/en/blog/download/). |
32 | | -Unzip the downloaded SDK package and copy |
33 | | -- libagora_rtc_sdk.so |
34 | | - |
35 | | -to the "OpenVideoCall/libs" folder in project(the old one may be over written). |
36 | | - |
37 | | -configue parameters in run.sh. |
38 | | -Using 'make' command to build the demo. Using ./run.sh to run demo |
39 | | -openVideoCall is a commandline demo. Commands as follows: |
40 | | -- open |
41 | | - |
42 | | - open video call |
43 | | -- close |
44 | | - |
45 | | - close video call |
46 | | -- enable_video |
47 | | - |
48 | | - enable/disable video, 'enable_video 0' means disable video, 'enable_video 1' means enable video |
49 | | -- enable_audio |
50 | | - |
51 | | - enable/disable audio, 'enable_audio 0' means disable audio, 'enable_audio 1' means enable audio |
52 | | -- enable_local_video |
53 | | - |
54 | | - enable/disable local video, 'enable_local_video 0' means disable local video(local camera), 'enable_local_video 1' means enable local video |
55 | | -- mute_local_video |
56 | | - |
57 | | - mute/unmute local video, 'mute_local_video 0' means unmute local video(local camera), 'mute_local_video 1' means mute local video |
58 | | -- mute_local_audio |
59 | | - |
60 | | - mute/unmute local audio, 'mute_local_audio 0' means unmute local audio(local audio device), 'mute_local_audio 1' means mute local audio |
61 | | -- print_device_info |
62 | | - |
63 | | - print video and audio device info |
64 | | -- set_cur_camera |
65 | | - |
66 | | - set current carmera,'set_cur_camera deviceId' you can get deviceID by print_device_info |
67 | | -- exit |
68 | | - |
69 | | - exit app |
70 | | - |
71 | | -## Developer Environment Requirements |
72 | | -* Ubuntu 12.04 x64 or higher |
73 | | -* CentOS 7 or higher |
74 | | -* gcc 4.8 or higher |
75 | | - |
76 | | - |
77 | | -## Contact Us |
78 | | - |
79 | | -- For potential issues, take a look at our [FAQ](https://docs.agora.io/en/faq) first |
80 | | -- Dive into [Agora SDK Samples](https://github.com/AgoraIO) to see more tutorials |
81 | | -- Take a look at [Agora Use Case](https://github.com/AgoraIO-usecase) for more complicated real use case |
82 | | -- Repositories managed by developer communities can be found at [Agora Community](https://github.com/AgoraIO-Community) |
83 | | -- You can find full API documentation at [Document Center](https://docs.agora.io/en/) |
84 | | -- If you encounter problems during integration, you can ask question in [Stack Overflow](https://stackoverflow.com/questions/tagged/agora.io) |
85 | | -- You can file bugs about this sample at [issue](https://github.com/AgoraIO/Basic-Video-Call/issues) |
86 | | - |
87 | | -## License |
88 | | - |
89 | | -The MIT License (MIT). |
| 1 | +# Open Video Call Linux |
| 2 | + |
| 3 | +*Read this in other languages: [中文](README.zh.md)* |
| 4 | + |
| 5 | +The Open Video Call Linux Sample App is an open-source demo that will help you get video chat integrated directly into your Linux applications using the Agora Video SDK. |
| 6 | + |
| 7 | +With this sample app, you can: |
| 8 | + |
| 9 | +- Join / leave channel |
| 10 | +- Mute / unmute audio |
| 11 | +- Enable / disable video |
| 12 | +- Change camera |
| 13 | +- Setup resolution, frame rate and bit rate |
| 14 | + |
| 15 | +This demo is written in **C++** |
| 16 | + |
| 17 | +Agora Video SDK supports iOS / Android / Windows / macOS etc. You can find demos of these platform here: |
| 18 | + |
| 19 | +- [OpenVideoCall-Android](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-Android) |
| 20 | +- [OpenVideoCall-iOS](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-iOS) |
| 21 | +- [OpenVideoCall-macOS](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-macOS) |
| 22 | +- [OpenVideoCall-Windows](https://github.com/AgoraIO/Basic-Video-Call/tree/master/Group-Video/OpenVideoCall-Windows) |
| 23 | + |
| 24 | +## Running the App |
| 25 | +First, create a developer account at [Agora.io](https://dashboard.agora.io/signin/), and obtain an App ID. set appID in run.sh |
| 26 | + |
| 27 | +``` |
| 28 | +--appId "Your app ID" |
| 29 | +``` |
| 30 | + |
| 31 | +> To ensure communication security, Agora uses tokens (dynamic keys) to authenticate users joining a channel. |
| 32 | +> |
| 33 | +> Temporary tokens are for demonstration and testing purposes only and remain valid for 24 hours. In a production environment, you need to deploy your own server for generating tokens. See [Generate a Token](https://docs.agora.io/en/Interactive Broadcast/token_server)for details. |
| 34 | +
|
| 35 | +Next, download the **Agora Video SDK** from [Agora.io SDK](https://www.agora.io/en/blog/download/). |
| 36 | +Unzip the downloaded SDK package and copy |
| 37 | + |
| 38 | +- libagora_rtc_sdk.so |
| 39 | + |
| 40 | +to the "OpenVideoCall/libs" folder in project(the old one may be over written). |
| 41 | + |
| 42 | +configue parameters in run.sh. |
| 43 | +Using 'make' command to build the demo. Using ./run.sh to run demo |
| 44 | +openVideoCall is a commandline demo. Commands as follows: |
| 45 | +- open |
| 46 | + |
| 47 | + open video call |
| 48 | +- close |
| 49 | + |
| 50 | + close video call |
| 51 | +- enable_video |
| 52 | + |
| 53 | + enable/disable video, 'enable_video 0' means disable video, 'enable_video 1' means enable video |
| 54 | +- enable_audio |
| 55 | + |
| 56 | + enable/disable audio, 'enable_audio 0' means disable audio, 'enable_audio 1' means enable audio |
| 57 | +- enable_local_video |
| 58 | + |
| 59 | + enable/disable local video, 'enable_local_video 0' means disable local video(local camera), 'enable_local_video 1' means enable local video |
| 60 | +- mute_local_video |
| 61 | + |
| 62 | + mute/unmute local video, 'mute_local_video 0' means unmute local video(local camera), 'mute_local_video 1' means mute local video |
| 63 | +- mute_local_audio |
| 64 | + |
| 65 | + mute/unmute local audio, 'mute_local_audio 0' means unmute local audio(local audio device), 'mute_local_audio 1' means mute local audio |
| 66 | +- print_device_info |
| 67 | + |
| 68 | + print video and audio device info |
| 69 | +- set_cur_camera |
| 70 | + |
| 71 | + set current carmera,'set_cur_camera deviceId' you can get deviceID by print_device_info |
| 72 | +- exit |
| 73 | + |
| 74 | + exit app |
| 75 | + |
| 76 | +## Developer Environment Requirements |
| 77 | +* Ubuntu 12.04 x64 or higher |
| 78 | +* CentOS 7 or higher |
| 79 | +* gcc 4.8 or higher |
| 80 | + |
| 81 | + |
| 82 | +## Contact Us |
| 83 | + |
| 84 | +- For potential issues, take a look at our [FAQ](https://docs.agora.io/en/faq) first |
| 85 | +- Dive into [Agora SDK Samples](https://github.com/AgoraIO) to see more tutorials |
| 86 | +- Take a look at [Agora Use Case](https://github.com/AgoraIO-usecase) for more complicated real use case |
| 87 | +- Repositories managed by developer communities can be found at [Agora Community](https://github.com/AgoraIO-Community) |
| 88 | +- You can find full API documentation at [Document Center](https://docs.agora.io/en/) |
| 89 | +- If you encounter problems during integration, you can ask question in [Stack Overflow](https://stackoverflow.com/questions/tagged/agora.io) |
| 90 | +- You can file bugs about this sample at [issue](https://github.com/AgoraIO/Basic-Video-Call/issues) |
| 91 | + |
| 92 | +## License |
| 93 | + |
| 94 | +The MIT License (MIT). |
0 commit comments