2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
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..15599
UDP:15550..15599
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-26 UTC。"],[],[],null,["# Cuttlefish: WebRTC streaming\n\nWebRTC streaming allows users to remotely control their Cuttlefish virtual\ndevices from their browsers, without having to install any other software in the\nclient machine. Other advantages of WebRTC streaming are:\n\n- More efficient encoding than VNC\n- In-browser ADB\n- Extensible protocol (camera stream, microphone, sensor data are all possible over WebRTC)\n\nUse WebRTC\n----------\n\nTo use WebRTC and interact with your Cuttlefish device in your browser, do the\nfollowing:\n\n1. To launch your devices using WebRTC, add the `--start_webrtc=true` flag to\n your `launch_cvd` invocation.\n\n ```\n launch_cvd --start_webrtc=true\n ```\n2. To see a list of all the devices you can connect to, point your browser to\n `\u003chttps://localhost:8443\u003e`.\n\n### Port usage\n\nBesides `TCP:8443`, WebRTC uses other ports to establish a connection and run.\nThese ports must be allowed on the firewall if connecting from a\ndifferent machine than where Cuttlefish is being executed. The list of ports\nneeded are:\n\n- `TCP:15550..15599`\n- `UDP:15550..15599`"]]