kclyu / rpi-webrtc-streamer

This repo's objective is providing something like Web Cam server on the most popular Raspberry PI hardware. By integrating [WebRTC](https://webrtc.org/native-code/) and Raspberry PI, we can stream the Raspberry camera feed to browser or native client which talks WebRTC.
Other
617 stars 108 forks source link

changing video orientation while streaming #107

Closed jonspieg closed 3 years ago

jonspieg commented 3 years ago

Is there a way to control video_hflip and video_vflip on the fly? My robot changes orientation and I would like to control the streamed video orientation depending on the on-board gyroscope

Thanks

kclyu commented 3 years ago

Please refer to http://your.pi.ip.address:8889/np2/ for changeable settings of video streaming. When streaming is activated,'show setting' button is activated in the lower right corner, and possible video setting items will appear. These settings can be changed even during streaming.

The API will only work with the currently connected client peer, but I think you should think about how to change the video orientation using the onboard gyroscope value of the device.

jonspieg commented 3 years ago

the np2 example is exactly what i needed, thanks!