WebRTC
WebRTC copied to clipboard
'poster' option not work on Android devices when camera snapshot url is set
Hello,
Anyone know why snapshot from camera is not set as picture when stream is loading on Android devices?
'poster' option is set like: poster: http://192.168.0.xx/cgi-bin/snapshot.cgi
On the PC browser snapshot image sets fine when stream is loading.
On the Android devices camera views got black background when stream is loading.
As a workaround you can run a shell script similar to my code snippet in this comment: https://github.com/AlexxIT/WebRTC/issues/479#issuecomment-2038238769
This is simple image loading request from your device. Maybe your Android haven't direct access to this IP. Maybe you using HTTPS, which are not allowed to do HTTP requests.