通过 HTTPS 的网络视频服务器

问题描述 投票:0回答:1

我使用的是 ROS 2 Humble,我的网络应用程序使用的是 https。有什么方法可以让 web_video_server 通过 https/ssl 而不是 http 流式传输图像主题,以便我可以在我的 https Web 应用程序中使用它们?

这就是我在网络应用程序中使用 web_video_server 的方式:

<mat-tab-group> <mat-tab label="RGB Camera"> <img class="img-fluid" [style.width.px]="getWidthOfDiv()" [style.height.px]="getWidthOfDiv()/2" src="http://localhost:8080/stream?topic=/stereo/left/image_rect_color_out1_high">  </mat-tab> <mat-tab label="Depth Camera"> <img class="img-fluid" [style.width.px]="getWidthOfDiv()" [style.height.px]="getWidthOfDiv()/2" src="http://localhost:8080/stream?topic=/stereo/depth"> </mat-tab> </mat-tab-group>

我找不到任何有用的资源来帮助我实现这一目标,我在 GitHub 上打开了一个问题,但存储库似乎已经死了。这有可能吗?您是否有使用过并推荐的通过 HTTPS 传输图像主题的替代方案?预先感谢!

image https ros2
1个回答
0
投票

您可以在反向代理(例如 Nginx)后面托管 web_video_server 来处理 SSL 终止。有教程这里

© www.soinside.com 2019 - 2024. All rights reserved.