mirror of
https://github.com/arendst/Tasmota.git
synced 2026-03-13 08:30:47 +08:00
webcam CSI: fix Ethernet (#24501)
Co-authored-by: Christian Baars <christianbaars@MacStudio-von-Christian.local>
This commit is contained in:
@@ -589,7 +589,7 @@ void HandleRtsp() {
|
||||
}
|
||||
else if (req.indexOf(PSTR("DESCRIBE")) >= 0) {
|
||||
char sdp[256];
|
||||
IPAddress ip = WiFi.localIP();
|
||||
IPAddress ip = NetworkAddress();
|
||||
snprintf_P(sdp, sizeof(sdp),
|
||||
PSTR("v=0\r\no=- 0 0 IN IP4 %s\r\ns=Tasmota Stream\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\nm=video 0 RTP/AVP 96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=42001E\r\na=control:track0\r\n"),
|
||||
ip.toString().c_str());
|
||||
|
||||
@@ -40,7 +40,7 @@ void WcShowStream(void) {
|
||||
if (Wc.core.session_type == SESSION_MJPEG_HTTP) {
|
||||
if (!Wc.jpeg.server) return; // Server not ready
|
||||
|
||||
uint32_t ip = (uint32_t)WiFi.localIP();
|
||||
uint32_t ip = (uint32_t)NetworkAddress();
|
||||
|
||||
WSContentSend_P(PSTR("<div><div id='wc_s'>Loading...</div>"));
|
||||
|
||||
|
||||
@@ -1604,7 +1604,7 @@ static void wc_base64_encode(const uint8_t* data, size_t len, char* out, size_t
|
||||
|
||||
void WcGenerateAnswer(void) {
|
||||
if (!WebRTC) return;
|
||||
IPAddress ip = WiFi.localIP();
|
||||
IPAddress ip = NetworkAddress();
|
||||
char buf[256];
|
||||
|
||||
Webserver->setContentLength(CONTENT_LENGTH_UNKNOWN);
|
||||
|
||||
Reference in New Issue
Block a user