Cuttlefish:WebRTC 流式传输
借助 WebRTC 流式传输功能,用户可通过浏览器远程控制 Cuttlefish 虚拟设备,而无需在客户端计算机上安装任何其他软件。WebRTC 流式传输功能的其他优势包括:
- 编码效率高于 VNC
- 浏览器内 ADB
- 可扩展协议(摄像头数据流、麦克风、传感器数据都可以通过 WebRTC 实现)
使用 WebRTC
如需在浏览器中使用 WebRTC 并与您的 Cuttlefish 设备互动,请执行以下操作:
如需使用 WebRTC 启动设备,请在 launch_cvd
调用中添加 --start_webrtc=true
标记。
launch_cvd --start_webrtc=true
如需查看您可以连接的所有设备的列表,请让浏览器指向 <https://localhost:8443>
。
端口使用情况
WebRTC 除使用 TCP:8443
之外,还会使用其他端口建立连接并运行。
如果从与执行 Cuttlefish 的计算机不同的计算机进行连接,则必须在防火墙中允许这些端口。所需端口的列表如下:
TCP:15550
UDP:15550
UDP:15551
UDP:15552
UDP:15553
UDP:15554
UDP:15555
UDP:15556
UDP:15557
UDP:15558
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-01-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]