Kurento是WebRTC媒体服务器及客户端API套件,用于开发高级视频应用。
Kurento Media Server Docker 镜像文档
镜像概述和主要用途
Kurento Media Server 是一个开源的 WebRTC 媒体服务器,提供高级实时通信能力。本 Docker 镜像用于在 x86 平台上运行 Kurento Media Server,不支持 ARM 等其他架构。
该镜像提供了一个便捷的方式来部署和运行 Kurento Media Server,无需手动配置复杂的依赖环境,适用于开发、测试和生产环境。
核心功能和特性
- 支持 WebRTC 标准,实现浏览器与服务器之间的实时音视频通信
- 提供媒体处理能力,包括转码、混合、录制、播放等功能
- 模块化架构,可通过插件扩展功能
- 支持媒体流路由和分发
- 提供客户端 API,便于集成到应用程序中
- 符合 FIWARE 平台标准,可作为实时媒体流处理组件
使用场景和适用范围
- 视频会议和视频聊天应用
- 实时直播和流媒体服务
- 视频监控和安全系统
- 在线教育和远程培训平台
- 视频点播和时移观看服务
- 需要实时音视频处理的 Web 和移动应用
系统要求
- x86_64 架构的服务器或工作站
- Docker Engine 1.12 或更高版本
- 至少 2GB RAM
- 网络连接(用于拉取镜像和媒体流传输)
使用方法和配置说明
基本使用方法
使用 docker run 命令
bashdocker run -d --name kurento-media-server \ --network host \ docker.xuanyuan.run/kurento/kurento-media-server:latest
使用 Docker Compose
创建 docker-compose.yml 文件:
yamlversion: '3' services: kurento: image: docker.xuanyuan.run/kurento/kurento-media-server:latest network_mode: host restart: unless-stopped environment: - KMS_MIN_PORT=40000 - KMS_MAX_PORT=49999
启动服务:
bashdocker-compose up -d
配置参数
Kurento Media Server 可以通过环境变量进行配置,常用参数包括:
| 环境变量 | 描述 | 默认值 |
|---|---|---|
KMS_MIN_PORT | 媒体流使用的最小端口 | 40000 |
KMS_MAX_PORT | 媒体流使用的最大端口 | 49999 |
KMS_IP | 服务器IP地址,用于ICE候选地址 | 自动检测 |
KMS_WS_PORT | WebSocket服务器端口 | 8888 |
KMS_SSL_PORT | SSL端口 | 8443 |
KMS_DEBUG_LEVEL | 调试日志级别 (0-4) | 1 |
完整的配置参数列表请参考 https://doc-kurento.readthedocs.io/en/latest/user/configuration.html。
自定义配置示例
bashdocker run -d --name kurento-media-server \ --network host \ -e KMS_MIN_PORT=30000 \ -e KMS_MAX_PORT=39999 \ -e KMS_WS_PORT=8080 \ -e KMS_DEBUG_LEVEL=3 \ docker.xuanyuan.run/kurento/kurento-media-server:latest
关于 Kurento
Kurento 是一个开源软件项目,提供了一个适用于创建具有高级实时通信能力的模块化应用程序的平台。项目源代码托管在 https://github.com/Kurento。
更多关于 Kurento 的信息,请访问项目网站:https://kurento.openvidu.io/。
FIWARE 平台集成
Kurento 项目是 FIWARE 平台的一部分,作为实时媒体流处理组件。在 FIWARE 生态系统中,Kurento 提供以下能力:
- 实时媒体流采集、处理和分发
- 与其他 FIWARE 组件集成,构建完整的物联网和智慧城市解决方案
- 符合 FIWARE 接口规范,确保互操作性
有关 FIWARE 中实时媒体流处理的更多信息,请参阅 https://fiwaretourguide.readthedocs.io/en/latest/processing/kurento/introduction/。
文档和资源
官方文档
- https://kurento.openvidu.io/documentation
- https://doc-kurento.readthedocs.io/en/latest/user/installation.html
- https://doc-kurento.readthedocs.io/en/latest/dev/dev_guide.html
- API 参考
教程和示例
- https://doc-kurento.readthedocs.io/en/latest/user/tutorials.html
- https://github.com/Kurento/kurento-tutorials
- https://fiware-academy.readthedocs.io/en/latest/processing/kurento
社区支持
- https://github.com/Kurento/kurento/issues
- https://stackoverflow.com/questions/tagged/kurento
- https://groups.google.com/g/kurento
- https://kurento.openvidu.io/blog
测试
Kurento 提供了一套完整的测试套件,主要包括集成测试和系统测试,特别是端到端 (E2E) 测试,可评估 Kurento 的不同部分,包括功能、稳定性、教程和 API。
Kurento 测试框架 (KTF) 基于 JUnit 和 Selenium 构建,用于执行端到端测试。有关 Kurento 测试框架的更多信息以及如何运行所有可用测试,请参阅 https://doc-kurento.readthedocs.io/en/latest/dev/testing.html。
许可证
Kurento Media Server 采用 Apache License 2.0 许可证。
Copyright 2023 Kurento Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
镜像信息
- 镜像源代码: https://github.com/Kurento/kurento/blob/main/docker/kurento-media-server/Dockerfile
- Docker Hub 地址: https://hub.docker.com/r/kurento/kurento-media-server
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 kurento-media-server 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务