
<p align="center">
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="许可证" src="https://yellow-cdn.veclightyear.com/87312a0a/f1f773c2-0445-4dae-9164-08350bce298d.svg"/></a>
<a href="https://android-arsenal.com/api?level=21"><img alt="API" src="https://yellow-cdn.veclightyear.com/87312a0a/a98fc9a9-ff04-4df7-9a0b-4adfb54bfec7.svg?style=flat"/></a>
<a href="https://github.com/GetStream/meeting-room-compose/actions/workflows/android.yml"><img alt="构建状态" src="https://yellow-cdn.veclightyear.com/87312a0a/e945ab38-79b7-464e-923f-601c3185d18f.svg"/></a>
<a href="https://getstream.io?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/HayesGordon/e7f3c4587859c17f3e593fd3ff5b13f4/raw/11d9d9385c9f34374ede25f6471dc743b977a914/badge.json" alt="Stream Feeds"></a>
</p>
这是一个使用Jetpack Compose和[Stream Video SDK for Compose](https://getstream.io/video/docs/android?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)构建的实时会议室应用,其设计风格类似于Google Meet。
该存储库的主要目标是展示以下内容:
- 使用Jetpack Compose完整实现UI组件。
- 通过自定义[CallContent](https://getstream.io/video/docs/android/ui-components/call/call-content?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)和[ParticipantVideo](https://getstream.io/video/docs/android/ui-components/participants/participant-video?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss),开发具有Google Meet风格的实时会议室应用,提供流畅的用户体验。
- 创建大厅界面,在加入会议室前可以控制物理设备,包括切换摄像头/麦克风和翻转摄像头视图。
- 展示多个参与者从不同平台(如网页和Android)连接的情况。
## ✍️ 技术内容
如果你有兴趣了解如何使用Jetpack Compose构建实时会议室应用,我们建议你阅读**[使用Jetpack Compose构建Android实时会议室应用](https://getstream.io/blog/compose-meeting-room/)**。
## :bulb: 其他相关存储库
如果你想探索更多使用Jetpack Compose和Stream SDK的存储库,可以查看以下项目:
- [ChatGPT Android](https://github.com/skydoves/chatgpt-android):📱 ChatGPT Android展示了在Android上使用Stream Chat SDK for Compose实现OpenAI的ChatGPT。
- [WhatsApp Clone Compose](https://github.com/getStream/whatsApp-clone-compose):📱 WhatsApp克隆项目展示了使用Jetpack Compose和Stream Chat SDK for Compose构建的现代Android开发。
- [Slack Clone Android](https://github.com/GetStream/stream-slack-clone-android):📱 一个使用Jetpack Compose和Stream Chat SDK构建的聊天演示应用,遵循清洁架构原则。
- [Stream Draw Android](https://github.com/getStream/stream-draw-android):🛥 Stream Draw是一个完全使用Jetpack Compose构建的实时多人绘画和聊天游戏应用。
- [Facebook Messenger Clone](https://github.com/MathRoda/Messenger-clone):使用Stream SDK和Jetpack Compose构建的Facebook Messenger克隆应用。
## 📲 下载APK
前往[Releases](https://github.com/GetStream/meeting-room-compose/releases)下载最新的APK。
<a href="https://getstream.io/video/docs/android?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss">
<img src="https://yellow-cdn.veclightyear.com/87312a0a/039a694d-54f5-4d01-ba13-3522f017f21f.png" align="right" width="12%"/>
</a>
## 🛥 Stream Video SDK
**Meeting Room Compose**使用__[Stream Video SDK for Compose](https://getstream.io/video/docs/android?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)__来实现实时视频会议功能。
如果你有兴趣为你的应用添加强大的应用内视频通话、音频聊天室、直播功能,请查看__[Android视频通话教程](https://getstream.io/video/docs/android/tutorials/video-calling/utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)__!
- [GitHub上的Stream Video SDK for Android](https://github.com/getStream/stream-video-android)
- [视频通话教程](https://getstream.io/video/docs/android/tutorials/video-calling?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)
- [音频聊天室教程](https://getstream.io/video/docs/android/tutorials/audio-room?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)
- [直播教程](https://getstream.io/video/docs/android/tutorials/livestream/?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)
## 💻 构建你自己的视频会议室项目
<details>
<summary> 如果你想构建自己的视频会议室项目,请按照以下步骤操作:</summary>
<de>
1. 访问__[Stream登录页面](https://getstream.io/try-for-free?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)__。
2. 如果你有GitHub账号,点击**使用GITHUB注册**按钮,几秒钟内即可完成注册。

3. 如果你没有GitHub账号,填写输入框并点击**开始免费试用**按钮。
4. 进入__[控制面板](https://dashboard.getstream.io?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss)__,然后点击**创建应用**按钮,如下所示。

5. 填写空白处,如下所示,然后点击**创建应用**按钮。

6. 你将看到如下图所示的**密钥**,复制它。

7. 转到[MeetingRoomApp](https://github.com/GetStream/meeting-room-compose/blob/main/app/src/main/kotlin/io/getstream/meeting/room/compose/MeetingRoomApp.kt#L39)类,将`apiKey`属性更改为你的密钥。
8. 构建并运行项目。
</details>
## 📷 预览
<p align="center">
<img src="https://yellow-cdn.veclightyear.com/87312a0a/92e59417-045b-422d-ab4d-79a599fc4046.png" alt="drawing" width="330" />
<img src="https://yellow-cdn.veclightyear.com/87312a0a/6079c306-72a1-460a-980d-bb81f360ae10.png" alt="drawing" width="330" />
</p>
## 🛠 技术栈与开源库
- 最低SDK级别21。
- 100%基于[Jetpack Compose](https://developer.android.com/jetpack/compose) + [Coroutines](https://github.com/Kotlin/kotlinx.coroutines) + [Flow](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/)进行异步处理。
- [Stream Video SDK for Compose](https://getstream.io/video/docs/android?utm_source=Github&utm_medium=Jaewoong_OSS&utm_content=Developer&utm_campaign=Github_Aug2023_Jaewoong_MeetingRoomCompose&utm_term=DevRelOss):Stream的多功能Core + Compose UI组件库,允许你基于在Stream全球边缘网络上运行的Webrtc构建视频通话、音频聊天室和直播应用。
- Jetpack
- Compose:Android的现代UI开发工具包。
- ViewModel:UI相关数据持有者和生命周期感知。
- Navigation:用于屏幕导航和[Hilt Navigation Compose](https://developer.android.com/jetpack/compose/libraries#hilt)用于依赖注入。
- [Hilt](https://dagger.dev/hilt/):依赖注入。
- [Retrofit2 & OkHttp3](https://github.com/square/retrofit):构建REST API和分页网络数据。
- [Sandwich](https://github.com/skydoves/sandwich):一个适应性强且轻量级的密封API库,专为Kotlin和Android设计,专门用于高效的Retrofit响应建模和异常处理。
- [ksp](https://github.com/google/ksp):Kotlin符号处理API。
## 👨👨👦👦 测试多个参与者
为了在不同平台上进行交互式测试,你可以使用Stream网页应用。你可以通过[Stream Video Web Demo](https://getstream.io/video/demos/?id=GzGQPrISLSHk)简单地加入网页应用。

## 🤝 贡献
除了聊天功能外,大多数功能尚未完成,因此任何人都可以遵循[贡献指南](https://github.com/GetStream/meeting-room-compose/blob/main/CONTRIBUTING.md)来贡献和改进这个项目。
## 觉得这个仓库有用吗? 💙
通过加入这个仓库的__[星标者](https://github.com/GetStream/meeting-room-compose/stargazers)__来支持它。 :star: <br>
同时,在GitHub上关注__[维护者](https://github.com/skydoves)__,了解我们的下一个创作! 🤩
# 许可证
```xml
版权所有 2023 Stream.IO, Inc. 保留所有权利。
根据 Apache 许可证 2.0 版("许可证")获得许可;
除非遵守许可证,否则您不得使用此文件。
您可以在以下网址获取许可证副本:
http://www.apache.org/licenses/LICENSE-2.0
除非适用法律要求或书面同意,否则根据许可证分发的软件是基于"按原样"分发的,
不附带任何明示或暗示的担保或条件。
有关许可证下的特定语言管理权限和限制,请参阅许可证。